diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-04-25 23:59:57 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-04-26 00:04:20 +0800 |
commit | afe9eea99cb48f7e86d6d124b82c15a40c7cbd38 (patch) | |
tree | 99dfabd51ea7e96f846e1bc7ea55037b400046f5 | |
parent | c1e860200735cde2cc351be7a89d3b4e90b74085 (diff) | |
download | gsoc2013-evolution-afe9eea99cb48f7e86d6d124b82c15a40c7cbd38.tar gsoc2013-evolution-afe9eea99cb48f7e86d6d124b82c15a40c7cbd38.tar.gz gsoc2013-evolution-afe9eea99cb48f7e86d6d124b82c15a40c7cbd38.tar.bz2 gsoc2013-evolution-afe9eea99cb48f7e86d6d124b82c15a40c7cbd38.tar.lz gsoc2013-evolution-afe9eea99cb48f7e86d6d124b82c15a40c7cbd38.tar.xz gsoc2013-evolution-afe9eea99cb48f7e86d6d124b82c15a40c7cbd38.tar.zst gsoc2013-evolution-afe9eea99cb48f7e86d6d124b82c15a40c7cbd38.zip |
ECalShellSidebar: Reduce diff noise with master branch.
-rw-r--r-- | modules/calendar/e-cal-shell-sidebar.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/modules/calendar/e-cal-shell-sidebar.c b/modules/calendar/e-cal-shell-sidebar.c index ad5327f34e..24ef115629 100644 --- a/modules/calendar/e-cal-shell-sidebar.c +++ b/modules/calendar/e-cal-shell-sidebar.c @@ -360,27 +360,21 @@ cal_shell_sidebar_restore_state_cb (EShellWindow *shell_window, { ECalShellSidebarPrivate *priv; EShell *shell; - EShellBackend *shell_backend; EShellSettings *shell_settings; ESourceRegistry *registry; ESourceSelector *selector; GSettings *settings; GtkTreeModel *model; - GObject *object; priv = E_CAL_SHELL_SIDEBAR_GET_PRIVATE (shell_sidebar); shell = e_shell_window_get_shell (shell_window); shell_settings = e_shell_get_shell_settings (shell); - shell_backend = e_shell_view_get_shell_backend (shell_view); - g_return_if_fail (E_IS_CAL_SHELL_BACKEND (shell_backend)); - selector = E_SOURCE_SELECTOR (priv->selector); + registry = e_source_selector_get_registry (selector); model = gtk_tree_view_get_model (GTK_TREE_VIEW (selector)); - registry = e_shell_get_registry (shell); - g_signal_connect_swapped ( model, "row-changed", G_CALLBACK (cal_shell_sidebar_row_changed_cb), @@ -391,6 +385,10 @@ cal_shell_sidebar_restore_state_cb (EShellWindow *shell_window, G_CALLBACK (cal_shell_sidebar_primary_selection_changed_cb), shell_sidebar); + /* Bind GObject properties to settings keys. */ + + settings = g_settings_new ("org.gnome.evolution.calendar"); + g_object_bind_property_full ( shell_settings, "cal-primary-calendar", selector, "primary-selection", @@ -401,14 +399,12 @@ cal_shell_sidebar_restore_state_cb (EShellWindow *shell_window, g_object_ref (registry), (GDestroyNotify) g_object_unref); - /* Bind GObject properties to settings keys. */ - - settings = g_settings_new ("org.gnome.evolution.calendar"); - - object = G_OBJECT (priv->paned); - g_settings_bind (settings, "date-navigator-pane-position", object, "vposition", G_SETTINGS_BIND_DEFAULT); + g_settings_bind ( + settings, "date-navigator-pane-position", + priv->paned, "vposition", + G_SETTINGS_BIND_DEFAULT); - g_object_unref (G_OBJECT (settings)); + g_object_unref (settings); } static void |