aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-toggle.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2006-12-04 23:44:31 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2006-12-04 23:44:31 +0800
commita197d5aff686b9af1f3564ec37f0ff71776f5147 (patch)
treecdcd92d8c62d9e4066c64c200cec0d927686fe45 /widgets/table/e-cell-toggle.c
parenta39f7ac63aee199d7b5393e24a247ec3b9012445 (diff)
downloadgsoc2013-evolution-a197d5aff686b9af1f3564ec37f0ff71776f5147.tar.gz
gsoc2013-evolution-a197d5aff686b9af1f3564ec37f0ff71776f5147.tar.zst
gsoc2013-evolution-a197d5aff686b9af1f3564ec37f0ff71776f5147.zip
Fixes bug #357970
2006-12-04 Matthew Barnes <mbarnes@redhat.com> 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
Diffstat (limited to 'widgets/table/e-cell-toggle.c')
-rw-r--r--widgets/table/e-cell-toggle.c23
1 files changed, 12 insertions, 11 deletions
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]);