gnome-games r8625 - in trunk: aisleriot gnotravex iagno



Author: thomashpa
Date: Fri Jan 30 01:08:48 2009
New Revision: 8625
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8625&view=rev

Log:
gdk_pixbuf_unref is deprecated. Fixes warnings with -DGDK_PIXBUF_DISABLE_DEPRECATED

Modified:
   trunk/aisleriot/board-noclutter.c
   trunk/gnotravex/gnotravex.c
   trunk/iagno/gnothello.c

Modified: trunk/aisleriot/board-noclutter.c
==============================================================================
--- trunk/aisleriot/board-noclutter.c	(original)
+++ trunk/aisleriot/board-noclutter.c	Fri Jan 30 01:08:48 2009
@@ -406,7 +406,7 @@
   gdk_gc_set_tile (gc, pixmap);
   gdk_gc_set_fill (gc, GDK_TILED);
 
-  gdk_pixbuf_unref (pixbuf);
+  g_object_unref (pixbuf);
   g_object_unref (pixmap);
 }
 

Modified: trunk/gnotravex/gnotravex.c
==============================================================================
--- trunk/gnotravex/gnotravex.c	(original)
+++ trunk/gnotravex/gnotravex.c	Fri Jan 30 01:08:48 2009
@@ -1978,7 +1978,7 @@
   gdk_pixbuf_render_pixmap_and_mask_for_colormap (pb,
                                                   gdk_colormap_get_system (), 
                                                   &pm, NULL, 127);
-  gdk_pixbuf_unref (pb);
+  g_object_unref (pb);
   g_free (path);
 
   default_background_pixmap = pm; 

Modified: trunk/iagno/gnothello.c
==============================================================================
--- trunk/iagno/gnothello.c	(original)
+++ trunk/iagno/gnothello.c	Fri Jan 30 01:08:48 2009
@@ -429,7 +429,7 @@
 						  &tiles_pixmap,
 						  &tiles_mask, 127);
 
-  gdk_pixbuf_unref (image);
+  g_object_unref (image);
   g_free (fname);
 }
 



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