From d46710704af21108c5e38fc793dc1ba5a3f50390 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 26 Aug 2009 12:44:32 -0400 Subject: 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. --- modules/calendar/e-cal-shell-content.c | 4 ++-- modules/calendar/e-memo-shell-content.c | 4 ++-- modules/calendar/e-task-shell-content.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/calendar') 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; -- cgit