[mutter] Stop using GTK_SIGNAL_FUNC, gdk_pixbuf_render_to_drawable



commit d0510d8ea25a89de9c8e5af7c60fda7255227483
Author: Javier Jardón <javierjc1982 gmail com>
Date:   Sat Aug 22 06:38:26 2009 +0200

    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

 src/ui/menu.c         |    2 +-
 src/ui/testgradient.c |   30 ++++++++++++++++--------------
 2 files changed, 17 insertions(+), 15 deletions(-)
---
diff --git a/src/ui/menu.c b/src/ui/menu.c
index 6d6270d..b3c616c 100644
--- a/src/ui/menu.c
+++ b/src/ui/menu.c
@@ -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);
diff --git a/src/ui/testgradient.c b/src/ui/testgradient.c
index d89d826..e0670b4 100644
--- a/src/ui/testgradient.c
+++ b/src/ui/testgradient.c
@@ -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));
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]