From ff8296e4b074cdc4a59fa208e6ac620bed44661d Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Fri, 4 May 2012 14:27:12 +0100 Subject: Avoid deprecated methods --- tikzit/src/gtk/EdgeStyleSelector.m | 4 ++-- tikzit/src/gtk/NodeStyleSelector.m | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tikzit/src/gtk/EdgeStyleSelector.m b/tikzit/src/gtk/EdgeStyleSelector.m index 544ed98..c9c9780 100644 --- a/tikzit/src/gtk/EdgeStyleSelector.m +++ b/tikzit/src/gtk/EdgeStyleSelector.m @@ -289,7 +289,7 @@ enum { } else { GdkPixbuf *pixbuf = [self pixbufOfEdgeInStyle:style]; gtk_list_store_set (store, &row, STYLES_ICON_COL, pixbuf, -1); - gdk_pixbuf_unref (pixbuf); + g_object_unref (pixbuf); } } } while (gtk_tree_model_iter_next (model, &row)); @@ -411,7 +411,7 @@ enum { STYLES_ICON_COL, pixbuf, STYLES_PTR_COL, (gpointer)[style retain], -1); - gdk_pixbuf_unref (pixbuf); + g_object_unref (pixbuf); [self observeStyle:style]; } diff --git a/tikzit/src/gtk/NodeStyleSelector.m b/tikzit/src/gtk/NodeStyleSelector.m index af02338..885dc79 100644 --- a/tikzit/src/gtk/NodeStyleSelector.m +++ b/tikzit/src/gtk/NodeStyleSelector.m @@ -282,7 +282,7 @@ enum { } else { GdkPixbuf *pixbuf = [self pixbufOfNodeInStyle:style]; gtk_list_store_set (store, &row, STYLES_ICON_COL, pixbuf, -1); - gdk_pixbuf_unref (pixbuf); + g_object_unref (pixbuf); } } } while (gtk_tree_model_iter_next (model, &row)); @@ -387,7 +387,7 @@ enum { STYLES_ICON_COL, pixbuf, STYLES_PTR_COL, (gpointer)[style retain], -1); - gdk_pixbuf_unref (pixbuf); + g_object_unref (pixbuf); [self observeStyle:style]; } -- cgit v1.2.3