Commit 8d576702 authored by Andre Klapper's avatar Andre Klapper 💬 Committed by Andre Klapper

Replace deprecated gdk_pixbuf_unref by g_object_unref.

2009-02-20  Andre Klapper  <a9016009@gmx.de>

	* libanjuta/anjuta-plugin-manager.c:
	* libanjuta/resources.c:
	* plugins/debug-manager/stack_trace.c:
	* plugins/debug-manager/threads.c:
	* plugins/scintilla/scintilla/PlatGTK.cxx:
	Replace deprecated gdk_pixbuf_unref by g_object_unref.


svn path=/trunk/; revision=4770
parent b7499291
2009-02-20 Andre Klapper <a9016009@gmx.de>
* libanjuta/anjuta-plugin-manager.c:
* libanjuta/resources.c:
* plugins/debug-manager/stack_trace.c:
* plugins/debug-manager/threads.c:
* plugins/scintilla/scintilla/PlatGTK.cxx:
Replace deprecated gdk_pixbuf_unref by g_object_unref.
2009-02-20 Andre Klapper <a9016009@gmx.de>
* libanjuta/e-splash.c:
......@@ -1001,7 +1001,7 @@ populate_plugin_model (AnjutaPluginManager *plugin_manager,
if (icon) {
gtk_list_store_set (store, &iter,
COL_ICON, icon, -1);
gdk_pixbuf_unref (icon);
g_object_unref (icon);
}
}
g_free (text);
......@@ -1075,7 +1075,7 @@ foreach_remembered_plugin (gpointer key, gpointer value, gpointer user_data)
if (icon) {
gtk_list_store_set (store, &iter,
COL_REM_ICON, icon, -1);
gdk_pixbuf_unref (icon);
g_object_unref (icon);
}
}
g_free (text);
......
......@@ -104,7 +104,7 @@ anjuta_res_get_image_sized (const gchar * pixfile, gint width, gint height)
}
pixbuf = gdk_pixbuf_new_from_file_at_size (pathname, width, height, NULL);
pixmap = gtk_image_new_from_pixbuf (pixbuf);
gdk_pixbuf_unref (pixbuf);
g_object_unref (pixbuf);
g_free (pathname);
return pixmap;
}
......
......@@ -323,7 +323,7 @@ on_stack_trace_updated (const GList *stack, gpointer user_data, GError *error)
g_free (uri);
g_free (adr);
}
gdk_pixbuf_unref (pic);
g_object_unref (pic);
}
......@@ -455,7 +455,7 @@ on_frame_changed (StackTrace *self, guint frame, gint thread)
gtk_list_store_set (GTK_LIST_STORE(model), &iter,
STACK_TRACE_ACTIVE_COLUMN, pointer_pix,
-1);
gdk_pixbuf_unref (pointer_pix);
g_object_unref (pointer_pix);
}
}
......
......@@ -358,7 +358,7 @@ on_list_thread (const GList *threads, gpointer user_data)
}
if (pic)
gdk_pixbuf_unref (pic);
g_object_unref (pic);
}
}
......@@ -537,7 +537,7 @@ on_mark_selected_thread (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *it
if (pic != NULL)
{
/* Remove previously selected thread marker */
gdk_pixbuf_unref (pic);
g_object_unref (pic);
pic = NULL;
}
......@@ -552,7 +552,7 @@ on_mark_selected_thread (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *it
if (pic != NULL)
{
gdk_pixbuf_unref (pic);
g_object_unref (pic);
}
return FALSE;
......
......@@ -1917,7 +1917,7 @@ static void list_image_free(gpointer, gpointer value, gpointer) {
gdk_bitmap_unref(list_image->bitmap);
#else
if (list_image->pixbuf)
gdk_pixbuf_unref (list_image->pixbuf);
g_object_unref (list_image->pixbuf);
#endif
g_free(list_image);
}
......@@ -2247,7 +2247,7 @@ static void init_pixmap(ListImage *list_image) {
}
#else
if (list_image->pixbuf)
gdk_pixbuf_unref(list_image->pixbuf);
g_object_unref(list_image->pixbuf);
list_image->pixbuf =
gdk_pixbuf_new_from_xpm_data((const gchar**)xpm_lineform);
#endif
......@@ -2474,7 +2474,7 @@ void ListBoxX::RegisterImage(int type, const char *xpm_data) {
list_image->bitmap = 0;
#else
if (list_image->pixbuf)
gdk_pixbuf_unref(list_image->pixbuf);
g_object_unref(list_image->pixbuf);
list_image->pixbuf = NULL;
#endif
list_image->xpm_data = xpm_data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment