[libgda] GdaBrowser: Query console UI improvements



commit 55ee05f3aae7ccc6278dd2118697617482751b06
Author: Vivien Malerba <malerba gnome-db org>
Date:   Tue Oct 25 20:42:54 2011 +0200

    GdaBrowser: Query console UI improvements

 tools/browser/query-exec/query-console-page.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/tools/browser/query-exec/query-console-page.c b/tools/browser/query-exec/query-console-page.c
index f26f96f..7621a8e 100644
--- a/tools/browser/query-exec/query-console-page.c
+++ b/tools/browser/query-exec/query-console-page.c
@@ -543,6 +543,11 @@ history_copy_clicked_cb (G_GNUC_UNUSED GtkButton *button, QueryConsolePage *tcon
 	g_string_free (string, TRUE);
 }
 
+static void
+params_form_activated_cb (GdauiBasicForm *form, QueryConsolePage *tconsole)
+{
+	sql_execute_clicked_cb (NULL, tconsole);
+}
 
 static gboolean
 compute_params (QueryConsolePage *tconsole)
@@ -580,6 +585,8 @@ compute_params (QueryConsolePage *tconsole)
 				tconsole->priv->params_form = gdaui_basic_form_new (tconsole->priv->params);
 				g_object_set ((GObject*) tconsole->priv->params_form,
 					      "show-actions", TRUE, NULL);
+				g_signal_connect (tconsole->priv->params_form, "activated",
+						  G_CALLBACK (params_form_activated_cb), tconsole);
 			}
 			else {
 				tconsole->priv->params_form = gtk_label_new ("");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]