aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-06-25 05:35:43 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-06-25 05:35:43 +0800
commit4b5b098a0d23ffdc970d7f180322f5900acc96d6 (patch)
tree3236da64a55a07c38248723b6c6652254150c68f /calendar/gui
parent516c77a7a9e1c7a8980dd2efa3b43e521d474079 (diff)
downloadgsoc2013-evolution-4b5b098a0d23ffdc970d7f180322f5900acc96d6.tar
gsoc2013-evolution-4b5b098a0d23ffdc970d7f180322f5900acc96d6.tar.gz
gsoc2013-evolution-4b5b098a0d23ffdc970d7f180322f5900acc96d6.tar.bz2
gsoc2013-evolution-4b5b098a0d23ffdc970d7f180322f5900acc96d6.tar.lz
gsoc2013-evolution-4b5b098a0d23ffdc970d7f180322f5900acc96d6.tar.xz
gsoc2013-evolution-4b5b098a0d23ffdc970d7f180322f5900acc96d6.tar.zst
gsoc2013-evolution-4b5b098a0d23ffdc970d7f180322f5900acc96d6.zip
sensitize the buttons (init_widgets): listen for selection changes so we
2004-06-24 JP Rosevear <jpr@novell.com> * gui/dialogs/alarm-list-dialog.c (selection_changed_cb): sensitize the buttons (init_widgets): listen for selection changes so we can delete alarms svn path=/trunk/; revision=26502
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/alarm-list-dialog.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/alarm-list-dialog.c b/calendar/gui/dialogs/alarm-list-dialog.c
index 827c5fff41..add08c1dfa 100644
--- a/calendar/gui/dialogs/alarm-list-dialog.c
+++ b/calendar/gui/dialogs/alarm-list-dialog.c
@@ -169,6 +169,14 @@ delete_clicked_cb (GtkButton *button, gpointer data)
gtk_tree_path_free (path);
}
+static void
+selection_changed_cb (GtkTreeSelection *selection, gpointer data)
+{
+ Dialog *dialog = data;
+
+ sensitize_buttons (dialog);
+}
+
/* Hooks the widget signals */
static void
init_widgets (Dialog *dialog)
@@ -192,6 +200,9 @@ init_widgets (Dialog *dialog)
G_CALLBACK (add_clicked_cb), dialog);
g_signal_connect (dialog->delete, "clicked",
G_CALLBACK (delete_clicked_cb), dialog);
+
+ g_signal_connect (gtk_tree_view_get_selection (GTK_TREE_VIEW (dialog->list)), "changed",
+ G_CALLBACK (selection_changed_cb), dialog);
}
gboolean