diff options
author | Srinivasa Ragavan <sragavan@gnome.org> | 2010-04-27 16:47:46 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@gnome.org> | 2010-04-27 16:47:46 +0800 |
commit | e83142e20922bcfd6d7b6c9ced55753d661dd39c (patch) | |
tree | 5f1b838cd41a5887ad84ba3abb1b6d78505647f4 | |
parent | befb1a4499c86fcbd7864d648c95cf0a87e0d2ff (diff) | |
download | gsoc2013-evolution-e83142e20922bcfd6d7b6c9ced55753d661dd39c.tar.gz gsoc2013-evolution-e83142e20922bcfd6d7b6c9ced55753d661dd39c.tar.zst gsoc2013-evolution-e83142e20922bcfd6d7b6c9ced55753d661dd39c.zip |
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.
-rw-r--r-- | calendar/gui/apps_evolution_calendar.schemas.in | 2 | ||||
-rw-r--r-- | 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 @@ <applyto>/apps/evolution/calendar/display/date_navigator_pane_position</applyto> <owner>evolution-calendar</owner> <type>int</type> - <default>150</default> + <default>200</default> <locale name="C"> <short>Month view vertical pane position </short> <long>Position of the vertical pane, between the calendar lists and the date navigator calendar.</long> 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); |