[gnome-builder/wip/libide-merge] add vfunc to set backforward list



commit 9c0c1b9cf0aa61bf103f97d613f66d8a0bfb4a36
Author: Christian Hergert <christian hergert me>
Date:   Fri Mar 20 19:52:04 2015 -0700

    add vfunc to set backforward list

 src/views/gb-view.c |   11 +++++++++++
 src/views/gb-view.h |   35 ++++++++++++++++++++---------------
 2 files changed, 31 insertions(+), 15 deletions(-)
---
diff --git a/src/views/gb-view.c b/src/views/gb-view.c
index 82c0e36..535ae81 100644
--- a/src/views/gb-view.c
+++ b/src/views/gb-view.c
@@ -166,6 +166,17 @@ gb_view_get_title (GbView *self)
   return gb_document_get_title (document);
 }
 
+void
+gb_view_set_back_forward_list (GbView             *self,
+                               IdeBackForwardList *back_forward_list)
+{
+  g_return_if_fail (GB_IS_VIEW (self));
+  g_return_if_fail (IDE_IS_BACK_FORWARD_LIST (back_forward_list));
+
+  if (GB_VIEW_GET_CLASS (self)->set_back_forward_list)
+    GB_VIEW_GET_CLASS (self)->set_back_forward_list (self, back_forward_list);
+}
+
 static void
 gb_view_destroy (GtkWidget *widget)
 {
diff --git a/src/views/gb-view.h b/src/views/gb-view.h
index 98f31ee..208509c 100644
--- a/src/views/gb-view.h
+++ b/src/views/gb-view.h
@@ -20,6 +20,7 @@
 #define GB_VIEW_H
 
 #include <gtk/gtk.h>
+#include <ide.h>
 
 #include "gb-document.h"
 
@@ -33,23 +34,27 @@ struct _GbViewClass
 {
   GtkBinClass parent;
 
-  gboolean     (*get_can_preview) (GbView   *self);
-  gboolean     (*get_can_split)   (GbView   *self);
-  GbDocument  *(*get_document)    (GbView   *self);
-  const gchar *(*get_title)       (GbView   *self);
-  GbView      *(*create_split)    (GbView   *self);
-  void         (*set_split_view)  (GbView   *self,
-                                   gboolean  split_view);
+  gboolean     (*get_can_preview)       (GbView             *self);
+  gboolean     (*get_can_split)         (GbView             *self);
+  GbDocument  *(*get_document)          (GbView             *self);
+  const gchar *(*get_title)             (GbView             *self);
+  GbView      *(*create_split)          (GbView             *self);
+  void         (*set_split_view)        (GbView             *self,
+                                         gboolean            split_view);
+  void         (*set_back_forward_list) (GbView             *self,
+                                         IdeBackForwardList *back_forward_list);
 };
 
-GbView      *gb_view_create_split    (GbView   *self);
-gboolean     gb_view_get_can_preview (GbView   *self);
-gboolean     gb_view_get_can_split   (GbView   *self);
-GbDocument  *gb_view_get_document    (GbView   *self);
-const gchar *gb_view_get_title       (GbView   *self);
-GtkWidget   *gb_view_get_controls    (GbView   *self);
-void         gb_view_set_split_view  (GbView   *self,
-                                      gboolean  split_view);
+GbView      *gb_view_create_split          (GbView             *self);
+gboolean     gb_view_get_can_preview       (GbView             *self);
+gboolean     gb_view_get_can_split         (GbView             *self);
+GbDocument  *gb_view_get_document          (GbView             *self);
+const gchar *gb_view_get_title             (GbView             *self);
+GtkWidget   *gb_view_get_controls          (GbView             *self);
+void         gb_view_set_split_view        (GbView             *self,
+                                            gboolean            split_view);
+void         gb_view_set_back_forward_list (GbView             *self,
+                                            IdeBackForwardList *back_forward_list);
 
 G_END_DECLS
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]