From 3ad5a5617a93749934db572b53f8e67f0b49dff5 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 29 Nov 2012 14:19:59 -0500 Subject: AlarmQueue: Forgot to add this to the previous commit. --- calendar/alarm-notify/alarm-queue.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/calendar/alarm-notify/alarm-queue.c b/calendar/alarm-notify/alarm-queue.c index 360a95edf2..e152b59056 100644 --- a/calendar/alarm-notify/alarm-queue.c +++ b/calendar/alarm-notify/alarm-queue.c @@ -1492,7 +1492,7 @@ tray_icon_clicked_cb (GtkWidget *widget, } return TRUE; - } else if (event->button == 3) { + } else if (event_button == 3) { debug (("right click")); remove_tray_icon (); @@ -1506,11 +1506,11 @@ tray_icon_clicked_cb (GtkWidget *widget, static void icon_activated (GtkStatusIcon *icon) { - GdkEventButton event; + GdkEvent event; event.type = GDK_BUTTON_PRESS; - event.button = 1; - event.time = gtk_get_current_event_time (); + event.button.button = 1; + event.button.time = gtk_get_current_event_time (); tray_icon_clicked_cb (NULL, &event, NULL); } @@ -1522,11 +1522,11 @@ popup_menu (GtkStatusIcon *icon, { if (button == 3) { /* right click */ - GdkEventButton event; + GdkEvent event; event.type = GDK_BUTTON_PRESS; - event.button = 3; - event.time = gtk_get_current_event_time (); + event.button.button = 3; + event.button.time = gtk_get_current_event_time (); tray_icon_clicked_cb (NULL, &event, NULL); } -- cgit