comparison pidgin/gtkwhiteboard.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 584063555949
children 58c8d6fc3aaf
comparison
equal deleted inserted replaced
26704:9641c73e7f2d 26705:a3f7ade9e45b
622 622
623 gtk_widget_queue_draw_area(widget, 623 gtk_widget_queue_draw_area(widget,
624 update_rect.x, update_rect.y, 624 update_rect.x, update_rect.y,
625 update_rect.width, update_rect.height); 625 update_rect.width, update_rect.height);
626 626
627 gdk_gc_unref(gfx_con); 627 g_object_unref(G_OBJECT(gfx_con));
628 } 628 }
629 629
630 /* Uses Bresenham's algorithm (as provided by Wikipedia) */ 630 /* Uses Bresenham's algorithm (as provided by Wikipedia) */
631 static void pidgin_whiteboard_draw_brush_line(PurpleWhiteboard *wb, int x0, int y0, int x1, int y1, int color, int size) 631 static void pidgin_whiteboard_draw_brush_line(PurpleWhiteboard *wb, int x0, int y0, int x1, int y1, int color, int size)
632 { 632 {