[evolution-patches] patch for bug# 309508 [calendar]
- From: lviren <lviren novell com>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] patch for bug# 309508 [calendar]
- Date: Mon, 18 Jul 2005 20:15:08 +0530
Hi,
Attached below is fix for the bug# 309508.
http://bugzilla.gnome.org/show_bug.cgi?id=309508
Thanks,
Viren.
Index: gui/dialogs/comp-editor.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/comp-editor.c,v
retrieving revision 1.136
diff -u -p -w -r1.136 comp-editor.c
--- gui/dialogs/comp-editor.c 25 Jun 2005 14:52:30 -0000 1.136
+++ gui/dialogs/comp-editor.c 18 Jul 2005 14:46:06 -0000
@@ -844,8 +844,17 @@ response_cb (GtkWidget *widget, int resp
return;
}
close_dialog (editor);
- }
+ if (delegated) {
+ const char *uid;
+
+ if (e_error_run (NULL, "calendar:prompt-save-delegated-item", NULL) == GTK_RESPONSE_NO) {
+ e_cal_component_get_uid (priv->comp, &uid);
+ e_cal_remove_object (priv->client, uid, NULL);
+ g_free (uid);
+ }
+ }
+ }
break;
case GTK_RESPONSE_HELP:
comp_editor_show_help (editor);
Index: calendar.error.xml
===================================================================
RCS file: /cvs/gnome/evolution/calendar/calendar.error.xml,v
retrieving revision 1.3
diff -u -p -w -r1.3 calendar.error.xml
--- calendar.error.xml 6 Jul 2005 07:14:57 -0000 1.3
+++ calendar.error.xml 18 Jul 2005 14:46:06 -0000
@@ -227,4 +227,12 @@
<_secondary>You are connecting to an unsupported GroupWise server and may encounter problems using Evolution. For best results the server should be upgraded to a supported version</_secondary>
</error>
+ <error id="prompt-save-delegated-item" type="question" default="GTK_RESPONSE_YES">
+ <title>Delegate</title>
+ <_primary>Meeting delegated</_primary>
+ <_secondary>Keep the original item ?</_secondary>
+ <button stock="gtk-no" response="GTK_RESPONSE_NO"/>
+ <button stock="gtk-yes" response="GTK_RESPONSE_YES"/>
+ </error>
+
</error-list>
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2764
diff -u -p -w -r1.2764 ChangeLog
--- ChangeLog 11 Jul 2005 08:59:37 -0000 1.2764
+++ ChangeLog 18 Jul 2005 14:46:08 -0000
@@ -1,3 +1,9 @@
+2005-07-18 viren.l <lviren novell com>
+ * gui/dialog/comp-editor.c: (response_cb):
+ Check for delegate flag and remove the object based on the response.
+ * calendar-erros.xml:
+ Defined a error id prompt-save-delegated-item.
+
2005-07-11 Srinivasa Ragavan <sragavan novell com>
* gui/itip-utils.[ch]: Added a structure.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]