summaryrefslogtreecommitdiff
path: root/pidgin/gtksmiley.c
diff options
context:
space:
mode:
Diffstat (limited to 'pidgin/gtksmiley.c')
-rw-r--r--pidgin/gtksmiley.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pidgin/gtksmiley.c b/pidgin/gtksmiley.c
index d8f0b3e422..0c42ce2c29 100644
--- a/pidgin/gtksmiley.c
+++ b/pidgin/gtksmiley.c
@@ -74,7 +74,7 @@ pidgin_smiley_destroy(PidginSmiley *smiley)
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);
}
@@ -344,7 +344,7 @@ static void do_add_file_cb(const char *filename, gpointer data)
pixbuf = gdk_pixbuf_new_from_file_at_scale(filename, 64, 64, FALSE, NULL);
gtk_image_set_from_pixbuf(GTK_IMAGE(s->smiley_image), pixbuf);
if (pixbuf)
- gdk_pixbuf_unref(pixbuf);
+ g_object_unref(G_OBJECT(pixbuf));
gtk_widget_grab_focus(s->smile);
}
@@ -459,8 +459,8 @@ void
pidgin_smiley_editor_set_image(PidginSmiley *editor, GdkPixbuf *image)
{
if (editor->custom_pixbuf)
- gdk_pixbuf_unref(editor->custom_pixbuf);
- editor->custom_pixbuf = image ? gdk_pixbuf_ref(image) : NULL;
+ g_object_unref(G_OBJECT(editor->custom_pixbuf));
+ editor->custom_pixbuf = image ? g_object_ref(G_OBJECT(image)) : NULL;
if (image)
gtk_image_set_from_pixbuf(GTK_IMAGE(editor->smiley_image), image);
}