aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2014-03-20 04:52:13 +0800
committerMatthew Barnes <mbarnes@redhat.com>2014-03-27 08:24:34 +0800
commitd40a75af9d6e0f079d1f4aa7c6f5cb38599abcbe (patch)
treea3f53912a69ab14167393fb3aedbd03b293dd42a /mail
parent70185ec1d2aafb951a81e4a64c1ccb3c24b0f5be (diff)
downloadgsoc2013-evolution-d40a75af9d6e0f079d1f4aa7c6f5cb38599abcbe.tar.gz
gsoc2013-evolution-d40a75af9d6e0f079d1f4aa7c6f5cb38599abcbe.tar.zst
gsoc2013-evolution-d40a75af9d6e0f079d1f4aa7c6f5cb38599abcbe.zip
Add em_folder_selector_get_content_area().
A more useful alternative to gtk_dialog_get_content_area().
Diffstat (limited to 'mail')
-rw-r--r--mail/em-folder-selector.c22
-rw-r--r--mail/em-folder-selector.h2
2 files changed, 24 insertions, 0 deletions
diff --git a/mail/em-folder-selector.c b/mail/em-folder-selector.c
index 68d9894528..609eecdbd9 100644
--- a/mail/em-folder-selector.c
+++ b/mail/em-folder-selector.c
@@ -720,6 +720,28 @@ em_folder_selector_get_model (EMFolderSelector *selector)
return selector->priv->model;
}
+/**
+ * em_folder_selector_get_content_area:
+ * @selector: an #EMFolderSelector
+ *
+ * Returns the #GtkBox widget containing the dialog's content, including
+ * the #EMFolderTree widget. This is intended to help extend the dialog
+ * with additional widgets.
+ *
+ * Note, the returned #GtkBox is a child of the #GtkBox returned by
+ * gtk_dialog_get_content_area(), but with a properly set border width
+ * and 6 pixel spacing.
+ *
+ * Returns: a #GtkBox widget
+ **/
+GtkWidget *
+em_folder_selector_get_content_area (EMFolderSelector *selector)
+{
+ g_return_val_if_fail (EM_IS_FOLDER_SELECTOR (selector), NULL);
+
+ return selector->priv->content_area;
+}
+
EMFolderTree *
em_folder_selector_get_folder_tree (EMFolderSelector *selector)
{
diff --git a/mail/em-folder-selector.h b/mail/em-folder-selector.h
index 6037b2bce3..44d7b9f6a4 100644
--- a/mail/em-folder-selector.h
+++ b/mail/em-folder-selector.h
@@ -80,6 +80,8 @@ void em_folder_selector_set_default_button_label
const gchar *button_label);
EMFolderTreeModel *
em_folder_selector_get_model (EMFolderSelector *selector);
+GtkWidget * em_folder_selector_get_content_area
+ (EMFolderSelector *selector);
EMFolderTree * em_folder_selector_get_folder_tree
(EMFolderSelector *selector);
const gchar * em_folder_selector_get_selected_uri