[gegl-gtk] Remove use of gegl_buffer_destroy and gegl_processor_destroy
- From: Jon Nordby <jonnor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl-gtk] Remove use of gegl_buffer_destroy and gegl_processor_destroy
- Date: Mon, 2 Apr 2012 17:16:36 +0000 (UTC)
commit cf0e16acf5ad7710bcd6e56ab67923a2e1c5d006
Author: Jon Nordby <jononor gmail com>
Date: Mon Apr 2 19:08:02 2012 +0200
Remove use of gegl_buffer_destroy and gegl_processor_destroy
These were removed in gegl 0.1.9+git, commit
a6c6b5fd99f33f04608b05cd0930a22bc3f8603e
Use g_object_unref directly instead
examples/c/gegl-gtk-paint.c | 4 ++--
tests/test-view-helper.c | 2 +-
tests/test-view.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/examples/c/gegl-gtk-paint.c b/examples/c/gegl-gtk-paint.c
index f71a9b7..405863e 100644
--- a/examples/c/gegl-gtk-paint.c
+++ b/examples/c/gegl-gtk-paint.c
@@ -133,7 +133,7 @@ static gboolean paint_release(GtkWidget *widget,
processor = gegl_node_new_processor(writebuf, &roi);
while (gegl_processor_work(processor, NULL)) ;
- gegl_processor_destroy(processor);
+ g_object_unref(processor);
g_object_unref(writebuf);
gegl_node_link_many(top, out, NULL);
@@ -241,7 +241,7 @@ main(gint argc,
gtk_main();
g_object_unref(gegl);
- gegl_buffer_destroy(buffer);
+ g_object_unref(buffer);
gegl_exit();
return 0;
diff --git a/tests/test-view-helper.c b/tests/test-view-helper.c
index addb14c..6229ab6 100644
--- a/tests/test-view-helper.c
+++ b/tests/test-view-helper.c
@@ -61,7 +61,7 @@ static void
teardown_helper_test(ViewHelperTest *test)
{
g_object_unref(test->graph);
- gegl_buffer_destroy(test->buffer);
+ g_object_unref(test->buffer);
g_object_unref(test->helper);
}
diff --git a/tests/test-view.c b/tests/test-view.c
index 8eee89f..49de4e9 100644
--- a/tests/test-view.c
+++ b/tests/test-view.c
@@ -63,7 +63,7 @@ static void
teardown_widget_test(ViewWidgetTest *test)
{
g_object_unref(test->graph);
- gegl_buffer_destroy(test->buffer);
+ g_object_unref(test->buffer);
gtk_widget_destroy(test->window);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]