diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-01-01 04:24:59 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-01-01 04:24:59 +0800 |
commit | 9d915124c28eb0772b4e1086d6988e7d56d9a04c (patch) | |
tree | 11224ba217bd8a17ca1a0f54230a096db842a6b4 /composer/e-composer-post-header.c | |
parent | 11e1bc38c325665c24b1c831d009f89b7112ebe5 (diff) | |
download | gsoc2013-evolution-9d915124c28eb0772b4e1086d6988e7d56d9a04c.tar.gz gsoc2013-evolution-9d915124c28eb0772b4e1086d6988e7d56d9a04c.tar.zst gsoc2013-evolution-9d915124c28eb0772b4e1086d6988e7d56d9a04c.zip |
Get the Character Encoding menu working.
Kill e_charset_picker_bonobo_ui_populate().
svn path=/branches/kill-bonobo/; revision=36950
Diffstat (limited to 'composer/e-composer-post-header.c')
-rw-r--r-- | composer/e-composer-post-header.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/composer/e-composer-post-header.c b/composer/e-composer-post-header.c index 2ff98d053b..5a5ca2e610 100644 --- a/composer/e-composer-post-header.c +++ b/composer/e-composer-post-header.c @@ -393,12 +393,16 @@ e_composer_post_header_set_folder_tree_model (EComposerPostHeader *header, EMFolderTreeModel *model) { g_return_if_fail (E_IS_COMPOSER_POST_HEADER (header)); - g_return_if_fail (EM_IS_FOLDER_TREE_MODEL (model)); + + if (model != NULL) { + g_return_if_fail (EM_IS_FOLDER_TREE_MODEL (model)); + g_object_ref (model); + } if (header->priv->model != NULL) g_object_unref (header->priv->model); - header->priv->model = g_object_ref (model); + header->priv->model = model; g_object_notify (G_OBJECT (header), "folder-tree-model"); } |