aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gncal-full-day.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/gncal-full-day.c')
-rw-r--r--calendar/gui/gncal-full-day.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/calendar/gui/gncal-full-day.c b/calendar/gui/gncal-full-day.c
index 02ac1aece2..4501c95c02 100644
--- a/calendar/gui/gncal-full-day.c
+++ b/calendar/gui/gncal-full-day.c
@@ -14,6 +14,7 @@
#include "gncal-full-day.h"
#include "view-utils.h"
#include "main.h"
+#include "popup-menu.h"
#define TEXT_BORDER 2
@@ -61,6 +62,7 @@ struct drag_info {
guint32 click_time;
};
+
enum {
RANGE_ACTIVATED,
LAST_SIGNAL
@@ -347,7 +349,7 @@ delete_appointment (GtkWidget *widget, gpointer data)
}
static void
-child_popup_menu (GncalFullDay *fullday, Child *child, guint32 event_time)
+child_popup_menu (GncalFullDay *fullday, Child *child, GdkEventButton *event)
{
int sensitive;
@@ -367,7 +369,7 @@ child_popup_menu (GncalFullDay *fullday, Child *child, guint32 event_time)
child_items[0].sensitive = sensitive;
child_items[1].sensitive = sensitive;
- popup_menu (child_items, sizeof (child_items) / sizeof (child_items[0]), event_time);
+ popup_menu (child_items, sizeof (child_items) / sizeof (child_items[0]), event);
}
static void
@@ -503,7 +505,7 @@ child_button_press (GtkWidget *widget, GdkEventButton *event, gpointer data)
fullday = GNCAL_FULL_DAY (widget->parent);
gtk_signal_emit_stop_by_name (GTK_OBJECT (widget), "button_press_event");
- child_popup_menu (fullday, child, event->time);
+ child_popup_menu (fullday, child, event);
return TRUE;
}
@@ -1490,7 +1492,7 @@ button_3 (GncalFullDay *fullday, GdkEventButton *event)
main_items[0].data = fullday;
- popup_menu (main_items, sizeof (main_items) / sizeof (main_items[0]), event->time);
+ popup_menu (main_items, sizeof (main_items) / sizeof (main_items[0]), event);
return TRUE;
} else {
@@ -1499,7 +1501,7 @@ button_3 (GncalFullDay *fullday, GdkEventButton *event)
if (!child || on_text)
return FALSE;
- child_popup_menu (fullday, child, event->time);
+ child_popup_menu (fullday, child, event);
return TRUE;
}