aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-storage-browser.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-10-23 02:07:34 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-10-23 02:07:34 +0800
commit36ea89fbb9c7964f2f2b5efe0a7f943e38b5525f (patch)
treed69bbc3c6bad6cfaa25d301249d728c5eb3c151e /shell/e-storage-browser.c
parent5fe8acce36686deff3df07434e454ec90acd5f8e (diff)
downloadgsoc2013-evolution-36ea89fbb9c7964f2f2b5efe0a7f943e38b5525f.tar.gz
gsoc2013-evolution-36ea89fbb9c7964f2f2b5efe0a7f943e38b5525f.tar.zst
gsoc2013-evolution-36ea89fbb9c7964f2f2b5efe0a7f943e38b5525f.zip
Use e_storage_browser_peek_widget_scrolled() to retrieve the scrolled
* mail-component.c (impl_createControls): Use e_storage_browser_peek_widget_scrolled() to retrieve the scrolled window that the EStorageSetView is contained in. * e-storage-browser.c (struct _EStorageBrowserPrivate): New member "storage_set_view_scrolled". (e_storage_browser_new): Put the storage_set_view in a scrolled window. Set priv->storage_set_view_scrolled to this scrolled window. (e_storage_browser_peek_tree_widget_scrolled): New. svn path=/trunk/; revision=22993
Diffstat (limited to 'shell/e-storage-browser.c')
-rw-r--r--shell/e-storage-browser.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/shell/e-storage-browser.c b/shell/e-storage-browser.c
index a5452d80c1..d3ba4d24a9 100644
--- a/shell/e-storage-browser.c
+++ b/shell/e-storage-browser.c
@@ -42,6 +42,7 @@
#include <gal/util/e-util.h>
#include <gtk/gtknotebook.h>
+#include <gtk/gtkscrolledwindow.h>
#include <string.h>
@@ -55,6 +56,7 @@ struct _EStorageBrowserPrivate {
GtkWidget *view_notebook;
GtkWidget *storage_set_view;
+ GtkWidget *storage_set_view_scrolled;
GHashTable *path_to_view; /* (char *, GtkWidget *) */
@@ -221,7 +223,14 @@ e_storage_browser_new (EStorageSet *storage_set,
new->priv->create_view_callback = create_view_callback;
new->priv->create_view_callback_data = callback_data;
new->priv->starting_path = g_strdup (starting_path);
+
new->priv->storage_set_view = e_storage_set_create_new_view (storage_set, NULL);
+ gtk_widget_show (new->priv->storage_set_view);
+
+ new->priv->storage_set_view_scrolled = gtk_scrolled_window_new (NULL, NULL);
+ gtk_container_add (GTK_CONTAINER (new->priv->storage_set_view_scrolled), new->priv->storage_set_view);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (new->priv->storage_set_view_scrolled),
+ GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
g_object_weak_ref (G_OBJECT (new->priv->storage_set_view), (GWeakNotify) storage_set_view_weak_notify, new);
@@ -248,6 +257,12 @@ e_storage_browser_peek_tree_widget (EStorageBrowser *browser)
}
GtkWidget *
+e_storage_browser_peek_tree_widget_scrolled (EStorageBrowser *browser)
+{
+ return browser->priv->storage_set_view_scrolled;
+}
+
+GtkWidget *
e_storage_browser_peek_view_widget (EStorageBrowser *browser)
{
return browser->priv->view_notebook;