From: Andrea Zagli Date: Wed, 13 Jan 2016 19:13:24 +0000 (+0100) Subject: QueryEditor: set focus on value widget on fields adding (refs #979). X-Git-Tag: v0.6.0~1^2~8 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=c169553d7c644e5d14484bd2acb4bda8930bc391;p=libgdaex QueryEditor: set focus on value widget on fields adding (refs #979). --- diff --git a/src/queryeditor.c b/src/queryeditor.c index 8bae3a9..bb21dcd 100644 --- a/src/queryeditor.c +++ b/src/queryeditor.c @@ -3989,6 +3989,8 @@ gdaex_query_editor_on_sel_show_changed (GtkTreeSelection *treeselection, g_free (table_name); g_free (field_name); g_free (alias); + + gtk_widget_grab_focus (priv->txt_alias); } } @@ -4588,6 +4590,11 @@ gdaex_query_editor_on_sel_where_changed (GtkTreeSelection *treeselection, gtk_widget_show (priv->hbox_where); gtk_widget_show (priv->vbx_values); gtk_widget_show (priv->vbx_values_container); + + if (GTK_IS_WIDGET (priv->txt_from)) + { + gtk_widget_grab_focus (priv->txt_from); + } } } @@ -4778,6 +4785,8 @@ gdaex_query_editor_on_sel_order_changed (GtkTreeSelection *treeselection, gtk_widget_show (priv->vbx_values_container); g_free (order); + + gtk_widget_grab_focus (priv->opt_asc); } }