[gimp] Remove redundant call to gtk_toggle_button_set_mode()



commit b793146bdea64d963ac14fe39eed5ea0e4cad78b
Author: Michael Natterer <mitch gimp org>
Date:   Fri Aug 21 13:52:29 2009 +0200

    Remove redundant call to gtk_toggle_button_set_mode()
    
    No need to call that function on an actual GtkToggleButton, because
    they never have check indicators anyway.

 app/widgets/gimpeditor.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/app/widgets/gimpeditor.c b/app/widgets/gimpeditor.c
index df84d4a..659b250 100644
--- a/app/widgets/gimpeditor.c
+++ b/app/widgets/gimpeditor.c
@@ -637,14 +637,9 @@ gimp_editor_add_action_button (GimpEditor  *editor,
   button_icon_size = gimp_editor_ensure_button_box (editor, &button_relief);
 
   if (GTK_IS_TOGGLE_ACTION (action))
-    {
-      button = gtk_toggle_button_new ();
-      gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (button), FALSE);
-    }
+    button = gtk_toggle_button_new ();
   else
-    {
-      button = gimp_button_new ();
-    }
+    button = gimp_button_new ();
 
   gtk_button_set_relief (GTK_BUTTON (button), button_relief);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]