aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-08-27 00:44:32 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-08-27 00:44:32 +0800
commitd46710704af21108c5e38fc793dc1ba5a3f50390 (patch)
tree27451059cb36802bc71f8d3d7d64592f6671e8bc
parentafc0306be8552a10b62a31955ef571fdb19edb10 (diff)
downloadgsoc2013-evolution-d46710704af21108c5e38fc793dc1ba5a3f50390.tar
gsoc2013-evolution-d46710704af21108c5e38fc793dc1ba5a3f50390.tar.gz
gsoc2013-evolution-d46710704af21108c5e38fc793dc1ba5a3f50390.tar.bz2
gsoc2013-evolution-d46710704af21108c5e38fc793dc1ba5a3f50390.tar.lz
gsoc2013-evolution-d46710704af21108c5e38fc793dc1ba5a3f50390.tar.xz
gsoc2013-evolution-d46710704af21108c5e38fc793dc1ba5a3f50390.tar.zst
gsoc2013-evolution-d46710704af21108c5e38fc793dc1ba5a3f50390.zip
Fix resize behavior of main window panes.
Now that I finally understand how the "resize" and "shrink" child properties in GtkPaned work. Was a real brain teaser for some reason.
-rw-r--r--modules/calendar/e-cal-shell-content.c4
-rw-r--r--modules/calendar/e-memo-shell-content.c4
-rw-r--r--modules/calendar/e-task-shell-content.c4
-rw-r--r--modules/mail/e-mail-shell-content.c4
-rw-r--r--shell/e-shell-window-private.c2
5 files changed, 9 insertions, 9 deletions
diff --git a/modules/calendar/e-cal-shell-content.c b/modules/calendar/e-cal-shell-content.c
index 9248ea8334..6b1e857894 100644
--- a/modules/calendar/e-cal-shell-content.c
+++ b/modules/calendar/e-cal-shell-content.c
@@ -356,14 +356,14 @@ cal_shell_content_constructed (GObject *object)
widget = gtk_notebook_new ();
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (widget), FALSE);
gtk_notebook_set_show_border (GTK_NOTEBOOK (widget), FALSE);
- gtk_paned_pack1 (GTK_PANED (container), widget, FALSE, TRUE);
+ gtk_paned_pack1 (GTK_PANED (container), widget, TRUE, FALSE);
priv->notebook = g_object_ref (widget);
gtk_widget_show (widget);
/* FIXME Need to deal with saving and restoring the position.
* Month view has its own position. */
widget = gtk_vpaned_new ();
- gtk_paned_pack2 (GTK_PANED (container), widget, TRUE, TRUE);
+ gtk_paned_pack2 (GTK_PANED (container), widget, FALSE, TRUE);
priv->vpaned = g_object_ref (widget);
gtk_widget_show (widget);
diff --git a/modules/calendar/e-memo-shell-content.c b/modules/calendar/e-memo-shell-content.c
index 3a7ee78718..7c7b84f3fb 100644
--- a/modules/calendar/e-memo-shell-content.c
+++ b/modules/calendar/e-memo-shell-content.c
@@ -393,7 +393,7 @@ memo_shell_content_constructed (GObject *object)
container = widget;
widget = e_memo_table_new (shell_view, priv->memo_model);
- gtk_paned_add1 (GTK_PANED (container), widget);
+ gtk_paned_pack1 (GTK_PANED (container), widget, TRUE, FALSE);
priv->memo_table = g_object_ref (widget);
gtk_widget_show (widget);
@@ -403,7 +403,7 @@ memo_shell_content_constructed (GObject *object)
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type (
GTK_SCROLLED_WINDOW (widget), GTK_SHADOW_IN);
- gtk_paned_add2 (GTK_PANED (container), widget);
+ gtk_paned_pack2 (GTK_PANED (container), widget, FALSE, FALSE);
gtk_widget_show (widget);
container = widget;
diff --git a/modules/calendar/e-task-shell-content.c b/modules/calendar/e-task-shell-content.c
index 88e5e4d856..c1333727bf 100644
--- a/modules/calendar/e-task-shell-content.c
+++ b/modules/calendar/e-task-shell-content.c
@@ -392,7 +392,7 @@ task_shell_content_constructed (GObject *object)
container = widget;
widget = e_calendar_table_new (shell_view, priv->task_model);
- gtk_paned_add1 (GTK_PANED (container), widget);
+ gtk_paned_pack1 (GTK_PANED (container), widget, TRUE, FALSE);
priv->task_table = g_object_ref (widget);
gtk_widget_show (widget);
@@ -402,7 +402,7 @@ task_shell_content_constructed (GObject *object)
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type (
GTK_SCROLLED_WINDOW (widget), GTK_SHADOW_IN);
- gtk_paned_add2 (GTK_PANED (container), widget);
+ gtk_paned_pack2 (GTK_PANED (container), widget, FALSE, FALSE);
gtk_widget_show (widget);
container = widget;
diff --git a/modules/mail/e-mail-shell-content.c b/modules/mail/e-mail-shell-content.c
index 5f99d744d1..436eaa4dfe 100644
--- a/modules/mail/e-mail-shell-content.c
+++ b/modules/mail/e-mail-shell-content.c
@@ -448,12 +448,12 @@ mail_shell_content_constructed (GObject *object)
container = widget;
widget = message_list_new (shell_backend);
- gtk_paned_add1 (GTK_PANED (container), widget);
+ gtk_paned_pack1 (GTK_PANED (container), widget, TRUE, FALSE);
priv->message_list = g_object_ref (widget);
gtk_widget_show (widget);
widget = gtk_vbox_new (FALSE, 1);
- gtk_paned_add2 (GTK_PANED (container), widget);
+ gtk_paned_pack2 (GTK_PANED (container), widget, FALSE, FALSE);
gtk_widget_show (widget);
container = widget;
diff --git a/shell/e-shell-window-private.c b/shell/e-shell-window-private.c
index 0012b18b54..959db3f55a 100644
--- a/shell/e-shell-window-private.c
+++ b/shell/e-shell-window-private.c
@@ -292,7 +292,7 @@ e_shell_window_private_init (EShellWindow *shell_window)
widget = gtk_notebook_new ();
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (widget), FALSE);
gtk_notebook_set_show_border (GTK_NOTEBOOK (widget), FALSE);
- gtk_paned_pack2 (GTK_PANED (container), widget, TRUE, TRUE);
+ gtk_paned_pack2 (GTK_PANED (container), widget, TRUE, FALSE);
priv->content_notebook = g_object_ref (widget);
gtk_widget_show (widget);