[evolution/wip/gsettings] Remove em_folder_tree_get_selected_path().



commit 851a872865769d1d53e495fd1d0b82f0452594c4
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue May 24 16:16:59 2011 -0400

    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, 0 insertions(+), 24 deletions(-)
---
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 9689c53..3b16f62 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 3a28d5c..17c6864 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]