Code

defocus checkboxes upon click so they don't steal keystrokes
authorbuliabyak <buliabyak@users.sourceforge.net>
Wed, 7 Feb 2007 22:32:34 +0000 (22:32 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Wed, 7 Feb 2007 22:32:34 +0000 (22:32 +0000)
src/widgets/toolbox.cpp

index 7f0bf51227fc92e11dc914c3b1724884a1859db6..c2de24d6f42861308801183f663a94b70b56612a 100644 (file)
@@ -2877,11 +2877,13 @@ static void toggle_dropper_pick_alpha (GtkWidget *button, gpointer tbl) {
             gtk_widget_set_sensitive (GTK_WIDGET (set_checkbox), FALSE);
         }
     }
+    spinbutton_defocus(GTK_OBJECT(tbl));
 }
 
-static void toggle_dropper_set_alpha (GtkWidget *button, gpointer data) {
+static void toggle_dropper_set_alpha (GtkWidget *button, gpointer tbl) {
     prefs_set_int_attribute ("tools.dropper", "setalpha", 
         gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)) ? 1 : 0);
+    spinbutton_defocus(GTK_OBJECT(tbl));
 }