[evolution] Add em_folder_selector_get_content_area().



commit d40a75af9d6e0f079d1f4aa7c6f5cb38599abcbe
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Mar 19 16:52:13 2014 -0400

    Add em_folder_selector_get_content_area().
    
    A more useful alternative to gtk_dialog_get_content_area().

 mail/em-folder-selector.c |   22 ++++++++++++++++++++++
 mail/em-folder-selector.h |    2 ++
 2 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/mail/em-folder-selector.c b/mail/em-folder-selector.c
index 68d9894..609eecd 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 6037b2b..44d7b9f 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]