[evolution-patches] patch for #57353



I'm not sure this is correct, since when you change to another view
while an event is selected, when moving to the other view (specially
with the day view), weird things happen like having 2 events selected.

So, I guess it would be better to punt the bug, but just in case, here's
the patch
-- 
Rodrigo Moya <rodrigo novell com>
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2489
diff -u -p -r1.2489 ChangeLog
--- ChangeLog	17 Aug 2004 13:35:28 -0000	1.2489
+++ ChangeLog	18 Aug 2004 10:58:34 -0000
@@ -1,3 +1,10 @@
+2004-08-18  Rodrigo Moya <rodrigo novell com>
+
+	Fixes #57353
+
+	* gui/e-calendar-view.c (e_calendar_view_create_popup_menu): create
+	the view submenu also for the event's menu item.
+
 2004-08-16  JP Rosevear  <jpr ximian com>
 
 	Fixes #62706
Index: gui/e-calendar-view.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-calendar-view.c,v
retrieving revision 1.63
diff -u -p -r1.63 e-calendar-view.c
--- gui/e-calendar-view.c	10 Aug 2004 14:04:20 -0000	1.63
+++ gui/e-calendar-view.c	18 Aug 2004 10:58:35 -0000
@@ -1453,6 +1453,10 @@ static EPopupMenu child_items [] = {
 	E_POPUP_ITEM (N_("Delete this _Occurrence"), GTK_SIGNAL_FUNC (on_delete_occurrence), MASK_RECURRING | MASK_EDITING | MASK_EDITABLE),
 	E_POPUP_ITEM (N_("Delete _All Occurrences"), GTK_SIGNAL_FUNC (on_delete_appointment), MASK_RECURRING | MASK_EDITING | MASK_EDITABLE),
 
+	E_POPUP_SEPARATOR,
+
+	E_POPUP_SUBMENU (N_("Current View"), NULL, 0),
+
 	E_POPUP_TERMINATOR
 };
 
@@ -1550,6 +1554,8 @@ e_calendar_view_create_popup_menu (ECale
 	} else {
 		ECalendarViewEvent *event;
 
+		cal_view->priv->view_menu = gnome_calendar_setup_view_popup (cal_view->priv->calendar);
+		child_items[18].submenu = cal_view->priv->view_menu;
 		context_menu = child_items;
 
 		event = (ECalendarViewEvent *) selected->data;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]