[gnome-builder] libide: hook up missing property helpers for back-forward-list



commit b4465d7b57649f8b7d01e21ed67bcbda9a8750fa
Author: Christian Hergert <christian hergert me>
Date:   Fri Mar 13 00:57:35 2015 -0700

    libide: hook up missing property helpers for back-forward-list

 libide/ide-source-view.c |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-source-view.c b/libide/ide-source-view.c
index 9c02f97..c2fdd5f 100644
--- a/libide/ide-source-view.c
+++ b/libide/ide-source-view.c
@@ -4049,6 +4049,10 @@ ide_source_view_get_property (GObject    *object,
       g_value_set_boolean (value, priv->auto_indent);
       break;
 
+    case PROP_BACK_FORWARD_LIST:
+      g_value_set_object (value, ide_source_view_get_back_forward_list (self));
+      break;
+
     case PROP_ENABLE_WORD_COMPLETION:
       g_value_set_boolean (value, ide_source_view_get_enable_word_completion (self));
       break;
@@ -4114,6 +4118,10 @@ ide_source_view_set_property (GObject      *object,
       ide_source_view_reload_indenter (self);
       break;
 
+    case PROP_BACK_FORWARD_LIST:
+      ide_source_view_set_back_forward_list (self, g_value_get_object (value));
+      break;
+
     case PROP_ENABLE_WORD_COMPLETION:
       ide_source_view_set_enable_word_completion (self, g_value_get_boolean (value));
       break;
@@ -4223,6 +4231,15 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
 
   g_object_class_override_property (object_class, PROP_AUTO_INDENT, "auto-indent");
 
+  gParamSpecs [PROP_BACK_FORWARD_LIST] =
+    g_param_spec_object ("back-forward-list",
+                         _("Back Forward List"),
+                         _("The back-forward list to track jumps."),
+                         IDE_TYPE_BACK_FORWARD_LIST,
+                         (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+  g_object_class_install_property (object_class, PROP_BACK_FORWARD_LIST,
+                                   gParamSpecs [PROP_BACK_FORWARD_LIST]);
+
   gParamSpecs [PROP_FONT_DESC] =
     g_param_spec_boxed ("font-desc",
                         _("Font Description"),


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