[evolution-patches] Bug # 205804 Timezone information can be displayed in tooltip
- From: Rajeev ramanathan <rajeev_evolution yahoo com>
- To: evolution-patches gnome org
- Subject: [evolution-patches] Bug # 205804 Timezone information can be displayed in tooltip
- Date: Fri, 20 Jan 2006 10:15:04 -0800 (PST)
Hi chen,
Edited changelog resending patch again..
with regards
Rajeev
Yahoo! Photos
Got holiday prints?
See all the ways to get quality prints in your hands ASAP.
Index: gui/e-calendar-view.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-calendar-view.c,v
retrieving revision 1.108
diff -u -p -r1.108 e-calendar-view.c
--- gui/e-calendar-view.c 2 Jan 2006 14:12:39 -0000 1.108
+++ gui/e-calendar-view.c 20 Jan 2006 18:02:57 -0000
@@ -1898,6 +1898,7 @@ get_label (struct icaltimetype *tt)
* Organiser: NameOfTheUser<email ofuser com>
* Location: PlaceOfTheMeeting
* Time : DateAndTime (xx Minutes)
+ * Timezone : TimezoneOfTheLocation
*/
gboolean
@@ -1917,7 +1918,7 @@ e_calendar_view_get_tooltips (ECalendarV
g_free (data);
ECalComponent *newcomp = e_cal_component_new ();
- icaltimezone *zone;
+ icaltimezone *zone, *default_zone,*new_zone;
clone_comp = icalcomponent_new_clone (pevent->comp_data->icalcomp);
if (!e_cal_component_set_icalcomponent (newcomp, clone_comp))
@@ -2011,6 +2012,25 @@ e_calendar_view_get_tooltips (ECalendarV
g_free (tmp);
g_free (tmp2);
g_free (tmp1);
+
+ default_zone = calendar_config_get_icaltimezone ();
+
+ if(dtstart.tzid){
+ if(strcmp (icaltimezone_get_tzid (default_zone) ,dtstart.tzid)!=0)
+ {
+ new_zone = icaltimezone_get_builtin_timezone_from_tzid (dtstart.tzid);
+ tmp1 = icaltimezone_get_display_name (new_zone);
+ tmp2 = g_strdup_printf(_("Timezone:%s "), tmp1);
+ hbox = gtk_hbox_new (FALSE, 0);
+ gtk_box_pack_start ((GtkBox *)hbox, gtk_label_new_with_mnemonic (tmp2), 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 (tmp2);
+ g_free(tmp1);
+ }
+ }
pevent->tooltip = gtk_window_new (GTK_WINDOW_POPUP);
frame = gtk_frame_new (NULL);
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2924
diff -u -p -r1.2924 ChangeLog
--- ChangeLog 8 Jan 2006 17:06:34 -0000 1.2924
+++ ChangeLog 20 Jan 2006 18:03:33 -0000
@@ -1,3 +1,7 @@
+2006-01-20 Rajeev ramanathan <rajeevramanathan_2004 yahoo co in>
+ *gui/e-calendar-view.c:Added code to display time zone information in
+ tooltip. Fixes bug #205804
+
2006-01-08 Srinivasa Ragavan <sragavan novell com>
* gui/dialogs/alarm-dialog.glade: Added code to hscroll the custom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]