Re: [evolution-patches] patch for bug #313112 [calendar]
- From: "Viren L" <lviren novell com>
- To: <evolution-patches gnome org>
- Cc: P Chenthill <PChenthill novell com>
- Subject: Re: [evolution-patches] patch for bug #313112 [calendar]
- Date: Wed, 14 Sep 2005 03:24:20 -0600
Hi,
Incorporated the changes that were mentioned.
>>> chen <pchenthill novell com> 09/14/05 10:50 AM >>>
On Tue, 2005-09-13 at 20:21 +0530, lviren wrote:
> + { E_POPUP_ITEM, "52.move", N_("Make this Occurrence
> _Movable"), on_unrecur_appointment, NULL, NULL,
> E_CAL_POPUP_SELECT_RECURRING | E_CAL_POPUP_SELECT_INSTANCE,
> E_CAL_POPUP_SELECT_NOTEDITING | E_CAL_POPUP_SELECT_EDITABLE |
> E_CAL_POPUP_SELECT_MOVABLE },
Instead of desensitizing the menu, its better not to show it.
thanks, Chenthill.
Index: gui/e-cal-popup.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-cal-popup.c,v
retrieving revision 1.16
diff -u -p -r1.16 e-cal-popup.c
--- gui/e-cal-popup.c 24 Aug 2005 03:07:49 -0000 1.16
+++ gui/e-cal-popup.c 14 Sep 2005 06:21:23 -0000
@@ -229,6 +229,9 @@ e_cal_popup_target_new_select(ECalPopup
if (icalcomponent_get_first_property (comp_data->icalcomp, ICAL_URL_PROPERTY))
mask &= ~E_CAL_POPUP_SELECT_HASURL;
+
+ if (!e_cal_get_recurrences_no_master (comp_data->client))
+ mask &= ~E_CAL_POPUP_SELECT_MOVABLE;
if (e_cal_util_component_has_recurrences (comp_data->icalcomp))
mask &= ~E_CAL_POPUP_SELECT_RECURRING;
@@ -422,6 +425,7 @@ static const EPopupHookTargetMask ecalph
{ "hasurl", E_CAL_POPUP_SELECT_HASURL },
{ "delegate", E_CAL_POPUP_SELECT_DELEGATABLE },
{ "accept", E_CAL_POPUP_SELECT_ACCEPTABLE },
+ { "movable", E_CAL_POPUP_SELECT_MOVABLE },
{ 0 }
};
Index: gui/e-cal-popup.h
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-cal-popup.h,v
retrieving revision 1.9
diff -u -p -r1.9 e-cal-popup.h
--- gui/e-cal-popup.h 18 Aug 2005 11:20:23 -0000 1.9
+++ gui/e-cal-popup.h 14 Sep 2005 06:21:23 -0000
@@ -85,6 +85,7 @@ enum _e_cal_popup_target_select_t {
E_CAL_POPUP_SELECT_MEETING = 1 <<12,
E_CAL_POPUP_SELECT_DELEGATABLE = 1<<13,
E_CAL_POPUP_SELECT_ACCEPTABLE = 1<<14,
+ E_CAL_POPUP_SELECT_MOVABLE = 1<<15,
};
/**
Index: gui/e-calendar-view.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-calendar-view.c,v
retrieving revision 1.91
diff -u -p -r1.91 e-calendar-view.c
--- gui/e-calendar-view.c 24 Aug 2005 03:07:49 -0000 1.91
+++ gui/e-calendar-view.c 14 Sep 2005 06:21:24 -0000
@@ -1546,7 +1546,7 @@ static EPopupItem ecv_child_items [] = {
{ E_POPUP_BAR, "50." },
{ E_POPUP_ITEM, "51.delete", N_("_Delete"), on_delete_appointment, NULL, GTK_STOCK_DELETE, E_CAL_POPUP_SELECT_NONRECURRING, E_CAL_POPUP_SELECT_NOTEDITING | E_CAL_POPUP_SELECT_EDITABLE },
- { E_POPUP_ITEM, "52.move", N_("Make this Occurrence _Movable"), on_unrecur_appointment, NULL, NULL, E_CAL_POPUP_SELECT_RECURRING | E_CAL_POPUP_SELECT_INSTANCE, E_CAL_POPUP_SELECT_NOTEDITING | E_CAL_POPUP_SELECT_EDITABLE },
+ { E_POPUP_ITEM, "52.move", N_("Make this Occurrence _Movable"), on_unrecur_appointment, NULL, NULL, E_CAL_POPUP_SELECT_RECURRING | E_CAL_POPUP_SELECT_INSTANCE | E_CAL_POPUP_SELECT_MOVABLE, E_CAL_POPUP_SELECT_NOTEDITING | E_CAL_POPUP_SELECT_EDITABLE },
{ E_POPUP_ITEM, "53.delete", N_("Delete this _Occurrence"), on_delete_occurrence, NULL, GTK_STOCK_DELETE, E_CAL_POPUP_SELECT_RECURRING, E_CAL_POPUP_SELECT_NOTEDITING | E_CAL_POPUP_SELECT_EDITABLE },
{ E_POPUP_ITEM, "54.delete", N_("Delete _All Occurrences"), on_delete_appointment, NULL, GTK_STOCK_DELETE, E_CAL_POPUP_SELECT_RECURRING, E_CAL_POPUP_SELECT_NOTEDITING | E_CAL_POPUP_SELECT_EDITABLE },
};
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2803
diff -u -p -r1.2803 ChangeLog
--- ChangeLog 2 Sep 2005 13:58:02 -0000 1.2803
+++ ChangeLog 14 Sep 2005 06:21:37 -0000
@@ -1,3 +1,13 @@
+2005-08-23 Viren.l <lviren novell com>
+
+ * gui/e-cal-popup.h: Added a flag E_CAL_POPUP_SELECT_MOVABLE.
+ * gui/e-cal-popup.c: (e_cal_popup_target_new_select)
+ Mask the above flag if e_cal_get_recurrences_no_master fails.
+ * gui/e-calendar-view.c: Added visibility mask to Make this Occurrence _Movable
+ menu item.
+
+ Fixes #313112.
+
2005-09-01 Dinesh Layek <ldinesh novell com>
Fixes #314922, 311694, 314918
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]