[evolution-patches] patch to prevent attendees from dragging and resizing meetings.
- From: lviren <lviren novell com>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] patch to prevent attendees from dragging and resizing meetings.
- Date: Tue, 19 Jul 2005 20:48:53 +0530
Hi,
Patch to prevent mouse events for attendees.
Thanks,
Viren
Index: gui/e-day-view.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-day-view.c,v
retrieving revision 1.279
diff -u -p -r1.279 e-day-view.c
--- gui/e-day-view.c 27 Jun 2005 00:43:07 -0000 1.279
+++ gui/e-day-view.c 19 Jul 2005 15:19:11 -0000
@@ -3945,7 +3945,8 @@ e_day_view_finish_long_event_resize (EDa
}
toplevel = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (day_view)));
- e_calendar_view_modify_and_send (comp, client, mod, toplevel, TRUE);
+ if (itip_organizer_is_user (comp, client))
+ e_calendar_view_modify_and_send (comp, client, mod, toplevel, TRUE);
out:
gnome_canvas_item_hide (day_view->resize_long_event_rect_item);
@@ -4050,9 +4051,10 @@ e_day_view_finish_resize (EDayView *day_
toplevel = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (day_view)));
- e_cal_component_commit_sequence (comp);
- e_calendar_view_modify_and_send (comp, client, mod, toplevel, TRUE);
-
+ if (itip_organizer_is_user (comp, client)) {
+ e_cal_component_commit_sequence (comp);
+ e_calendar_view_modify_and_send (comp, client, mod, toplevel, TRUE);
+ }
out:
g_object_unref (comp);
}
@@ -5932,8 +5934,10 @@ e_day_view_change_event_time (EDayView *
toplevel = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (day_view)));
- e_cal_component_commit_sequence (comp);
- e_calendar_view_modify_and_send (comp, client, mod, toplevel, TRUE);
+ if (itip_organizer_is_user (comp, client)) {
+ e_cal_component_commit_sequence (comp);
+ e_calendar_view_modify_and_send (comp, client, mod, toplevel, TRUE);
+ }
out:
g_object_unref (comp);
@@ -7295,7 +7299,8 @@ e_day_view_on_top_canvas_drag_data_recei
}
toplevel = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (day_view)));
- e_calendar_view_modify_and_send (comp, client, mod, toplevel, FALSE);
+ if (itip_organizer_is_user (comp, client))
+ e_calendar_view_modify_and_send (comp, client, mod, toplevel, FALSE);
g_object_unref (comp);
@@ -7492,7 +7497,8 @@ e_day_view_on_main_canvas_drag_data_rece
}
toplevel = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (day_view)));
- e_calendar_view_modify_and_send (comp, client, mod, toplevel, FALSE);
+ if (itip_organizer_is_user (comp, client))
+ e_calendar_view_modify_and_send (comp, client, mod, toplevel, FALSE);
g_object_unref (comp);
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2770
diff -u -p -r1.2770 ChangeLog
--- ChangeLog 13 Jul 2005 10:36:14 -0000 1.2770
+++ ChangeLog 19 Jul 2005 15:19:20 -0000
@@ -1,3 +1,12 @@
+2005-07-19 Viren.l <lviren novell com>
+ * gui/e-day-view.c: (e_day_view_on_top_canvas_drag_data_received)
+ (e_day_view_on_main_canvas_drag_data_received)
+ (e_day_view_finish_long_event_resize)
+ (e_day_view_finish_resize)
+ (e_day_view_change_event_time):
+ Invoke e_calendar_view_modify_and_send, e_cal_component_commit_sequence
+ only if user is organizer.
+
2005-07-08 Kjartan Maraas <kmaraas gnome org>
* gui/alarm-notify/alarm-notify.c: (alarm_notify_add_calendar):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]