aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-storage-set-view.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@helixcode.com>2000-10-03 11:25:30 +0800
committerChris Toshok <toshok@src.gnome.org>2000-10-03 11:25:30 +0800
commit86279dfe50fb3085a8abfc3e8f1e5c022a48e561 (patch)
tree718d7634968711c04bf2ee24c0ca15f1bb3d3c3d /shell/e-storage-set-view.c
parentcc6dbb8f3cf2f9d64e0f0577a08177630e72219b (diff)
downloadgsoc2013-evolution-86279dfe50fb3085a8abfc3e8f1e5c022a48e561.tar
gsoc2013-evolution-86279dfe50fb3085a8abfc3e8f1e5c022a48e561.tar.gz
gsoc2013-evolution-86279dfe50fb3085a8abfc3e8f1e5c022a48e561.tar.bz2
gsoc2013-evolution-86279dfe50fb3085a8abfc3e8f1e5c022a48e561.tar.lz
gsoc2013-evolution-86279dfe50fb3085a8abfc3e8f1e5c022a48e561.tar.xz
gsoc2013-evolution-86279dfe50fb3085a8abfc3e8f1e5c022a48e561.tar.zst
gsoc2013-evolution-86279dfe50fb3085a8abfc3e8f1e5c022a48e561.zip
if we're not displaying folders, the current folder is NULL. (class_init):
2000-10-02 Chris Toshok <toshok@helixcode.com> * 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
Diffstat (limited to 'shell/e-storage-set-view.c')
-rw-r--r--shell/e-storage-set-view.c5
1 files changed, 4 insertions, 1 deletions
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);