aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-progress.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-progress.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-progress.c')
-rw-r--r--widgets/table/e-cell-progress.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/widgets/table/e-cell-progress.c b/widgets/table/e-cell-progress.c
index 8e10d7cc31..ffeac2706b 100644
--- a/widgets/table/e-cell-progress.c
+++ b/widgets/table/e-cell-progress.c
@@ -97,7 +97,7 @@ eprog_unrealize (ECellView *ecv)
{
ECellProgressView *progress_view = (ECellProgressView *) ecv;
- gdk_gc_unref (progress_view->gc);
+ g_object_unref (progress_view->gc);
progress_view->gc = NULL;
}
@@ -200,14 +200,14 @@ eprog_draw (ECellView *ecell_view, GdkDrawable *drawable,
eprog_draw_bar(progress, progress->red, progress->green, progress->blue, value);
- gdk_pixbuf_render_to_drawable_alpha (progress->image, drawable,
- 0, 0,
- x, y,
- progress->width, progress->height,
- GDK_PIXBUF_ALPHA_BILEVEL,
- 128,
- GDK_RGB_DITHER_NORMAL,
- x, y);
+ gdk_draw_pixbuf (drawable,
+ NULL,
+ progress->image,
+ 0, 0,
+ x, y,
+ progress->width, progress->height,
+ GDK_RGB_DITHER_NORMAL,
+ x, y);
}
static void
@@ -285,7 +285,7 @@ eprog_dispose (GObject *object)
{
ECellProgress *eprog = E_CELL_PROGRESS (object);
- gdk_pixbuf_unref (eprog->image);
+ g_object_unref (eprog->image);
g_free (eprog->image);
g_free (eprog->buffer);