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-content.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-content.c')
-rw-r--r-- | shell/e-shell-content.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/shell/e-shell-content.c b/shell/e-shell-content.c index 942e10bba6..a60a634942 100644 --- a/shell/e-shell-content.c +++ b/shell/e-shell-content.c @@ -153,10 +153,7 @@ shell_content_dispose (GObject *object) priv->shell_view = NULL; } - if (priv->alert_bar != NULL) { - g_object_unref (priv->alert_bar); - priv->alert_bar = NULL; - } + g_clear_object (&priv->alert_bar); /* Chain up to parent's dispose() method. */ G_OBJECT_CLASS (e_shell_content_parent_class)->dispose (object); @@ -461,7 +458,8 @@ e_shell_content_class_init (EShellContentClass *class) "Alert Bar", "Displays informational and error messages", E_TYPE_ALERT_BAR, - G_PARAM_READABLE)); + G_PARAM_READABLE | + G_PARAM_STATIC_STRINGS)); /** * EShellContent:shell-view @@ -477,7 +475,8 @@ e_shell_content_class_init (EShellContentClass *class) NULL, E_TYPE_SHELL_VIEW, G_PARAM_READWRITE | - G_PARAM_CONSTRUCT_ONLY)); + G_PARAM_CONSTRUCT_ONLY | + G_PARAM_STATIC_STRINGS)); } static void |