diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2006-12-04 23:44:31 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2006-12-04 23:44:31 +0800 |
commit | a197d5aff686b9af1f3564ec37f0ff71776f5147 (patch) | |
tree | cdcd92d8c62d9e4066c64c200cec0d927686fe45 /widgets/table/e-cell-text.c | |
parent | a39f7ac63aee199d7b5393e24a247ec3b9012445 (diff) | |
download | gsoc2013-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-text.c')
-rw-r--r-- | widgets/table/e-cell-text.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index 35bce6cf0b..dfa0f4da19 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -406,7 +406,7 @@ ect_unrealize (ECellView *ecv) ECellText *ect = (ECellText*) ecv->ecell; GdkColormap *colormap; - gdk_gc_unref (text_view->gc); + g_object_unref (text_view->gc); text_view->gc = NULL; if (text_view->edit){ @@ -441,7 +441,7 @@ ect_free_color (gchar *color_spec, GdkColor *color, GdkColormap *colormap) if (color != (GdkColor*) 1) { gulong pix = color->pixel; - gdk_colors_free (colormap, &pix, 1, 0); + gdk_colormap_free_colors (colormap, color, 1); /* This frees the memory for the GdkColor. */ gdk_color_free (color); @@ -2603,7 +2603,7 @@ e_cell_text_get_color (ECellTextView *cell_view, gchar *color_spec) colormap = gtk_widget_get_colormap (GTK_WIDGET (cell_view->canvas)); /* Try to allocate the color. */ - if (gdk_color_alloc (colormap, &tmp_color)) + if (gdk_colormap_alloc_color (colormap, &tmp_color, FALSE, TRUE)) color = gdk_color_copy (&tmp_color); } |