diff pidgin/gtksmiley.c @ 26623:a3f7ade9e45b

Use g_object_ref/unref instead of the deprecated versions.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 18 Apr 2009 07:31:32 +0000
parents 6b6628f495cc
children 38a5df43d525
line wrap: on
line diff
--- a/pidgin/gtksmiley.c	Sat Apr 18 07:00:20 2009 +0000
+++ b/pidgin/gtksmiley.c	Sat Apr 18 07:31:32 2009 +0000
@@ -74,7 +74,7 @@
 	gtk_widget_destroy(smiley->parent);
 	g_free(smiley->filename);
 	if (smiley->custom_pixbuf)
-		gdk_pixbuf_unref(smiley->custom_pixbuf);
+		g_object_unref(G_OBJECT(smiley->custom_pixbuf));
 	g_free(smiley);
 }
 
@@ -460,7 +460,7 @@
 {
 	if (editor->custom_pixbuf)
 		gdk_pixbuf_unref(editor->custom_pixbuf);
-	editor->custom_pixbuf = image ? gdk_pixbuf_ref(image) : NULL;
+	editor->custom_pixbuf = image ? g_object_ref(G_OBJECT(image)) : NULL;
 	if (image)
 		gtk_image_set_from_pixbuf(GTK_IMAGE(editor->smiley_image), image);
 }