From 10ee8953e2d461f3164cbc32784af1ab887aa0c7 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Sat, 6 May 2000 10:43:14 +0000 Subject: added guint ref_count to iCalObject struct, and ical_object_ref/unref() 2000-05-06 Damon Chaplin * cal-util/calobj.[hc]: added guint ref_count to iCalObject struct, and ical_object_ref/unref() functions. I've updated all the gui/ stuff to use ref_counts but I haven't touched the pcs/ stuff. Maybe just using ical_object_destroy() is OK there. * gui/gncal-todo.c: * gui/calendar-commands.c: * gui/eventedit.c: * gui/e-week-view.c: * gui/e-day-view.c: use refcounting for iCalObjects. * gui/e-day-view-main-item.c: * gui/e-day-view-top-item.c: * gui/e-day-view.c: try not to ever draw outside the event, even when the event is very small. 2000-05-05 Damon Chaplin * gui/e-day-view.c: don't allow recurring events to be resized or dragged, and don't show the resize/drag cursors. Actually it may be better to let the user do the resize/drag and then ask them what they want to do - change the single occurrence or the entire series. * gui/e-day-view-time-item.c (e_day_view_time_item_show_popup_menu): use e_auto_kill_popup_menu_on_hide() to destroy the popup menu. * gui/popup-menu.c: include e-gui-utils.h svn path=/trunk/; revision=2823 --- calendar/gui/popup-menu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'calendar/gui/popup-menu.c') diff --git a/calendar/gui/popup-menu.c b/calendar/gui/popup-menu.c index 3b976a9033..a90c38d490 100644 --- a/calendar/gui/popup-menu.c +++ b/calendar/gui/popup-menu.c @@ -8,6 +8,7 @@ #include #include #include "popup-menu.h" +#include "../../e-util/e-gui-utils.h" void @@ -20,7 +21,7 @@ popup_menu (struct menu_item *items, int nitems, GdkEventButton *event) menu = gtk_menu_new (); /* Make sure the menu is destroyed when it disappears. */ - e_auto_kill_popup_menu_on_hide (menu); + e_auto_kill_popup_menu_on_hide (GTK_MENU (menu)); for (i = 0; i < nitems; i++) { if (items[i].text) { -- cgit v1.2.3