aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-tree.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-tree.c
parenta39f7ac63aee199d7b5393e24a247ec3b9012445 (diff)
downloadgsoc2013-evolution-a197d5aff686b9af1f3564ec37f0ff71776f5147.tar
gsoc2013-evolution-a197d5aff686b9af1f3564ec37f0ff71776f5147.tar.gz
gsoc2013-evolution-a197d5aff686b9af1f3564ec37f0ff71776f5147.tar.bz2
gsoc2013-evolution-a197d5aff686b9af1f3564ec37f0ff71776f5147.tar.lz
gsoc2013-evolution-a197d5aff686b9af1f3564ec37f0ff71776f5147.tar.xz
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-tree.c')
-rw-r--r--widgets/table/e-cell-tree.c44
1 files changed, 21 insertions, 23 deletions
diff --git a/widgets/table/e-cell-tree.c b/widgets/table/e-cell-tree.c
index 133254dd4b..894c167f60 100644
--- a/widgets/table/e-cell-tree.c
+++ b/widgets/table/e-cell-tree.c
@@ -190,7 +190,7 @@ ect_unrealize (ECellView *ecv)
/* unrealize our subcell view. */
e_cell_unrealize (tree_view->subcell_view);
- gdk_gc_unref (tree_view->gc);
+ g_object_unref (tree_view->gc);
tree_view->gc = NULL;
if (parent_class->unrealize)
@@ -209,16 +209,15 @@ draw_retro_expander (ECellTreeView *ectv, GdkDrawable *drawable, gboolean expand
image_width = gdk_pixbuf_get_width(image);
image_height = gdk_pixbuf_get_height(image);
- gdk_pixbuf_render_to_drawable_alpha (image,
- drawable,
- rect->x, rect->y,
- rect->width - image_width / 2,
- rect->height - image_height / 2,
- image_width, image_height,
- GDK_PIXBUF_ALPHA_BILEVEL,
- 128,
- GDK_RGB_DITHER_NORMAL,
- image_width, 0);
+ gdk_draw_pixbuf (drawable,
+ NULL,
+ image,
+ rect->x, rect->y,
+ rect->width - image_width / 2,
+ rect->height - image_height / 2,
+ image_width, image_height,
+ GDK_RGB_DITHER_NORMAL,
+ image_width, 0);
}
static void
@@ -358,16 +357,15 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable,
}
if (node_image) {
- gdk_pixbuf_render_to_drawable_alpha (node_image,
- drawable,
- 0, 0,
- x1 + subcell_offset,
- y1 + (y2 - y1) / 2 - node_image_height / 2,
- node_image_width, node_image_height,
- GDK_PIXBUF_ALPHA_BILEVEL,
- 128,
- GDK_RGB_DITHER_NORMAL,
- node_image_width, 0);
+ gdk_draw_pixbuf (drawable,
+ NULL,
+ node_image,
+ 0, 0,
+ x1 + subcell_offset,
+ y1 + (y2 - y1) / 2 - node_image_height / 2,
+ node_image_width, node_image_height,
+ GDK_RGB_DITHER_NORMAL,
+ node_image_width, 0);
subcell_offset += node_image_width;
}
}
@@ -808,11 +806,11 @@ ect_dispose (GObject *object)
ect->subcell = NULL;
if (ect->open_pixbuf)
- gdk_pixbuf_unref (ect->open_pixbuf);
+ g_object_unref (ect->open_pixbuf);
ect->open_pixbuf = NULL;
if (ect->closed_pixbuf)
- gdk_pixbuf_unref (ect->closed_pixbuf);
+ g_object_unref (ect->closed_pixbuf);
ect->closed_pixbuf = NULL;
G_OBJECT_CLASS (parent_class)->dispose (object);