From e83142e20922bcfd6d7b6c9ced55753d661dd39c Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Tue, 27 Apr 2010 14:17:46 +0530 Subject: Handle the side pane's date navigator size. Set a minimum size of 150px and make sure it doesn't get smaller than that. Also pick the pane position from the right place. --- calendar/gui/apps_evolution_calendar.schemas.in | 2 +- modules/calendar/e-cal-shell-sidebar.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/calendar/gui/apps_evolution_calendar.schemas.in b/calendar/gui/apps_evolution_calendar.schemas.in index 70590ee0ca..ea33ddc1ca 100644 --- a/calendar/gui/apps_evolution_calendar.schemas.in +++ b/calendar/gui/apps_evolution_calendar.schemas.in @@ -284,7 +284,7 @@ /apps/evolution/calendar/display/date_navigator_pane_position evolution-calendar int - 150 + 200 Month view vertical pane position Position of the vertical pane, between the calendar lists and the date navigator calendar. diff --git a/modules/calendar/e-cal-shell-sidebar.c b/modules/calendar/e-cal-shell-sidebar.c index eb28868ce6..a00ade73df 100644 --- a/modules/calendar/e-cal-shell-sidebar.c +++ b/modules/calendar/e-cal-shell-sidebar.c @@ -476,7 +476,7 @@ cal_shell_sidebar_restore_state_cb (EShellWindow *shell_window, bridge = gconf_bridge_get (); object = G_OBJECT (priv->paned); - key = "/apps/evolution/calendar/display/date_navigator_vpane_position"; + key = "/apps/evolution/calendar/display/date_navigator_pane_position"; gconf_bridge_bind_property_delayed (bridge, key, object, "vposition"); } @@ -624,7 +624,8 @@ cal_shell_sidebar_constructed (GObject *object) calitem = E_CALENDAR (widget)->calitem; e_calendar_item_set_days_start_week_sel (calitem, 9); e_calendar_item_set_max_days_sel (calitem, 42); - gtk_paned_pack2 (GTK_PANED (container), widget, FALSE, TRUE); + gtk_paned_pack2 (GTK_PANED (container), widget, FALSE, FALSE); + gtk_widget_set_size_request (widget, -1, 200); priv->date_navigator = g_object_ref (widget); gtk_widget_show (widget); -- cgit v1.2.3