From c049cedd6969d77649db15b71f4ba112d4a2c065 Mon Sep 17 00:00:00 2001 From: Paolo Borelli Date: Mon, 14 Jul 2008 11:38:30 +0000 Subject: ** Fix for bug #542889 2008-17-14 Paolo Borelli ** Fix for bug #542889 Port to the new gtk tooltip api. svn path=/trunk/; revision=35744 --- calendar/ChangeLog | 8 ++++++++ calendar/gui/alarm-notify/alarm-queue.c | 2 -- calendar/gui/dialogs/event-page.c | 4 +--- 3 files changed, 9 insertions(+), 5 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index c778291424..f33f8c9bba 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2008-17-14 Paolo Borelli + + ** Fix for bug #542889 + + * gui/dialogs/event-page.c: + * gui/alarm-notify/alarm-queue.c: + Port to the new gtk tooltip api. + 2008-07-13 Paul Bolle ** Fix for bug #542101 diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c index a04b82689c..9bc19d4aad 100644 --- a/calendar/gui/alarm-notify/alarm-queue.c +++ b/calendar/gui/alarm-notify/alarm-queue.c @@ -1549,7 +1549,6 @@ popup_notification (time_t trigger, CompQueuedAlarms *cqa, QueuedAlarm *qa; ECalComponent *comp; const char *summary, *location; - GtkTooltips *tooltips; ECalComponentText text; char *str, *start_str, *end_str, *alarm_str, *time_str; icaltimezone *current_zone; @@ -1579,7 +1578,6 @@ popup_notification (time_t trigger, CompQueuedAlarms *cqa, e_cal_component_get_location (comp, &location); /* create the tray icon */ - tooltips = gtk_tooltips_new (); current_zone = config_data_get_timezone (); alarm_str = timet_to_str_with_zone (trigger, current_zone); diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index 0596c4c790..cf2a8e5c9e 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -784,15 +784,13 @@ static GtkWidget * create_image_event_box (const char *image_text, const char *tip_text) { GtkWidget *image, *box; - GtkTooltips *tip; box = gtk_event_box_new (); - tip = gtk_tooltips_new (); image = e_icon_factory_get_image (image_text, E_ICON_SIZE_MENU); gtk_container_add ((GtkContainer *) box, image); gtk_widget_show_all (box); - gtk_tooltips_set_tip (tip, box, tip_text, NULL); + gtk_widget_set_tooltip_text (box, tip_text); return box; } -- cgit v1.2.3