diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2008-10-28 06:47:50 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2008-10-28 06:47:50 +0800 |
commit | 17e030e2022b2343c795b7fd524ba9451ca71e9f (patch) | |
tree | d283ec323eb83e99c12299003c16c0a7c12fd1e9 /calendar/modules | |
parent | 14f54991f36d5d3556af1dde53ddb7a8aceafa3a (diff) | |
download | gsoc2013-evolution-17e030e2022b2343c795b7fd524ba9451ca71e9f.tar gsoc2013-evolution-17e030e2022b2343c795b7fd524ba9451ca71e9f.tar.gz gsoc2013-evolution-17e030e2022b2343c795b7fd524ba9451ca71e9f.tar.bz2 gsoc2013-evolution-17e030e2022b2343c795b7fd524ba9451ca71e9f.tar.lz gsoc2013-evolution-17e030e2022b2343c795b7fd524ba9451ca71e9f.tar.xz gsoc2013-evolution-17e030e2022b2343c795b7fd524ba9451ca71e9f.tar.zst gsoc2013-evolution-17e030e2022b2343c795b7fd524ba9451ca71e9f.zip |
Fix a couple minor UI bugs.
Populate the calendar's filter combo.
svn path=/branches/kill-bonobo/; revision=36691
Diffstat (limited to 'calendar/modules')
-rw-r--r-- | calendar/modules/e-cal-shell-sidebar.c | 17 | ||||
-rw-r--r-- | calendar/modules/e-cal-shell-view-private.c | 5 |
2 files changed, 19 insertions, 3 deletions
diff --git a/calendar/modules/e-cal-shell-sidebar.c b/calendar/modules/e-cal-shell-sidebar.c index 06d09b07ed..7f962574f4 100644 --- a/calendar/modules/e-cal-shell-sidebar.c +++ b/calendar/modules/e-cal-shell-sidebar.c @@ -25,6 +25,7 @@ #include <glib/gi18n.h> #include "e-util/e-error.h" +#include "e-util/gconf-bridge.h" #include "calendar/common/authentication.h" #include "calendar/gui/calendar-config.h" #include "calendar/gui/e-calendar-selector.h" @@ -357,11 +358,13 @@ cal_shell_sidebar_constructed (GObject *object) ESourceList *source_list; ESource *source; ECalendarItem *calitem; + GConfBridge *bridge; GtkTreeModel *model; GtkWidget *container; GtkWidget *widget; AtkObject *a11y; GSList *list, *iter; + const gchar *key; gchar *uid; priv = E_CAL_SHELL_SIDEBAR_GET_PRIVATE (object); @@ -435,7 +438,7 @@ cal_shell_sidebar_constructed (GObject *object) e_source_selector_set_primary_selection (selector, source); g_free (uid); - list = calendar_config_get_tasks_selected (); + list = calendar_config_get_calendars_selected (); for (iter = list; iter != NULL; iter = iter->next) { uid = iter->data; source = e_source_list_peek_source_by_uid (source_list, uid); @@ -451,14 +454,22 @@ cal_shell_sidebar_constructed (GObject *object) /* Listen for subsequent changes to the selector. */ g_signal_connect_swapped ( - widget, "selection-changed", + selector, "selection-changed", G_CALLBACK (cal_shell_sidebar_selection_changed_cb), object); g_signal_connect_swapped ( - widget, "primary-selection-changed", + selector, "primary-selection-changed", G_CALLBACK (cal_shell_sidebar_primary_selection_changed_cb), object); + + /* Bind GObject properties to GConf keys. */ + + bridge = gconf_bridge_get (); + + object = G_OBJECT (priv->paned); + key = "/apps/evolution/calendar/display/date_navigator_vpane_position"; + gconf_bridge_bind_property_delayed (bridge, key, object, "position"); } static void diff --git a/calendar/modules/e-cal-shell-view-private.c b/calendar/modules/e-cal-shell-view-private.c index d5b15a370f..72b25f0e8d 100644 --- a/calendar/modules/e-cal-shell-view-private.c +++ b/calendar/modules/e-cal-shell-view-private.c @@ -275,8 +275,13 @@ e_cal_shell_view_private_constructed (ECalShellView *cal_shell_view) cal_shell_view_update_timezone (cal_shell_view); #endif + e_categories_register_change_listener ( + G_CALLBACK (e_cal_shell_view_update_search_filter), + cal_shell_view); + e_cal_shell_view_actions_init (shell_view); e_cal_shell_view_update_sidebar (cal_shell_view); + e_cal_shell_view_update_search_filter (cal_shell_view); } void |