From 8ac6137217f8d956ce6bfe610faeefc249e55afa Mon Sep 17 00:00:00 2001 From: buliabyak Date: Wed, 7 Feb 2007 22:32:34 +0000 Subject: [PATCH] defocus checkboxes upon click so they don't steal keystrokes --- src/widgets/toolbox.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index 7f0bf5122..c2de24d6f 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -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)); } -- 2.30.2