diff options
author | Milan Crha <mcrha@redhat.com> | 2010-09-13 12:47:32 +0800 |
---|---|---|
committer | Bharath Acharya <abharath@novell.com> | 2010-09-13 12:47:32 +0800 |
commit | d74e3a57ddbcc344bb556fc5342b215b798aaba2 (patch) | |
tree | 4c5ef28ac19a0187fe09955a58b8e0581ad251a7 | |
parent | b7abc64e9dda5f8a353af17b0054db04eb54ac90 (diff) | |
download | gsoc2013-evolution-d74e3a57ddbcc344bb556fc5342b215b798aaba2.tar.gz gsoc2013-evolution-d74e3a57ddbcc344bb556fc5342b215b798aaba2.tar.zst gsoc2013-evolution-d74e3a57ddbcc344bb556fc5342b215b798aaba2.zip |
Bug #627812 - GW shouldn't use global folder tree.
Groupwise shouldn't use global folder tree for UI.
-rw-r--r-- | plugins/groupwise-features/share-folder-common.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/groupwise-features/share-folder-common.c b/plugins/groupwise-features/share-folder-common.c index 2fb7a12b6e..3951de9df1 100644 --- a/plugins/groupwise-features/share-folder-common.c +++ b/plugins/groupwise-features/share-folder-common.c @@ -36,6 +36,7 @@ #include <mail/mail-mt.h> #include <mail/mail-config.h> #include <mail/mail-vfolder.h> +#include <mail/em-utils.h> #include <mail/em-vfolder-rule.h> #include <filter/e-filter-rule.h> #include <e-gw-container.h> @@ -329,16 +330,14 @@ new_folder_response (EMFolderSelector *emfs, gint response, EMFolderTreeModel *m void gw_new_shared_folder_cb (GtkAction *action, EShellView *shell_view) { - EShellSidebar *shell_sidebar; - EMFolderTree *folder_tree = NULL; + EMFolderTree *folder_tree; GtkWidget *dialog; gchar *uri; gpointer parent; parent = e_shell_view_get_shell_window (shell_view); - - shell_sidebar = e_shell_view_get_shell_sidebar (shell_view); - g_object_get (shell_sidebar, "folder-tree", &folder_tree, NULL); + folder_tree = (EMFolderTree *) em_folder_tree_new (); + emu_restore_folder_tree_state (folder_tree); dialog = em_folder_selector_create_new (parent, folder_tree, 0, _("Create folder"), _("Specify where to create the folder:")); uri = em_folder_tree_get_selected_uri (folder_tree); @@ -349,8 +348,6 @@ gw_new_shared_folder_cb (GtkAction *action, EShellView *shell_view) g_signal_connect (dialog, "response", G_CALLBACK (new_folder_response), gtk_tree_view_get_model (GTK_TREE_VIEW (folder_tree))); gtk_window_set_title (GTK_WINDOW (dialog), "New Shared Folder" ); gtk_widget_show(dialog); - - g_object_unref (folder_tree); } GtkWidget * |