From: buliabyak Date: Wed, 7 Feb 2007 22:32:34 +0000 (+0000) Subject: defocus checkboxes upon click so they don't steal keystrokes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8ac6137217f8d956ce6bfe610faeefc249e55afa;p=inkscape.git defocus checkboxes upon click so they don't steal keystrokes --- 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)); }