Stop using GTK_SIGNAL_FUNC, gdk_pixbuf_render_to_drawable

Replace with non-deprecated gdk_draw_pixbuf(), G_CALLBACK()

http://bugzilla.gnome.org/show_bug.cgi?id=587991
This commit is contained in:
Javier Jardón 2009-08-22 06:38:26 +02:00 committed by Owen W. Taylor
parent 7b0ba87b24
commit d0510d8ea2
2 changed files with 17 additions and 15 deletions

View File

@ -473,7 +473,7 @@ meta_window_menu_new (MetaFrames *frames,
gtk_signal_connect_full (GTK_OBJECT (mi), gtk_signal_connect_full (GTK_OBJECT (mi),
"activate", "activate",
GTK_SIGNAL_FUNC (activate_cb), G_CALLBACK (activate_cb),
NULL, NULL,
md, md,
g_free, FALSE, FALSE); g_free, FALSE, FALSE);

View File

@ -194,11 +194,12 @@ render_multi (GdkDrawable *drawable,
colors, N_COLORS, colors, N_COLORS,
type); type);
gdk_pixbuf_render_to_drawable (pixbuf, gdk_draw_pixbuf (drawable,
drawable,
gc, gc,
pixbuf,
0, 0, 0, 0,
0, 0, width, height, 0, 0,
width, height,
GDK_RGB_DITHER_NORMAL, GDK_RGB_DITHER_NORMAL,
0, 0); 0, 0);
@ -248,11 +249,12 @@ render_interwoven_func (GdkDrawable *drawable,
colors, height / 10, colors, height / 10,
colors + 2, height / 14); colors + 2, height / 14);
gdk_pixbuf_render_to_drawable (pixbuf, gdk_draw_pixbuf (drawable,
drawable,
gc, gc,
pixbuf,
0, 0, 0, 0,
0, 0, width, height, 0, 0,
width, height,
GDK_RGB_DITHER_NORMAL, GDK_RGB_DITHER_NORMAL,
0, 0); 0, 0);