** Fixes bug #352450
2006-09-18 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #352450 * gui/calendar-commands.c: * gui/e-day-view-main-item.c: * gui/e-day-view-top-item.c: * gui/e-meeting-list-view.c: * gui/e-meeting-time-sel-item.c: * gui/e-meeting-time-sel.c: * gui/e-week-view-event-item.c: Replace deprecated GLib and GDK function calls. svn path=/trunk/; revision=32781
This commit is contained in:
committed by
Harish Krishnaswamy
parent
0f85cd722a
commit
9f6f57d5fc
@ -1,3 +1,16 @@
|
||||
2006-09-18 Matthew Barnes <mbarnes@redhat.com>
|
||||
|
||||
** Fixes bug #352450
|
||||
|
||||
* gui/calendar-commands.c:
|
||||
* gui/e-day-view-main-item.c:
|
||||
* gui/e-day-view-top-item.c:
|
||||
* gui/e-meeting-list-view.c:
|
||||
* gui/e-meeting-time-sel-item.c:
|
||||
* gui/e-meeting-time-sel.c:
|
||||
* gui/e-week-view-event-item.c:
|
||||
Replace deprecated GLib and GDK function calls.
|
||||
|
||||
2006-09-11 Chenthill Palanisamy <pchenthill@novell.com>
|
||||
|
||||
Fixes #344276
|
||||
|
||||
@ -154,7 +154,7 @@ set_clock_cursor (GnomeCalendar *gcal)
|
||||
|
||||
cursor = gdk_cursor_new (GDK_WATCH);
|
||||
gdk_window_set_cursor (GTK_WIDGET (gcal)->window, cursor);
|
||||
gdk_cursor_destroy (cursor);
|
||||
gdk_cursor_unref (cursor);
|
||||
gdk_flush ();
|
||||
}
|
||||
|
||||
|
||||
@ -795,7 +795,7 @@ e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem,
|
||||
gdk_gc_set_clip_origin (gc, icon_x, icon_y);
|
||||
if (mask != NULL)
|
||||
gdk_gc_set_clip_mask (gc, mask);
|
||||
gdk_draw_pixmap (drawable, gc,
|
||||
gdk_draw_drawable (drawable, gc,
|
||||
pixmap,
|
||||
0, 0, icon_x, icon_y,
|
||||
MIN (E_DAY_VIEW_ICON_WIDTH,
|
||||
@ -803,9 +803,9 @@ e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem,
|
||||
MIN (E_DAY_VIEW_ICON_HEIGHT,
|
||||
max_icon_h));
|
||||
|
||||
gdk_pixmap_unref (pixmap);
|
||||
g_object_unref (pixmap);
|
||||
if (mask != NULL)
|
||||
gdk_bitmap_unref (mask);
|
||||
g_object_unref (mask);
|
||||
|
||||
icon_x += icon_x_inc;
|
||||
icon_y += icon_y_inc;
|
||||
@ -1930,7 +1930,7 @@ e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem,
|
||||
gdk_gc_set_clip_origin (gc, icon_x, icon_y);
|
||||
if (mask != NULL)
|
||||
gdk_gc_set_clip_mask (gc, mask);
|
||||
gdk_draw_pixmap (drawable, gc,
|
||||
gdk_draw_drawable (drawable, gc,
|
||||
pixmap,
|
||||
0, 0, icon_x, icon_y,
|
||||
MIN (E_DAY_VIEW_ICON_WIDTH,
|
||||
@ -1938,9 +1938,9 @@ e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem,
|
||||
MIN (E_DAY_VIEW_ICON_HEIGHT,
|
||||
max_icon_h));
|
||||
|
||||
gdk_pixmap_unref (pixmap);
|
||||
g_object_unref (pixmap);
|
||||
if (mask != NULL)
|
||||
gdk_bitmap_unref (mask);
|
||||
g_object_unref (mask);
|
||||
|
||||
icon_x += icon_x_inc;
|
||||
icon_y += icon_y_inc;
|
||||
|
||||
@ -572,7 +572,7 @@ e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem,
|
||||
gdk_gc_set_clip_origin (gc, icon_x, icon_y);
|
||||
if (mask != NULL)
|
||||
gdk_gc_set_clip_mask (gc, mask);
|
||||
gdk_draw_pixmap (drawable, gc,
|
||||
gdk_draw_drawable (drawable, gc,
|
||||
pixmap,
|
||||
0, 0, icon_x, icon_y,
|
||||
E_DAY_VIEW_ICON_WIDTH,
|
||||
@ -580,9 +580,9 @@ e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem,
|
||||
icon_x -= icon_x_inc;
|
||||
}
|
||||
|
||||
gdk_pixmap_unref (pixmap);
|
||||
g_object_unref (pixmap);
|
||||
if (mask != NULL)
|
||||
gdk_bitmap_unref (mask);
|
||||
g_object_unref (mask);
|
||||
}
|
||||
|
||||
e_cal_component_free_categories_list (categories_list);
|
||||
@ -1158,7 +1158,7 @@ e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem,
|
||||
gdk_gc_set_clip_origin (gc, icon_x, icon_y);
|
||||
if (mask != NULL)
|
||||
gdk_gc_set_clip_mask (gc, mask);
|
||||
gdk_draw_pixmap (drawable, gc,
|
||||
gdk_draw_drawable (drawable, gc,
|
||||
pixmap,
|
||||
0, 0, icon_x, icon_y,
|
||||
E_DAY_VIEW_ICON_WIDTH,
|
||||
@ -1166,9 +1166,9 @@ e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem,
|
||||
icon_x -= icon_x_inc;
|
||||
}
|
||||
|
||||
gdk_pixmap_unref (pixmap);
|
||||
g_object_unref (pixmap);
|
||||
if (mask != NULL)
|
||||
gdk_bitmap_unref (mask);
|
||||
g_object_unref (mask);
|
||||
}
|
||||
|
||||
e_cal_component_free_categories_list (categories_list);
|
||||
|
||||
@ -787,7 +787,7 @@ process_section (EMeetingListView *view, GList *destinations, icalparameter_role
|
||||
g_slist_free (*la);
|
||||
*la = NULL;
|
||||
} else
|
||||
*la = g_slist_remove_link (*la, g_slist_find_custom (*la, attendee, (GCompareFunc)g_strcasecmp));
|
||||
*la = g_slist_remove_link (*la, g_slist_find_custom (*la, attendee, (GCompareFunc)g_ascii_strcasecmp));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -159,15 +159,15 @@ e_meeting_time_selector_item_destroy (GtkObject *object)
|
||||
mts_item = E_MEETING_TIME_SELECTOR_ITEM (object);
|
||||
|
||||
if (mts_item->normal_cursor) {
|
||||
gdk_cursor_destroy (mts_item->normal_cursor);
|
||||
gdk_cursor_unref (mts_item->normal_cursor);
|
||||
mts_item->normal_cursor = NULL;
|
||||
}
|
||||
if (mts_item->resize_cursor) {
|
||||
gdk_cursor_destroy (mts_item->resize_cursor);
|
||||
gdk_cursor_unref (mts_item->resize_cursor);
|
||||
mts_item->resize_cursor = NULL;
|
||||
}
|
||||
if (mts_item->busy_cursor) {
|
||||
gdk_cursor_destroy (mts_item->busy_cursor);
|
||||
gdk_cursor_unref (mts_item->busy_cursor);
|
||||
mts_item->busy_cursor = NULL;
|
||||
}
|
||||
|
||||
|
||||
@ -822,7 +822,7 @@ e_meeting_time_selector_destroy (GtkObject *object)
|
||||
e_meeting_time_selector_remove_timeout (mts);
|
||||
|
||||
if (mts->stipple) {
|
||||
gdk_bitmap_unref (mts->stipple);
|
||||
g_object_unref (mts->stipple);
|
||||
mts->stipple = NULL;
|
||||
}
|
||||
|
||||
|
||||
@ -704,16 +704,16 @@ e_week_view_event_item_draw_icons (EWeekViewEventItem *wveitem,
|
||||
gdk_gc_set_clip_origin (gc, icon_x, icon_y);
|
||||
if (mask != NULL)
|
||||
gdk_gc_set_clip_mask (gc, mask);
|
||||
gdk_draw_pixmap (drawable, gc,
|
||||
gdk_draw_drawable (drawable, gc,
|
||||
pixmap,
|
||||
0, 0, icon_x, icon_y,
|
||||
E_WEEK_VIEW_ICON_WIDTH,
|
||||
E_WEEK_VIEW_ICON_HEIGHT);
|
||||
icon_x += icon_x_inc;
|
||||
}
|
||||
gdk_pixmap_unref (pixmap);
|
||||
g_object_unref (pixmap);
|
||||
if (mask != NULL)
|
||||
gdk_bitmap_unref (mask);
|
||||
g_object_unref (mask);
|
||||
}
|
||||
|
||||
e_cal_component_free_categories_list (categories_list);
|
||||
@ -1388,16 +1388,16 @@ e_week_view_event_item_draw_icons (EWeekViewEventItem *wveitem,
|
||||
gdk_gc_set_clip_origin (gc, icon_x, icon_y);
|
||||
if (mask != NULL)
|
||||
gdk_gc_set_clip_mask (gc, mask);
|
||||
gdk_draw_pixmap (drawable, gc,
|
||||
gdk_draw_drawable (drawable, gc,
|
||||
pixmap,
|
||||
0, 0, icon_x, icon_y,
|
||||
E_WEEK_VIEW_ICON_WIDTH,
|
||||
E_WEEK_VIEW_ICON_HEIGHT);
|
||||
icon_x += icon_x_inc;
|
||||
}
|
||||
gdk_pixmap_unref (pixmap);
|
||||
g_object_unref (pixmap);
|
||||
if (mask != NULL)
|
||||
gdk_bitmap_unref (mask);
|
||||
g_object_unref (mask);
|
||||
}
|
||||
|
||||
cairo_destroy (cr);
|
||||
|
||||
Reference in New Issue
Block a user