# HG changeset patch # User Elliott Sales de Andrade # Date 1240094396 0 # Node ID 38a5df43d525a946c23e5cfc85927c69184226f1 # Parent 99d0b82d53629f7d951975fa92748f4008f0d445 Oops, I must have been tired. I only replaced the first occurrence of these deprecated functions. I think I got them all now. diff -r 99d0b82d5362 -r 38a5df43d525 pidgin/gtkblist.c --- a/pidgin/gtkblist.c Sat Apr 18 22:13:26 2009 +0000 +++ b/pidgin/gtkblist.c Sat Apr 18 22:39:56 2009 +0000 @@ -6630,7 +6630,7 @@ purple_signals_disconnect_by_handle(gtkblist); if (gtkblist->headline_close) - gdk_pixbuf_unref(gtkblist->headline_close); + g_object_unref(G_OBJECT(gtkblist->headline_close)); gtk_widget_destroy(gtkblist->window); diff -r 99d0b82d5362 -r 38a5df43d525 pidgin/gtkimhtml.c --- a/pidgin/gtkimhtml.c Sat Apr 18 22:13:26 2009 +0000 +++ b/pidgin/gtkimhtml.c Sat Apr 18 22:39:56 2009 +0000 @@ -782,7 +782,7 @@ gc, TRUE, visible_rect.x, visible_rect.y, visible_rect.width, visible_rect.height); - gdk_gc_unref(gc); + g_object_unref(G_OBJECT(gc)); if (GTK_WIDGET_CLASS (parent_class)->expose_event) return (* GTK_WIDGET_CLASS (parent_class)->expose_event) @@ -873,7 +873,7 @@ !gtk_text_iter_begins_tag(&cur, NULL)); } - gdk_gc_unref(gc); + g_object_unref(G_OBJECT(gc)); if (GTK_WIDGET_CLASS (parent_class)->expose_event) return (* GTK_WIDGET_CLASS (parent_class)->expose_event) @@ -1451,7 +1451,7 @@ GObjectClass *gobject_class; object_class = (GtkObjectClass*) klass; gobject_class = (GObjectClass*) klass; - parent_class = gtk_type_class(GTK_TYPE_TEXT_VIEW); + parent_class = g_type_class_ref(GTK_TYPE_TEXT_VIEW); signals[URL_CLICKED] = g_signal_new("url_clicked", G_TYPE_FROM_CLASS(gobject_class), G_SIGNAL_RUN_FIRST, diff -r 99d0b82d5362 -r 38a5df43d525 pidgin/gtkimhtmltoolbar.c --- a/pidgin/gtkimhtmltoolbar.c Sat Apr 18 22:13:26 2009 +0000 +++ b/pidgin/gtkimhtmltoolbar.c Sat Apr 18 22:39:56 2009 +0000 @@ -1198,7 +1198,7 @@ GObjectClass *gobject_class; object_class = (GtkObjectClass*) class; gobject_class = (GObjectClass*) class; - parent_class = gtk_type_class(GTK_TYPE_HBOX); + parent_class = g_type_class_ref(GTK_TYPE_HBOX); gobject_class->finalize = gtk_imhtmltoolbar_finalize; purple_prefs_add_none(PIDGIN_PREFS_ROOT "/conversations/toolbar"); diff -r 99d0b82d5362 -r 38a5df43d525 pidgin/gtkprefs.c --- a/pidgin/gtkprefs.c Sat Apr 18 22:13:26 2009 +0000 +++ b/pidgin/gtkprefs.c Sat Apr 18 22:39:56 2009 +0000 @@ -702,7 +702,7 @@ gtk_list_store_set(prefs_status_icon_themes, &iter, 0, pixbuf, 1, "(Default) - None\n" "The default Pidgin status icon theme", 2, "", -1); - gdk_pixbuf_unref(pixbuf); + g_object_unref(G_OBJECT(pixbuf)); } /* builds a theme combo box from a list store with colums: icon preview, markup, theme name */ diff -r 99d0b82d5362 -r 38a5df43d525 pidgin/gtksmiley.c --- a/pidgin/gtksmiley.c Sat Apr 18 22:13:26 2009 +0000 +++ b/pidgin/gtksmiley.c Sat Apr 18 22:39:56 2009 +0000 @@ -344,7 +344,7 @@ 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,7 +459,7 @@ pidgin_smiley_editor_set_image(PidginSmiley *editor, GdkPixbuf *image) { if (editor->custom_pixbuf) - gdk_pixbuf_unref(editor->custom_pixbuf); + 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); diff -r 99d0b82d5362 -r 38a5df43d525 pidgin/gtkstatusbox.c --- a/pidgin/gtkstatusbox.c Sat Apr 18 22:13:26 2009 +0000 +++ b/pidgin/gtkstatusbox.c Sat Apr 18 22:39:56 2009 +0000 @@ -1202,7 +1202,7 @@ for (i = 0; i < G_N_ELEMENTS(status_box->connecting_pixbufs); i++) { if (status_box->connecting_pixbufs[i] != NULL) - gdk_pixbuf_unref(status_box->connecting_pixbufs[i]); + g_object_unref(G_OBJECT(status_box->connecting_pixbufs[i])); } status_box->connecting_index = 0; @@ -1225,7 +1225,7 @@ for (i = 0; i < G_N_ELEMENTS(status_box->typing_pixbufs); i++) { if (status_box->typing_pixbufs[i] != NULL) - gdk_pixbuf_unref(status_box->typing_pixbufs[i]); + g_object_unref(G_OBJECT(status_box->typing_pixbufs[i])); } status_box->typing_index = 0;