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

Mike Massonnet mmassonnet at xfce.org
Sun Jan 13 16:10:12 CET 2008


Author: mmassonnet
Date: 2008-01-13 15:10:12 +0000 (Sun, 13 Jan 2008)
New Revision: 3802

Modified:
   xfce4-fsguard-plugin/trunk/panel-plugin/fsguard.c
Log:
	* panel-plugin/fsguard.c(fsguard_refresh_button),
	  panel-plugin/fsguard.c(fsguard_check4_changed),
	  panel-plugin/fsguard.c(fsguard_create_options):
	  Switch "Hide button" with "Display button". #3802


Modified: xfce4-fsguard-plugin/trunk/panel-plugin/fsguard.c
===================================================================
--- xfce4-fsguard-plugin/trunk/panel-plugin/fsguard.c	2008-01-13 15:00:05 UTC (rev 3801)
+++ xfce4-fsguard-plugin/trunk/panel-plugin/fsguard.c	2008-01-13 15:10:12 UTC (rev 3802)
@@ -109,7 +109,7 @@
         && !fsguard->show_size && !fsguard->show_progress_bar) {
         DBG ("Show the button back");
         if (G_LIKELY (GTK_IS_WIDGET (fsguard->cb_hide_button)))
-            gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fsguard->cb_hide_button), FALSE);
+            gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fsguard->cb_hide_button), TRUE);
         else {
             gtk_widget_show (fsguard->btn_panel);
             fsguard->hide_button = FALSE;
@@ -530,7 +530,7 @@
 static void
 fsguard_check4_changed (GtkWidget *widget, FsGuard *fsguard)
 {
-    fsguard->hide_button = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(widget));
+    fsguard->hide_button = !gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(widget));
 
     if (fsguard->hide_button == FALSE)
         gtk_widget_show (fsguard->btn_panel);
@@ -628,9 +628,9 @@
     gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check3),
                                   fsguard->show_progress_bar);
 
-    fsguard->cb_hide_button = gtk_check_button_new_with_label (_("Hide button"));
+    fsguard->cb_hide_button = gtk_check_button_new_with_label (_("Display button"));
     gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fsguard->cb_hide_button),
-                                  fsguard->hide_button);
+                                  !fsguard->hide_button);
 
     gtk_table_attach_defaults (GTK_TABLE (table2), check1,
                                0, 1, 0, 1);




More information about the Goodies-commits mailing list