diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-08-28 06:39:38 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-08-28 06:39:38 +0800 |
commit | 0b293d6318db3c8a9f0de076eec5da2408888f6d (patch) | |
tree | a6fb1866eb4cb2c608da2c8f44df6afed9e772bd /modules | |
parent | 76229dcb001dc7a72f35e89fbad4835d6529d728 (diff) | |
download | gsoc2013-evolution-0b293d6318db3c8a9f0de076eec5da2408888f6d.tar gsoc2013-evolution-0b293d6318db3c8a9f0de076eec5da2408888f6d.tar.gz gsoc2013-evolution-0b293d6318db3c8a9f0de076eec5da2408888f6d.tar.bz2 gsoc2013-evolution-0b293d6318db3c8a9f0de076eec5da2408888f6d.tar.lz gsoc2013-evolution-0b293d6318db3c8a9f0de076eec5da2408888f6d.tar.xz gsoc2013-evolution-0b293d6318db3c8a9f0de076eec5da2408888f6d.tar.zst gsoc2013-evolution-0b293d6318db3c8a9f0de076eec5da2408888f6d.zip |
Fix calendar pane positioning.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/calendar/e-cal-shell-content.c | 10 | ||||
-rw-r--r-- | modules/calendar/e-cal-shell-sidebar.c | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/modules/calendar/e-cal-shell-content.c b/modules/calendar/e-cal-shell-content.c index 408f07fdc6..e199f0524d 100644 --- a/modules/calendar/e-cal-shell-content.c +++ b/modules/calendar/e-cal-shell-content.c @@ -26,6 +26,8 @@ #include "e-util/e-binding.h" #include "e-util/gconf-bridge.h" +#include "widgets/menus/gal-view-etable.h" +#include "widgets/misc/e-paned.h" #include "calendar/gui/calendar-config.h" #include "calendar/gui/calendar-view.h" @@ -36,8 +38,6 @@ #include "calendar/gui/e-day-view.h" #include "calendar/gui/e-week-view.h" -#include "widgets/menus/gal-view-etable.h" - #define E_CAL_SHELL_CONTENT_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE \ ((obj), E_TYPE_CAL_SHELL_CONTENT, ECalShellContentPrivate)) @@ -132,7 +132,7 @@ cal_shell_content_notify_view_id_cb (ECalShellContent *cal_shell_content) key = "/apps/evolution/calendar/display/hpane_position"; binding_id = gconf_bridge_bind_property_delayed ( - bridge, key, G_OBJECT (paned), "position"); + bridge, key, G_OBJECT (paned), "hposition"); cal_shell_content->priv->paned_binding_id = binding_id; } @@ -344,9 +344,7 @@ cal_shell_content_constructed (GObject *object) container = GTK_WIDGET (object); - /* FIXME Need to deal with saving and restoring the position. - * Month view has its own position. */ - widget = gtk_hpaned_new (); + widget = e_paned_new (GTK_ORIENTATION_HORIZONTAL); gtk_container_add (GTK_CONTAINER (container), widget); priv->hpaned = g_object_ref (widget); gtk_widget_show (widget); diff --git a/modules/calendar/e-cal-shell-sidebar.c b/modules/calendar/e-cal-shell-sidebar.c index c25b247f36..05b3a47d72 100644 --- a/modules/calendar/e-cal-shell-sidebar.c +++ b/modules/calendar/e-cal-shell-sidebar.c @@ -27,6 +27,8 @@ #include "e-util/e-error.h" #include "e-util/e-binding.h" #include "e-util/gconf-bridge.h" +#include "widgets/misc/e-paned.h" + #include "calendar/common/authentication.h" #include "calendar/gui/calendar-config.h" #include "calendar/gui/e-calendar-selector.h" @@ -401,7 +403,7 @@ cal_shell_sidebar_constructed (GObject *object) container = GTK_WIDGET (shell_sidebar); - widget = gtk_vpaned_new (); + widget = e_paned_new (GTK_ORIENTATION_VERTICAL); gtk_container_add (GTK_CONTAINER (container), widget); priv->paned = g_object_ref (widget); gtk_widget_show (widget); @@ -497,7 +499,7 @@ cal_shell_sidebar_constructed (GObject *object) object = G_OBJECT (priv->paned); key = "/apps/evolution/calendar/display/date_navigator_vpane_position"; - gconf_bridge_bind_property_delayed (bridge, key, object, "position"); + gconf_bridge_bind_property_delayed (bridge, key, object, "vposition"); } static void |