[gnome-photos/wip/rishi/edit-mode: 14/25] gegl-gtk-view: Remove gegl_gtk_view_new_for_buffer



commit 5034a119a23eb8860ea73613d2f7129a33f86093
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 8f1d471..0ff3a2d 100644
--- a/src/gegl-gtk-view.c
+++ b/src/gegl-gtk-view.c
@@ -452,14 +452,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 cf2fac7..957f10f 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]