diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-07 00:36:28 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:10 +0800 |
commit | 7a19800b3827e5437c0cb2e0865442cf7c178f20 (patch) | |
tree | c6e741b7153ed5bd4c1421c5c30d61ee7fae3723 | |
parent | 7aa164895ce4e4ba760af1415e45d7b264d2d2c3 (diff) | |
download | gsoc2013-evolution-7a19800b3827e5437c0cb2e0865442cf7c178f20.tar gsoc2013-evolution-7a19800b3827e5437c0cb2e0865442cf7c178f20.tar.gz gsoc2013-evolution-7a19800b3827e5437c0cb2e0865442cf7c178f20.tar.bz2 gsoc2013-evolution-7a19800b3827e5437c0cb2e0865442cf7c178f20.tar.lz gsoc2013-evolution-7a19800b3827e5437c0cb2e0865442cf7c178f20.tar.xz gsoc2013-evolution-7a19800b3827e5437c0cb2e0865442cf7c178f20.tar.zst gsoc2013-evolution-7a19800b3827e5437c0cb2e0865442cf7c178f20.zip |
Remove em_folder_tree_get_selected_folder_info().
Function is no longer used, or wanted.
-rw-r--r-- | mail/em-folder-tree.c | 42 | ||||
-rw-r--r-- | mail/em-folder-tree.h | 3 |
2 files changed, 0 insertions, 45 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index de1eed8f5b..95aa6b81c6 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -3099,48 +3099,6 @@ em_folder_tree_get_selected_folder (EMFolderTree *folder_tree) return folder; } -CamelFolderInfo * -em_folder_tree_get_selected_folder_info (EMFolderTree *folder_tree) -{ - GtkTreeView *tree_view; - GtkTreeSelection *selection; - GtkTreeModel *model; - GtkTreeIter iter; - gchar *full_name = NULL, *name = NULL, *uri = NULL; - CamelStore *store = NULL; - CamelFolderInfo *fi = NULL; - - g_return_val_if_fail (EM_IS_FOLDER_TREE (folder_tree), NULL); - - tree_view = GTK_TREE_VIEW (folder_tree); - selection = gtk_tree_view_get_selection (tree_view); - - if (gtk_tree_selection_get_selected (selection, &model, &iter)) - gtk_tree_model_get ( - model, &iter, - COL_POINTER_CAMEL_STORE, &store, - COL_STRING_FULL_NAME, &full_name, - COL_STRING_DISPLAY_NAME, &name, - COL_STRING_URI, &uri, -1); - - fi = camel_folder_info_new (); - fi->full_name = g_strdup (full_name); - fi->uri = g_strdup (uri); - fi->name = g_strdup (name); - - if (!fi->full_name) - goto done; - - g_free (fi->name); - if (!g_ascii_strcasecmp (fi->full_name, "INBOX")) - fi->name = g_strdup (_("Inbox")); - else - fi->name = g_strdup (name); - -done: - return fi; -} - EAccount * em_folder_tree_get_selected_account (EMFolderTree *folder_tree) { diff --git a/mail/em-folder-tree.h b/mail/em-folder-tree.h index 4cb032b6b3..f0f89e9fb0 100644 --- a/mail/em-folder-tree.h +++ b/mail/em-folder-tree.h @@ -120,9 +120,6 @@ gchar * em_folder_tree_get_selected_uri (EMFolderTree *folder_tree); gchar * em_folder_tree_get_selected_path (EMFolderTree *folder_tree); CamelFolder * em_folder_tree_get_selected_folder (EMFolderTree *folder_tree); -CamelFolderInfo * - em_folder_tree_get_selected_folder_info - (EMFolderTree *folder_tree); EAccount * em_folder_tree_get_selected_account (EMFolderTree *folder_tree); gboolean em_folder_tree_create_folder (EMFolderTree *folder_tree, |