Use em_folder_tree_get_model() since an emft is not a GtkTreeView.

2003-11-13  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-component.c (mail_component_get_tree_model): Use
	em_folder_tree_get_model() since an emft is not a GtkTreeView.

	* em-folder-tree.c (em_folder_tree_get_model): New function to get
	the tree model.

svn path=/trunk/; revision=23347
This commit is contained in:
Jeffrey Stedfast
2003-11-13 23:42:49 +00:00
committed by Jeffrey Stedfast
parent f67ed4d34c
commit dbf9e56e63
3 changed files with 5 additions and 2 deletions

View File

@ -3,7 +3,8 @@
* mail-component.c (mail_component_get_tree_model): Use
em_folder_tree_get_model() since an emft is not a GtkTreeView.
* em-folder-tree.c (em_folder_tree_get_model): New function to get the tree model.
* em-folder-tree.c (em_folder_tree_get_model): New function to get
the tree model.
2003-11-13 Jeffrey Stedfast <fejj@ximian.com>

View File

@ -70,6 +70,8 @@ void em_folder_tree_set_selected (EMFolderTree *emft, const char *uri);
const char *em_folder_tree_get_selected_uri (EMFolderTree *emft);
const char *em_folder_tree_get_selected_path (EMFolderTree *emft);
EMFolderTreeModel *em_folder_tree_get_model (EMFolderTree *emft);
#ifdef __cplusplus
}
#endif /* __cplusplus */

View File

@ -694,7 +694,7 @@ mail_component_get_tree_model (MailComponent *component)
{
EMFolderTreeModel *model;
model = (EMFolderTreeModel *) gtk_tree_view_get_model ((GtkTreeView *) component->priv->emft);
model = em_folder_tree_get_model ((GtkTreeView *) component->priv->emft);
g_object_ref (model);
return model;