aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2006-12-04 23:42:22 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2006-12-04 23:42:22 +0800
commit34201761f98113612d30f1810de840fd344f748d (patch)
treefc545b8bf302f31edffd38d09515297cda703891 /mail/em-folder-view.c
parent79f8ecbd0d28dfb399e2275a3a18d8ed96415232 (diff)
downloadgsoc2013-evolution-34201761f98113612d30f1810de840fd344f748d.tar
gsoc2013-evolution-34201761f98113612d30f1810de840fd344f748d.tar.gz
gsoc2013-evolution-34201761f98113612d30f1810de840fd344f748d.tar.bz2
gsoc2013-evolution-34201761f98113612d30f1810de840fd344f748d.tar.lz
gsoc2013-evolution-34201761f98113612d30f1810de840fd344f748d.tar.xz
gsoc2013-evolution-34201761f98113612d30f1810de840fd344f748d.tar.zst
gsoc2013-evolution-34201761f98113612d30f1810de840fd344f748d.zip
Fixes bug #357970
2006-12-04 Matthew Barnes <mbarnes@redhat.com> Fixes bug #357970 * em-folder-browser.c: * em-folder-view.c: Don't call deprecated GLib / GDK functions. svn path=/trunk/; revision=33046
Diffstat (limited to 'mail/em-folder-view.c')
-rw-r--r--mail/em-folder-view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c
index 6f1dac6cb3..f7467b409c 100644
--- a/mail/em-folder-view.c
+++ b/mail/em-folder-view.c
@@ -1249,13 +1249,13 @@ emfv_popup(EMFolderView *emfv, GdkEvent *event, int on_display)
item->visible = EM_POPUP_SELECT_MANY|EM_FOLDER_VIEW_SELECT_LISTONLY;
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);
item->image = gtk_image_new_from_pixmap(pixmap, NULL);
gtk_widget_show(item->image);