[glade] Patch up bug 589337 - Fix by Michal 'hramrach' Suchanek <hramrach gmail com>
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] Patch up bug 589337 - Fix by Michal 'hramrach' Suchanek <hramrach gmail com>
- Date: Mon, 20 May 2013 12:06:49 +0000 (UTC)
commit 86fc704c54b05a2e1a74ed92d3ed01d341ab4049
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Mon May 20 21:00:36 2013 +0900
Patch up bug 589337 - Fix by Michal 'hramrach' Suchanek <hramrach gmail com>
This is a bandaid which fixes anoyance in dialogs which appear when creating
variable widgets like HBox.
The spin editor is used in multiple places but only htese dialogs have a
default button so it is safe to set the spinbutton to activate default
unconditionally. Does not seem to break anything.
gladeui/glade-editor-property.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gladeui/glade-editor-property.c b/gladeui/glade-editor-property.c
index e7c5d2c..2037931 100644
--- a/gladeui/glade-editor-property.c
+++ b/gladeui/glade-editor-property.c
@@ -825,6 +825,7 @@ glade_eprop_numeric_create_input (GladeEditorProperty *eprop)
gtk_widget_set_halign (eprop_numeric->spin, GTK_ALIGN_FILL);
gtk_widget_set_valign (eprop_numeric->spin, GTK_ALIGN_CENTER);
+ gtk_entry_set_activates_default (GTK_ENTRY (eprop_numeric->spin), TRUE);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (eprop_numeric->spin), TRUE);
gtk_widget_show (eprop_numeric->spin);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]