diff options
Diffstat (limited to 'calendar/alarm-notify/alarm-queue.c')
-rw-r--r-- | calendar/alarm-notify/alarm-queue.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/calendar/alarm-notify/alarm-queue.c b/calendar/alarm-notify/alarm-queue.c index f24a17b135..360a95edf2 100644 --- a/calendar/alarm-notify/alarm-queue.c +++ b/calendar/alarm-notify/alarm-queue.c @@ -1476,12 +1476,16 @@ open_alarm_dialog (TrayIconData *tray_data) static gint tray_icon_clicked_cb (GtkWidget *widget, - GdkEventButton *event, + GdkEvent *event, gpointer user_data) { if (event->type == GDK_BUTTON_PRESS) { + guint event_button = 0; + debug (("left click and %d alarms", g_list_length (tray_icons_list))); - if (event->button == 1 && g_list_length (tray_icons_list) > 0) { + + gdk_event_get_button (event, &event_button); + if (event_button == 1 && g_list_length (tray_icons_list) > 0) { GList *tmp; for (tmp = tray_icons_list; tmp; tmp = tmp->next) { open_alarm_dialog (tmp->data); |