From 017a40b429a28c7b69abee005262794dde049e15 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Thu, 23 Apr 1998 00:26:37 +0000 Subject: Made it use popup_menu(). 1998-04-22 Federico Mena Quintero * gncal-full-day.c: Made it use popup_menu(). * popup-menu.c: New file with utility functions for creating popup menus. Maybe such a thing would be useful in libgnomeui, a la gnome-app-helper? * Makefile.am (gnomecal_SOURCES): Added popup-menu.[ch] to the sources. 1998-04-21 Federico Mena Quintero * gncal-todo.c: New widget for editing TODO lists. This will be worked on a lot. * Makefile.am (gnomecal_SOURCES): Added gncal-todo.[ch] to the sources. * gncal-day-panel.c: Make it use the new TODO widget. svn path=/trunk/; revision=189 --- calendar/gncal-full-day.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'calendar/gncal-full-day.c') diff --git a/calendar/gncal-full-day.c b/calendar/gncal-full-day.c index 02ac1aece2..4501c95c02 100644 --- a/calendar/gncal-full-day.c +++ b/calendar/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; } -- cgit v1.2.3