summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Merry <dev@randomguy3.me.uk>2012-05-04 14:27:12 +0100
committerAlex Merry <dev@randomguy3.me.uk>2012-05-04 14:27:12 +0100
commitff8296e4b074cdc4a59fa208e6ac620bed44661d (patch)
treec2b5152ec9b1ff1bb7daa46134a48073391dea68
parent78c31f941a5be18b0b094718e203fed99040b493 (diff)
Avoid deprecated methods
-rw-r--r--tikzit/src/gtk/EdgeStyleSelector.m4
-rw-r--r--tikzit/src/gtk/NodeStyleSelector.m4
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];
}