aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-07 00:36:28 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-07 00:36:28 +0800
commit48309e3765ba8fae248a1ec6f9f8a1ab395a92a8 (patch)
tree3e1f21c60c6d4c6f2fd22d7cd2b27f701eb3d16b /mail
parent6d44258b85c29fb7c08dcaf842975435bbf44805 (diff)
downloadgsoc2013-evolution-48309e3765ba8fae248a1ec6f9f8a1ab395a92a8.tar.gz
gsoc2013-evolution-48309e3765ba8fae248a1ec6f9f8a1ab395a92a8.tar.zst
gsoc2013-evolution-48309e3765ba8fae248a1ec6f9f8a1ab395a92a8.zip
Remove em_folder_tree_get_selected_folder_info().
Function is no longer used, or wanted.
Diffstat (limited to 'mail')
-rw-r--r--mail/em-folder-tree.c42
-rw-r--r--mail/em-folder-tree.h3
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,