[libgda] GdaBrowser: misc improvements to the query exec. perspective
- From: Vivien Malerba <vivien src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgda] GdaBrowser: misc improvements to the query exec. perspective
- Date: Fri, 4 Sep 2009 20:11:56 +0000 (UTC)
commit 5bb636472430c8ff3ac070ac70cc67b98d3e40bd
Author: Vivien Malerba <malerba gnome-db org>
Date: Fri Sep 4 21:57:16 2009 +0200
GdaBrowser: misc improvements to the query exec. perspective
tools/browser/query-exec/query-console.c | 7 ++++---
tools/browser/query-exec/query-editor.c | 1 +
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/tools/browser/query-exec/query-console.c b/tools/browser/query-exec/query-console.c
index 274fc3f..ef7a149 100644
--- a/tools/browser/query-exec/query-console.c
+++ b/tools/browser/query-exec/query-console.c
@@ -35,7 +35,7 @@
#include <libgda/sql-parser/gda-sql-parser.h>
#include <libgda-ui/libgda-ui.h>
-#define VARIABLES_HELP _("This area allows to give values to\n" \
+#define VARIABLES_HELP _("<small>This area allows to give values to\n" \
"variables defined in the SQL code\n" \
"using the following syntax:\n" \
"<b><tt>##<variable name>::<type>[::null]</tt></b>\n" \
@@ -43,7 +43,7 @@
"<span foreground=\"#4e9a06\"><b><tt>##id::int</tt></b></span>\n defines <b>id</b> as a non NULL integer\n" \
"<span foreground=\"#4e9a06\"><b><tt>##age::string::null</tt></b></span>\n defines <b>age</b> as a a string\n\n" \
"Valid types are: <tt>string</tt>, <tt>boolean</tt>, <tt>int</tt>,\n" \
- "<tt>date</tt>, <tt>time</tt>, <tt>timestamp</tt>, <tt>guint</tt>")
+ "<tt>date</tt>, <tt>time</tt>, <tt>timestamp</tt>, <tt>guint</tt></small>")
struct _QueryConsolePrivate {
BrowserConnection *bcnc;
@@ -523,7 +523,8 @@ compute_params (QueryConsole *tconsole)
}
else {
show_variables = TRUE;
- tconsole->priv->params_form = gtk_label_new ("Error!");
+ tconsole->priv->params_form = gtk_label_new ("");
+ gtk_label_set_markup (GTK_LABEL (tconsole->priv->params_form), VARIABLES_HELP);
}
gtk_container_add (GTK_CONTAINER (tconsole->priv->params_form_box), tconsole->priv->params_form);
gtk_widget_show (tconsole->priv->params_form);
diff --git a/tools/browser/query-exec/query-editor.c b/tools/browser/query-exec/query-editor.c
index fc91ec9..315fa5b 100644
--- a/tools/browser/query-exec/query-editor.c
+++ b/tools/browser/query-exec/query-editor.c
@@ -745,6 +745,7 @@ query_editor_start_history_batch (QueryEditor *editor, QueryEditorHistoryBatch *
tag = gtk_text_buffer_create_tag (buffer, NULL,
"pixels-below-lines", 3,
"foreground", "black",
+ "scale", PANGO_SCALE_SMALL,
"weight", PANGO_WEIGHT_BOLD, NULL);
hdata->tag = g_object_ref (tag);
g_hash_table_insert (editor->priv->hash, tag, hist_item_data_ref (hdata));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]