From a197d5aff686b9af1f3564ec37f0ff71776f5147 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 4 Dec 2006 15:44:31 +0000 Subject: Fixes bug #357970 2006-12-04 Matthew Barnes Fixes bug #357970 * e-cell-pixbuf.c: * e-cell-progress.c: * e-cell-text.c: * e-cell-toggle.c: * e-cell-tree.c: * e-table-col.c: * e-table-extras.c: * e-table-header-item.c: * e-table-header-utils.c: * e-table-item.c: * e-table-memory-store.c: Don't call deprecated GLib / GDK functions. svn path=/trunk/; revision=33049 --- widgets/table/e-cell-toggle.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'widgets/table/e-cell-toggle.c') diff --git a/widgets/table/e-cell-toggle.c b/widgets/table/e-cell-toggle.c index 609d097f6f..971ca1f98e 100644 --- a/widgets/table/e-cell-toggle.c +++ b/widgets/table/e-cell-toggle.c @@ -118,7 +118,7 @@ etog_unrealize (ECellView *ecv) { ECellToggleView *toggle_view = (ECellToggleView *) ecv; - gdk_gc_unref (toggle_view->gc); + g_object_unref (toggle_view->gc); toggle_view->gc = NULL; } @@ -169,14 +169,15 @@ check_cache (ECellToggleView *toggle_view, int image_seq, int cache_seq) 1, RGB_COLOR (color), RGB_COLOR (color)); - gdk_pixbuf_render_to_drawable (flat, PIXMAP_CACHE (toggle_view, cache_seq, image_seq), - toggle_view->gc, - 0, 0, - 0, 0, - width, height, - GDK_RGB_DITHER_NORMAL, - 0, 0); - gdk_pixbuf_unref (flat); + gdk_draw_pixbuf (PIXMAP_CACHE (toggle_view, cache_seq, image_seq), + toggle_view->gc, + flat, + 0, 0, + 0, 0, + width, height, + GDK_RGB_DITHER_NORMAL, + 0, 0); + g_object_unref (flat); } } @@ -382,7 +383,7 @@ etog_finalize (GObject *object) int i; for (i = 0; i < etog->n_states; i++) - gdk_pixbuf_unref (etog->images [i]); + g_object_unref (etog->images [i]); g_free (etog->images); @@ -451,7 +452,7 @@ e_cell_toggle_construct (ECellToggle *etog, int border, int n_states, GdkPixbuf for (i = 0; i < n_states; i++){ etog->images [i] = images [i]; - gdk_pixbuf_ref (images [i]); + g_object_ref (images [i]); if (gdk_pixbuf_get_height (images [i]) > max_height) max_height = gdk_pixbuf_get_height (images [i]); -- cgit v1.2.3