Hello everyone,

here is my patch for LibFM that adds percents to headbar of copying
window (like "51% Copying" instead of just "Copying files"). It's very
comfortable because you don't have to switch to copying window, you can
just look to taskbar.
I've decided to give it all of LXDE subscribers instead of waiting when
some LXDE developers make a will for merging it. So you don't have to
wait it too and may just compile it for yourself without waiting it in
upstream.

Sincerely yours,
Vadim

diff --git a/src/gtk/fm-progress-dlg.c b/src/gtk/fm-progress-dlg.c
old mode 100644
new mode 100755
index ec5d7aa..02ad3ba
--- a/src/gtk/fm-progress-dlg.c
+++ b/src/gtk/fm-progress-dlg.c
@@ -444,6 +444,8 @@ static gboolean on_update_dlg(gpointer user_data)
     g_string_printf(data->str, "%d %%", data->percent);
     gtk_progress_bar_set_fraction(data->progress, (gdouble)data->percent/100);
     gtk_progress_bar_set_text(data->progress, data->str->str);
+    g_string_printf(data->str, _("%d%% %s"), data->percent, data->op_text);
+    gtk_window_set_title(GTK_WINDOW(data->dlg), data->str->str);
 
     elapsed = g_timer_elapsed(data->timer, NULL);
     if(elapsed >= 0.5 && data->percent > 0)
@@ -631,7 +633,7 @@ static gboolean _on_show_dlg(gpointer user_data)
     else
     {
         /* note to translators: resulting string is such as "Deleting files" */
-        g_string_printf(data->str, _("%s files"), data->op_text);
+        g_string_printf(data->str, _("%d%% %s"), data->percent, data->op_text);
         gtk_window_set_title(GTK_WINDOW(data->dlg), data->str->str);
     }
     gtk_label_set_markup(data->msg, _("<b>File operation is in progress...</b>"));
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Lxde-list mailing list
Lxde-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to