From 26ffb596c39b80acb420d1448a0c28f976a2270b Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Thu, 5 Jan 2006 07:02:14 +0000 Subject: fixes #303193 svn path=/trunk/; revision=31059 --- calendar/ChangeLog | 8 ++++++++ calendar/gui/alarm-notify/alarm-notify-dialog.c | 6 ++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 53c58b5099..5e8b2d30d1 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2006-01-05 Johnny Jacob + + Fixes #303193 + * gui/alarm-notify/alarm-notify-dialog.c (notified_alarms_dialog_new): + Changed events handled for edit_btn, snooze_btn from pressed to + clicked + (snooze_pressed_callback) : Grab keyboard focus to snooze_btn. + 2006-01-05 P S Chakravarthi Fixes 317808 diff --git a/calendar/gui/alarm-notify/alarm-notify-dialog.c b/calendar/gui/alarm-notify/alarm-notify-dialog.c index 9ce09b96d6..630c5c7302 100644 --- a/calendar/gui/alarm-notify/alarm-notify-dialog.c +++ b/calendar/gui/alarm-notify/alarm-notify-dialog.c @@ -183,6 +183,8 @@ snooze_pressed_cb (GtkButton *button, gpointer user_data) AlarmFuncInfo *funcinfo = NULL; GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (an->treeview)); + gtk_widget_grab_focus (button); + if (gtk_tree_selection_get_selected (selection, &model, &iter)) gtk_tree_model_get (model, &iter, ALARM_FUNCINFO_COLUMN, &funcinfo, -1); @@ -286,8 +288,8 @@ notified_alarms_dialog_new (void) gtk_image_set_from_file (GTK_IMAGE (image), icon_path); g_free (icon_path); - g_signal_connect (edit_btn, "pressed", G_CALLBACK (edit_pressed_cb), an); - g_signal_connect (snooze_btn, "pressed", G_CALLBACK (snooze_pressed_cb), an); + g_signal_connect (edit_btn, "clicked", G_CALLBACK (edit_pressed_cb), an); + g_signal_connect (snooze_btn, "clicked", G_CALLBACK (snooze_pressed_cb), an); g_signal_connect (G_OBJECT (an->dialog), "response", G_CALLBACK (dialog_response_cb), an); g_signal_connect (G_OBJECT (an->dialog), "destroy", G_CALLBACK (dialog_destroyed_cb), an); -- cgit