[gimp] Use a GtkToggleButton instead of GtkCheckButton for "Grab event"



commit a7efe42870bfb967e066a48c13854b05d2eff182
Author: Michael Natterer <mitch gimp org>
Date:   Fri Aug 21 13:53:34 2009 +0200

    Use a GtkToggleButton instead of GtkCheckButton for "Grab event"
    
    A GtkToggleButton doesn't have to be told that it has no indicator,
    because it doesn't have one in the first place.

 app/widgets/gimpcontrollereditor.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpcontrollereditor.c b/app/widgets/gimpcontrollereditor.c
index 5604524..13f2a7c 100644
--- a/app/widgets/gimpcontrollereditor.c
+++ b/app/widgets/gimpcontrollereditor.c
@@ -360,8 +360,7 @@ gimp_controller_editor_constructor (GType                  type,
   gtk_box_pack_end (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
   gtk_widget_show (hbox);
 
-  editor->grab_button = gtk_check_button_new_with_mnemonic (_("_Grab event"));
-  gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (editor->grab_button), FALSE);
+  editor->grab_button = gtk_toggle_button_new_with_mnemonic (_("_Grab event"));
   gtk_box_pack_start (GTK_BOX (hbox), editor->grab_button, TRUE, TRUE, 0);
   gtk_widget_show (editor->grab_button);
 



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