From 34201761f98113612d30f1810de840fd344f748d Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 4 Dec 2006 15:42:22 +0000 Subject: Fixes bug #357970 2006-12-04 Matthew Barnes Fixes bug #357970 * em-folder-browser.c: * em-folder-view.c: Don't call deprecated GLib / GDK functions. svn path=/trunk/; revision=33046 --- mail/em-folder-browser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mail/em-folder-browser.c') diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c index 366bf2a4d8..07638ddcb9 100644 --- a/mail/em-folder-browser.c +++ b/mail/em-folder-browser.c @@ -325,13 +325,13 @@ generate_viewoption_menu (GtkWidget *emfv) GtkImage *image; gdk_color_parse(label->colour, &colour); - gdk_color_alloc(gdk_colormap_get_system(), &colour); + gdk_colormap_alloc_color(gdk_colormap_get_system(), &colour, FALSE, TRUE); pixmap = gdk_pixmap_new(((GtkWidget *)emfv)->window, 16, 16, -1); gc = gdk_gc_new(((GtkWidget *)emfv)->window); gdk_gc_set_foreground(gc, &colour); gdk_draw_rectangle(pixmap, gc, TRUE, 0, 0, 16, 16); - gdk_gc_unref(gc); + g_object_unref(gc); image = gtk_image_new_from_pixmap(pixmap, NULL); */ str = string_without_underscores (label->name); -- cgit