From 3ea5c4679f829e91cc01fac6504639eb31244cbe Mon Sep 17 00:00:00 2001 From: John Smith Date: Thu, 2 Aug 2012 21:56:07 +0900 Subject: Fix for 167846 : GtkHScale regression (bzr r11584) --- src/ege-adjustment-action.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ege-adjustment-action.cpp b/src/ege-adjustment-action.cpp index 398eb9d33..7881498b9 100644 --- a/src/ege-adjustment-action.cpp +++ b/src/ege-adjustment-action.cpp @@ -781,7 +781,7 @@ void value_changed_cb( GtkSpinButton* spin, EgeAdjustmentAction* act ) { if ( gtk_widget_has_focus( GTK_WIDGET(spin) ) ) { gint start = 0, end = 0; - if (gtk_editable_get_selection_bounds (GTK_EDITABLE(spin), &start, &end) + if (GTK_IS_EDITABLE(spin) && gtk_editable_get_selection_bounds (GTK_EDITABLE(spin), &start, &end) && start != end) { // #167846, #363000 If the spin button has a selection, its probably // because we got here from a Tab key from another spin, if so dont defocus -- cgit v1.2.3