[evolution-patches] fix for the bug #326735 [UIHACKFEST] [calendar]



Hi,
  Have attached the fix for the bug. If the user is not the organizer
set the right organizer and dont allow renaming organizer.

thanks, Chenthill.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2927
diff -u -p -u -p -r1.2927 ChangeLog
--- ChangeLog	12 Jan 2006 14:55:33 -0000	1.2927
+++ ChangeLog	12 Jan 2006 15:02:29 -0000
@@ -1,3 +1,10 @@
+2006-01-14  Chenthill Palanisamy  <pchenthill novell com>
+
+	Fixes #326735
+	* gui/dialogs/event-page.c: (event_page_fill_widgets): If
+	the user is not the organizer, set the orignal organizer in
+	the combobox and make it non-editable.
+
 2006-01-12  Harish Krishnaswamy  <kharish novell com>
 
 	* gui/gnome-cal.c: (gnome_calendar_class_init):
Index: gui/dialogs/event-page.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/event-page.c,v
retrieving revision 1.98
diff -u -p -u -p -r1.98 event-page.c
--- gui/dialogs/event-page.c	6 Jan 2006 06:29:07 -0000	1.98
+++ gui/dialogs/event-page.c	12 Jan 2006 15:02:30 -0000
@@ -1021,6 +1021,8 @@ event_page_fill_widgets (CompEditorPage 
 			if (organizer.value != NULL) {
 				const gchar *strip = itip_strip_mailto (organizer.value);
 				gchar *string;
+				GList *list = NULL;
+				
 				if (itip_organizer_is_user (comp, page->client)) {
 					if (e_cal_get_static_capability (
 								page->client,
@@ -1043,7 +1045,14 @@ event_page_fill_widgets (CompEditorPage 
 				else
 					string = g_strdup (strip);
 
+				if (!priv->user_org) {
+					list = g_list_append (list, string);
+					gtk_combo_set_popdown_strings (GTK_COMBO (priv->organizer), list);
+					gtk_entry_set_editable (GTK_COMBO (priv->organizer)->entry, FALSE);
+				}
+
 				g_free (string);
+				g_list_free (list);
 				priv->existing = TRUE;
 			}
 		} else {


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