mirror of
https://github.com/brl/mutter.git
synced 2024-11-13 09:46:08 -05:00
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:
parent
7b0ba87b24
commit
d0510d8ea2
@ -473,7 +473,7 @@ meta_window_menu_new (MetaFrames *frames,
|
||||
|
||||
gtk_signal_connect_full (GTK_OBJECT (mi),
|
||||
"activate",
|
||||
GTK_SIGNAL_FUNC (activate_cb),
|
||||
G_CALLBACK (activate_cb),
|
||||
NULL,
|
||||
md,
|
||||
g_free, FALSE, FALSE);
|
||||
|
@ -194,13 +194,14 @@ render_multi (GdkDrawable *drawable,
|
||||
colors, N_COLORS,
|
||||
type);
|
||||
|
||||
gdk_pixbuf_render_to_drawable (pixbuf,
|
||||
drawable,
|
||||
gc,
|
||||
0, 0,
|
||||
0, 0, width, height,
|
||||
GDK_RGB_DITHER_NORMAL,
|
||||
0, 0);
|
||||
gdk_draw_pixbuf (drawable,
|
||||
gc,
|
||||
pixbuf,
|
||||
0, 0,
|
||||
0, 0,
|
||||
width, height,
|
||||
GDK_RGB_DITHER_NORMAL,
|
||||
0, 0);
|
||||
|
||||
g_object_unref (G_OBJECT (pixbuf));
|
||||
#undef N_COLORS
|
||||
@ -248,13 +249,14 @@ render_interwoven_func (GdkDrawable *drawable,
|
||||
colors, height / 10,
|
||||
colors + 2, height / 14);
|
||||
|
||||
gdk_pixbuf_render_to_drawable (pixbuf,
|
||||
drawable,
|
||||
gc,
|
||||
0, 0,
|
||||
0, 0, width, height,
|
||||
GDK_RGB_DITHER_NORMAL,
|
||||
0, 0);
|
||||
gdk_draw_pixbuf (drawable,
|
||||
gc,
|
||||
pixbuf,
|
||||
0, 0,
|
||||
0, 0,
|
||||
width, height,
|
||||
GDK_RGB_DITHER_NORMAL,
|
||||
0, 0);
|
||||
|
||||
g_object_unref (G_OBJECT (pixbuf));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user