diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-04 23:56:09 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-06 04:40:48 +0800 |
commit | 7d6027be1a9989549c80fdbe6dcf8317c54a6a6a (patch) | |
tree | 062b4b3146497089003edd0d5b53527a952cfefc /shell/e-shell-taskbar.c | |
parent | 109bad0ce54a73519abba7094a5e6090b8525ac3 (diff) | |
download | gsoc2013-evolution-7d6027be1a9989549c80fdbe6dcf8317c54a6a6a.tar gsoc2013-evolution-7d6027be1a9989549c80fdbe6dcf8317c54a6a6a.tar.gz gsoc2013-evolution-7d6027be1a9989549c80fdbe6dcf8317c54a6a6a.tar.bz2 gsoc2013-evolution-7d6027be1a9989549c80fdbe6dcf8317c54a6a6a.tar.lz gsoc2013-evolution-7d6027be1a9989549c80fdbe6dcf8317c54a6a6a.tar.xz gsoc2013-evolution-7d6027be1a9989549c80fdbe6dcf8317c54a6a6a.tar.zst gsoc2013-evolution-7d6027be1a9989549c80fdbe6dcf8317c54a6a6a.zip |
EShell-related cleanups.
Diffstat (limited to 'shell/e-shell-taskbar.c')
-rw-r--r-- | shell/e-shell-taskbar.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/shell/e-shell-taskbar.c b/shell/e-shell-taskbar.c index 40a3d639ea..cda9fee8e0 100644 --- a/shell/e-shell-taskbar.c +++ b/shell/e-shell-taskbar.c @@ -223,19 +223,11 @@ shell_taskbar_dispose (GObject *object) g_signal_handlers_disconnect_matched ( priv->shell_backend, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, object); - g_object_unref (priv->shell_backend); - priv->shell_backend = NULL; } - if (priv->label != NULL) { - g_object_unref (priv->label); - priv->label = NULL; - } - - if (priv->hbox != NULL) { - g_object_unref (priv->hbox); - priv->hbox = NULL; - } + g_clear_object (&priv->shell_backend); + g_clear_object (&priv->label); + g_clear_object (&priv->hbox); /* Chain up to parent's dispose() method. */ G_OBJECT_CLASS (e_shell_taskbar_parent_class)->dispose (object); @@ -362,7 +354,8 @@ e_shell_taskbar_class_init (EShellTaskbarClass *class) NULL, NULL, G_PARAM_READWRITE | - G_PARAM_CONSTRUCT)); + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); /** * EShellTaskbar:shell-view @@ -378,7 +371,8 @@ e_shell_taskbar_class_init (EShellTaskbarClass *class) NULL, E_TYPE_SHELL_VIEW, G_PARAM_READWRITE | - G_PARAM_CONSTRUCT_ONLY)); + G_PARAM_CONSTRUCT_ONLY | + G_PARAM_STATIC_STRINGS)); } static void |