[gnome-games] Remove deprecated GTK+ symbol: gdk_pixbuf_unref()



commit 9b08c088c0c4483c873d879266e75a9a2d6a004f
Author: Javier Jardón <jjardon gnome org>
Date:   Sun Dec 20 19:05:39 2009 +0100

    Remove deprecated GTK+ symbol: gdk_pixbuf_unref()
    
    Use g_object_unref() instead

 gtali/gyahtzee.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtali/gyahtzee.c b/gtali/gyahtzee.c
index 1e1c57b..17b99d2 100644
--- a/gtali/gyahtzee.c
+++ b/gtali/gyahtzee.c
@@ -675,11 +675,11 @@ LoadDicePixmaps (void)
 
         pixbuf = gdk_pixbuf_new_from_file_at_size (path, 60, 60, NULL);
         dicePixmaps[j][i][GAME_YAHTZEE] = gtk_image_new_from_pixbuf (pixbuf);
-        gdk_pixbuf_unref (pixbuf);
+        g_object_unref (pixbuf);
 
         pixbuf = gdk_pixbuf_new_from_file_at_size (path_kismet, 60, 60, NULL);
         dicePixmaps[j][i][GAME_KISMET] = gtk_image_new_from_pixbuf (pixbuf);
-        gdk_pixbuf_unref (pixbuf);
+        g_object_unref (pixbuf);
       }
 
     } /* FIXME: What happens if the file isn't found. */



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