From b6fecfcd53bc5a733a7aaf3684cda077bfdd2e5e Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 24 May 2011 16:16:59 -0400 Subject: Remove em_folder_tree_get_selected_path(). em_folder_tree_get_selected() supercedes it. --- mail/em-folder-tree.c | 22 ---------------------- mail/em-folder-tree.h | 2 -- 2 files changed, 24 deletions(-) (limited to 'mail') diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index 9689c53dda..3b16f62fa3 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -3207,28 +3207,6 @@ em_folder_tree_get_selected_uri (EMFolderTree *folder_tree) return uri; } -gchar * -em_folder_tree_get_selected_path (EMFolderTree *folder_tree) -{ - GtkTreeView *tree_view; - GtkTreeSelection *selection; - GtkTreeModel *model; - GtkTreeIter iter; - gchar *name = 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)) - return NULL; - - gtk_tree_model_get (model, &iter, COL_STRING_FULL_NAME, &name, -1); - - return name; -} - CamelFolder * em_folder_tree_get_selected_folder (EMFolderTree *folder_tree) { diff --git a/mail/em-folder-tree.h b/mail/em-folder-tree.h index 3a28d5c314..17c68648a9 100644 --- a/mail/em-folder-tree.h +++ b/mail/em-folder-tree.h @@ -127,8 +127,6 @@ gboolean em_folder_tree_get_selected (EMFolderTree *folder_tree, CamelStore **out_store, gchar **out_folder_name); 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); EAccount * em_folder_tree_get_selected_account -- cgit v1.2.3