[libgda] Set default size of the favorites in GdaBrowser's perspectives



commit 0513569f40ce81e7903365e7b39f897c04f52775
Author: Vivien Malerba <malerba gnome-db org>
Date:   Wed Mar 24 21:47:32 2010 +0100

    Set default size of the favorites in GdaBrowser's perspectives

 .../data-manager/data-manager-perspective.c        |    1 +
 tools/browser/decl.h                               |    2 ++
 tools/browser/query-exec/query-exec-perspective.c  |    1 +
 .../schema-browser/schema-browser-perspective.c    |    1 +
 4 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/tools/browser/data-manager/data-manager-perspective.c b/tools/browser/data-manager/data-manager-perspective.c
index 6fe4650..cc331cb 100644
--- a/tools/browser/data-manager/data-manager-perspective.c
+++ b/tools/browser/data-manager/data-manager-perspective.c
@@ -137,6 +137,7 @@ data_manager_perspective_new (BrowserWindow *bwin)
 	g_signal_connect (wid, "selection-changed",
 			  G_CALLBACK (fav_selection_changed_cb), bpers);
         gtk_paned_pack1 (GTK_PANED (paned), wid, FALSE, TRUE);
+	gtk_paned_set_position (GTK_PANED (paned), DEFAULT_FAVORITES_SIZE);
 
 	nb = gtk_notebook_new ();
         perspective->priv->notebook = nb;
diff --git a/tools/browser/decl.h b/tools/browser/decl.h
index 7bcc667..42ef116 100644
--- a/tools/browser/decl.h
+++ b/tools/browser/decl.h
@@ -49,6 +49,8 @@ typedef struct {
 #define ORDER_KEY_QUERIES 2
 #define ORDER_KEY_DATA_MANAGERS 3
 
+#define DEFAULT_FAVORITES_SIZE 150
+
 G_END_DECLS
 
 #endif
diff --git a/tools/browser/query-exec/query-exec-perspective.c b/tools/browser/query-exec/query-exec-perspective.c
index cceea2d..71a38e7 100644
--- a/tools/browser/query-exec/query-exec-perspective.c
+++ b/tools/browser/query-exec/query-exec-perspective.c
@@ -159,6 +159,7 @@ query_exec_perspective_new (BrowserWindow *bwin)
 	g_signal_connect (wid, "selection-changed",
 			  G_CALLBACK (fav_selection_changed_cb), bpers);
 	gtk_paned_pack1 (GTK_PANED (paned), wid, FALSE, TRUE);
+	gtk_paned_set_position (GTK_PANED (paned), DEFAULT_FAVORITES_SIZE);
 
 	nb = gtk_notebook_new ();
 	perspective->priv->notebook = nb;
diff --git a/tools/browser/schema-browser/schema-browser-perspective.c b/tools/browser/schema-browser/schema-browser-perspective.c
index 9c98e05..f9570b8 100644
--- a/tools/browser/schema-browser/schema-browser-perspective.c
+++ b/tools/browser/schema-browser/schema-browser-perspective.c
@@ -141,6 +141,7 @@ schema_browser_perspective_new (BrowserWindow *bwin)
 	g_signal_connect (wid, "selection-changed",
 			  G_CALLBACK (fav_selection_changed_cb), bpers);
 	gtk_paned_add1 (GTK_PANED (paned), wid);
+	gtk_paned_set_position (GTK_PANED (paned), DEFAULT_FAVORITES_SIZE);
 
 	nb = gtk_notebook_new ();
 	perspective->priv->notebook = nb;



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