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-text.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'widgets/table/e-cell-text.c') 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); } -- cgit