[gnome-photos/wip/rishi/edit-mode: 15/22] gegl-gtk-view: Remove gegl_gtk_view_new_for_buffer
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/edit-mode: 15/22] gegl-gtk-view: Remove gegl_gtk_view_new_for_buffer
- Date: Thu, 11 Jun 2015 20:27:55 +0000 (UTC)
commit 824833fccb0bc9b8ad69dc5d1e7da68020afe4cb
Author: Debarshi Ray <debarshir gnome org>
Date: Fri May 29 08:17:08 2015 +0200
gegl-gtk-view: Remove gegl_gtk_view_new_for_buffer
We don't use it. Removing it let's us get rid of a deprecation warning
caused by gegl_node.
src/gegl-gtk-view.c | 8 --------
src/gegl-gtk-view.h | 1 -
2 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/src/gegl-gtk-view.c b/src/gegl-gtk-view.c
index 7124041..a0538a0 100644
--- a/src/gegl-gtk-view.c
+++ b/src/gegl-gtk-view.c
@@ -460,14 +460,6 @@ gegl_gtk_view_new(void)
return GEGL_GTK_VIEW(g_object_new(GEGL_GTK_TYPE_VIEW, NULL));
}
-GeglGtkView *
-gegl_gtk_view_new_for_buffer(GeglBuffer *buffer)
-{
- GeglNode *node = gegl_node("gegl:buffer-source",
- "buffer", buffer, NULL);
- return gegl_gtk_view_new_for_node(node);
-}
-
/**
* gegl_gtk_view_new_for_node:
* @node: The #GeglNode to display
diff --git a/src/gegl-gtk-view.h b/src/gegl-gtk-view.h
index d6611c7..4642f6d 100644
--- a/src/gegl-gtk-view.h
+++ b/src/gegl-gtk-view.h
@@ -55,7 +55,6 @@ GType gegl_gtk_view_get_type(void) G_GNUC_CONST;
GeglGtkView *gegl_gtk_view_new(void);
GeglGtkView *gegl_gtk_view_new_for_node(GeglNode *node);
-GeglGtkView *gegl_gtk_view_new_for_buffer(GeglBuffer *buffer);
void gegl_gtk_view_set_node(GeglGtkView *self, GeglNode *node);
GeglNode *gegl_gtk_view_get_node(GeglGtkView *self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]