aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/dialogs/alarm-list-dialog.c11
2 files changed, 18 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index f1780a9d05..5267b41bdf 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,12 @@
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
+
+2004-06-24 JP Rosevear <jpr@novell.com>
+
* gui/dialogs/event-page.c (event_page_fill_component): store all
the custom alarms
(alarm_custom_clicked_cb): emit changed signal if necessary
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
raph'>* Update to 2.7.4.knu2007-12-272-4/+4 * Update to 2.7.3.knu2007-04-292-4/+4 * Add a ad-hoc patch and unbreak.knu2006-09-212-3/+11 * BROKEN: Does not compilekris2006-09-171-0/+2 * Add SHA256 sums. I'll upgrade my 4.x box to 6 soon...knu2006-06-071-0/+1 * Update to 2.7.1.knu2006-06-072-5/+4 * Update to 2.7.knu2005-12-262-5/+5 * - Add SHA256pav2005-11-241-0/+1 * With portmgr hat on, reset maintainership of knu's ports since he haslinimon2005-11-111-1/+1 * - Update to 2.6pav2005-06-072-13/+4 * Update to 2.5.1.knu2004-12-263-7/+12 * Add SIZE data.knu2004-03-221-0/+1 * Update to 2.4.5. Depend on MySQL 4.0 by default.knu2003-08-103-25/+10 * De-pkg-comment.knu2003-02-182-1/+1