[evolution-patches] [Calendar] Fix for Bug 325637



*calendar/gui/e-calendar-view.c Here code added to display user status information


Yahoo! Photos
Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.
Index: e-calendar-view.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-calendar-view.c,v
retrieving revision 1.107
diff -u -p -r1.107 e-calendar-view.c
--- e-calendar-view.c	19 Dec 2005 11:23:09 -0000	1.107
+++ e-calendar-view.c	2 Jan 2006 13:09:09 -0000
@@ -1897,6 +1897,7 @@ get_label (struct icaltimetype *tt)
  * 	<B>SUBJECT OF THE MEETING</B>
  * 	Organiser: NameOfTheUser<email ofuser com>
  * 	Location: PlaceOfTheMeeting
+ *	Status:StatusOfTheUser
  * 	Time : DateAndTime (xx Minutes)
  */
 
@@ -1963,6 +1964,20 @@ e_calendar_view_get_tooltips (ECalendarV
 	if (str) {
 		/* To Translators: It will display "Location: PlaceOfTheMeeting" */
 		tmp = g_strdup_printf (_("Location: %s"), str);
+		label = gtk_label_new (NULL);
+		gtk_label_set_markup ((GtkLabel *)label, tmp);
+		hbox = gtk_hbox_new (FALSE, 0);
+		gtk_box_pack_start ((GtkBox *)hbox, label, FALSE, FALSE, 0);
+		ebox = gtk_event_box_new ();
+		gtk_container_add ((GtkContainer *)ebox, hbox);
+		gtk_box_pack_start ((GtkBox *)box, ebox, FALSE, FALSE, 0);
+		g_free (tmp);
+	}
+	
+	e_cal_component_get_status (newcomp, &str);
+
+	if (str) {
+		tmp = g_strdup_printf (_("Status: %s"), str);
 		label = gtk_label_new (NULL);
 		gtk_label_set_markup ((GtkLabel *)label, tmp);
 		hbox = gtk_hbox_new (FALSE, 0);


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