[Goodies-commits] r3516 - xfce4-fsguard-plugin/trunk/panel-plugin

Mike Massonnet mmassonnet at xfce.org
Sun Nov 4 05:51:20 CET 2007


Author: mmassonnet
Date: 2007-11-04 04:51:19 +0000 (Sun, 04 Nov 2007)
New Revision: 3516

Modified:
   xfce4-fsguard-plugin/trunk/panel-plugin/fsguard.c
Log:
    * panel-plugin/fsguard.c(fsguard_check_fs): I'm not sure about the hack for
      destroying/creating the GtkWidgets on the fly, hence a modified version
      that holds an eye on the show_$bits.


Modified: xfce4-fsguard-plugin/trunk/panel-plugin/fsguard.c
===================================================================
--- xfce4-fsguard-plugin/trunk/panel-plugin/fsguard.c	2007-11-04 04:40:37 UTC (rev 3515)
+++ xfce4-fsguard-plugin/trunk/panel-plugin/fsguard.c	2007-11-04 04:51:19 UTC (rev 3516)
@@ -263,18 +263,18 @@
                     fsguard->path);
     }
 
-    if (GTK_IS_LABEL(fsguard->lab_size)) {
+    if (fsguard->show_size) {
         gtk_label_set_text (GTK_LABEL(fsguard->lab_size),
                             msg_size);
     }
-    if (GTK_IS_PROGRESS_BAR(fsguard->lab_size)) {
+    if (fsguard->show_progress_bar) {
         gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR(fsguard->progress_bar),
                                        (total > 0 ) ? free / total : 0.0);
+        fsguard_refresh_monitor (fsguard);
     }
 
     gtk_tooltips_set_tip (tooltips, fsguard->ebox, msg, NULL);
     fsguard_set_icon (fsguard, icon_id);
-    fsguard_refresh_monitor (fsguard);
 
     if (err != -1 && !fsguard->seen && icon_id == ICON_URGENT) {
         fsguard->seen = TRUE;




More information about the Goodies-commits mailing list