comparison pidgin/plugins/markerline.c @ 26705:a3f7ade9e45b

Use g_object_ref/unref instead of the deprecated versions.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 18 Apr 2009 07:31:32 +0000
parents ea62e934c80b
children 4458f98f42ba
comparison
equal deleted inserted replaced
26704:9641c73e7f2d 26705:a3f7ade9e45b
82 GdkGC *gc = gdk_gc_new(GDK_DRAWABLE(event->window)); 82 GdkGC *gc = gdk_gc_new(GDK_DRAWABLE(event->window));
83 83
84 gdk_gc_set_rgb_fg_color(gc, &red); 84 gdk_gc_set_rgb_fg_color(gc, &red);
85 gdk_draw_line(event->window, gc, 85 gdk_draw_line(event->window, gc,
86 0, y, visible_rect.width, y); 86 0, y, visible_rect.width, y);
87 gdk_gc_unref(gc); 87 g_object_unref(G_OBJECT(gc));
88 } 88 }
89 return FALSE; 89 return FALSE;
90 } 90 }
91 91
92 static void 92 static void