]> saetta.ns0.it Git - libgdaex/commitdiff
QueryEditor: set focus on value widget on fields adding (refs #979).
authorAndrea Zagli <andrea.zagli@email.it>
Wed, 13 Jan 2016 19:13:24 +0000 (20:13 +0100)
committerAndrea Zagli <andrea.zagli@email.it>
Wed, 13 Jan 2016 19:22:59 +0000 (20:22 +0100)
src/queryeditor.c

index 8bae3a9921fb687c9c9862a2c409db332981ff49..bb21dcd99b6a9e2fb9d03c364edbc50814861e00 100644 (file)
@@ -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);
                }
 }