aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-composer-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2014-03-19 21:18:13 +0800
committerMatthew Barnes <mbarnes@redhat.com>2014-03-27 08:24:33 +0800
commitc70e8e9ea2b9b4319e6b2f6f5b31bbbfbffe9c91 (patch)
tree0507358f115da5863e8bfcefb8fa0bd28fe54de3 /mail/em-composer-utils.c
parent5747a285f7d2c857e7e8faec71c6e8a8e0ac6abf (diff)
downloadgsoc2013-evolution-c70e8e9ea2b9b4319e6b2f6f5b31bbbfbffe9c91.tar
gsoc2013-evolution-c70e8e9ea2b9b4319e6b2f6f5b31bbbfbffe9c91.tar.gz
gsoc2013-evolution-c70e8e9ea2b9b4319e6b2f6f5b31bbbfbffe9c91.tar.bz2
gsoc2013-evolution-c70e8e9ea2b9b4319e6b2f6f5b31bbbfbffe9c91.tar.lz
gsoc2013-evolution-c70e8e9ea2b9b4319e6b2f6f5b31bbbfbffe9c91.tar.xz
gsoc2013-evolution-c70e8e9ea2b9b4319e6b2f6f5b31bbbfbffe9c91.tar.zst
gsoc2013-evolution-c70e8e9ea2b9b4319e6b2f6f5b31bbbfbffe9c91.zip
EMFolderSelector: Add a "caption" property.
Replaces the 'text' argument when creating a new dialog, and can be changed after the dialog is created. This makes EMFolderSelector a little more "subclassable".
Diffstat (limited to 'mail/em-composer-utils.c')
-rw-r--r--mail/em-composer-utils.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index 74aa09e657..7cc8fa5e8f 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -3030,20 +3030,21 @@ post_header_clicked_cb (EComposerPostHeader *header,
EMFolderTree *folder_tree;
GtkWidget *dialog;
GList *list;
+ const gchar *caption;
/* FIXME Limit the folder tree to the NNTP account? */
model = em_folder_tree_model_get_default ();
dialog = em_folder_selector_new (
/* FIXME GTK_WINDOW (composer) */ NULL,
- model,
- _("Posting destination"),
- _("Choose folders to post the message to."),
- NULL);
+ model, _("Posting destination"), NULL);
selector = EM_FOLDER_SELECTOR (dialog);
em_folder_selector_set_can_create (selector, TRUE);
+ caption = _("Choose folders to post the message to.");
+ em_folder_selector_set_caption (selector, caption);
+
folder_tree = em_folder_selector_get_folder_tree (selector);
em_folder_tree_set_excluded (