From 86279dfe50fb3085a8abfc3e8f1e5c022a48e561 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Tue, 3 Oct 2000 03:25:30 +0000 Subject: if we're not displaying folders, the current folder is NULL. (class_init): 2000-10-02 Chris Toshok * e-storage-set-view.c (e_storage_set_view_get_current_folder): if we're not displaying folders, the current folder is NULL. (class_init): fix typo. * Makefile.am (libeshell_a_SOURCES): evolution-storage-set-view-listener.[ch] should be here, not evolution_SOURCES. svn path=/trunk/; revision=5687 --- shell/e-storage-set-view.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'shell/e-storage-set-view.c') diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c index 040e2dc571..9c1ded128e 100644 --- a/shell/e-storage-set-view.c +++ b/shell/e-storage-set-view.c @@ -679,7 +679,7 @@ class_init (EStorageSetViewClass *klass) GTK_TYPE_NONE, 1, GTK_TYPE_STRING); - signals[FOLDER_SELECTED] + signals[STORAGE_SELECTED] = gtk_signal_new ("storage_selected", GTK_RUN_FIRST, object_class->type, @@ -1014,6 +1014,9 @@ e_storage_set_view_get_current_folder (EStorageSetView *storage_set_view) priv = storage_set_view->priv; + if (!priv->show_folders) + return NULL; /* Mmh! */ + row = e_table_get_cursor_row (E_TABLE (storage_set_view)); etree_node = e_tree_model_node_at_row (priv->etree_model, row); -- cgit v1.2.3