From 4c725337a0c392422b947d70b37a81cdc1435d35 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 14 May 2002 03:17:00 +0000 Subject: Added a signal when the value of the checkboxes changes. 2002-05-13 Christopher James Lahey * e-storage-set-view.c (etree_set_value_at): Added a signal when the value of the checkboxes changes. svn path=/trunk/; revision=16776 --- shell/ChangeLog | 5 +++++ shell/e-storage-set-view.c | 11 +++++++++++ shell/e-storage-set-view.h | 1 + 3 files changed, 17 insertions(+) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index 11029f6f39..b5b6589d38 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2002-05-13 Christopher James Lahey + + * e-storage-set-view.c (etree_set_value_at): Added a signal when + the value of the checkboxes changes. + 2002-05-10 Ettore Perazzoli * e-shell-shared-folder-picker-dialog.c: Add members `parent' and diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c index 3938d48d1a..5d4a7616e6 100644 --- a/shell/e-storage-set-view.c +++ b/shell/e-storage-set-view.c @@ -108,6 +108,7 @@ enum { DND_ACTION, FOLDER_CONTEXT_MENU_POPPING_UP, FOLDER_CONTEXT_MENU_POPPED_DOWN, + CHECKBOXES_CHANGED, LAST_SIGNAL }; @@ -1274,6 +1275,8 @@ etree_set_value_at (ETreeModel *etree, g_free (temp); } e_tree_model_node_col_changed (etree, tree_path, col); + gtk_signal_emit (GTK_OBJECT (storage_set_view), + signals[CHECKBOXES_CHANGED]); break; } } @@ -1587,6 +1590,14 @@ class_init (EStorageSetViewClass *klass) gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); + signals[CHECKBOXES_CHANGED] + = gtk_signal_new ("checkboxes_changed", + GTK_RUN_FIRST, + object_class->type, + GTK_SIGNAL_OFFSET (EStorageSetViewClass, checkboxes_changed), + gtk_marshal_NONE__NONE, + GTK_TYPE_NONE, 0); + gtk_object_class_add_signals (object_class, signals, LAST_SIGNAL); } diff --git a/shell/e-storage-set-view.h b/shell/e-storage-set-view.h index ff620ea5de..553db79f9e 100644 --- a/shell/e-storage-set-view.h +++ b/shell/e-storage-set-view.h @@ -68,6 +68,7 @@ struct _EStorageSetViewClass { void (* folder_context_menu_popping_up) (EStorageSetView *storage_set_view, const char *path); void (* folder_context_menu_popped_down) (EStorageSetView *storage_set_view); + void (* checkboxes_changed) (EStorageSetView *storage_set_view); }; -- cgit