[gnome-builder] editor-tab: use parent scope.



commit 464225df36f0c7fbc2d1a57db595d5b59cefca73
Author: Christian Hergert <christian hergert me>
Date:   Wed Sep 24 15:29:20 2014 -0700

    editor-tab: use parent scope.

 src/editor/gb-editor-tab.c |   25 +++++++++++--------------
 1 files changed, 11 insertions(+), 14 deletions(-)
---
diff --git a/src/editor/gb-editor-tab.c b/src/editor/gb-editor-tab.c
index bd63ebd..26fa389 100644
--- a/src/editor/gb-editor-tab.c
+++ b/src/editor/gb-editor-tab.c
@@ -915,6 +915,7 @@ gb_editor_tab_constructed (GObject *object)
   GtkSourceCompletion *comp;
   GbEditorTabPrivate *priv;
   GbEditorTab *tab = (GbEditorTab *) object;
+  GtkSourceGutter *gutter;
 
   ENTRY;
 
@@ -1011,20 +1012,16 @@ gb_editor_tab_constructed (GObject *object)
                                "language", G_BINDING_SYNC_CREATE,
                                transform_file_to_language, NULL, tab, NULL);
 
-  {
-    GtkSourceGutter *gutter;
-
-    gutter = gtk_source_view_get_gutter (GTK_SOURCE_VIEW (priv->source_view),
-                                         GTK_TEXT_WINDOW_LEFT);
-    priv->change_renderer =
-        g_object_new (GB_TYPE_SOURCE_CHANGE_GUTTER_RENDERER,
-                      "change-monitor", priv->change_monitor,
-                      "size", 2,
-                      "visible", TRUE,
-                      "xpad", 1,
-                      NULL);
-    gtk_source_gutter_insert (gutter, priv->change_renderer, 0);
-  }
+  gutter = gtk_source_view_get_gutter (GTK_SOURCE_VIEW (priv->source_view),
+                                       GTK_TEXT_WINDOW_LEFT);
+  priv->change_renderer =
+      g_object_new (GB_TYPE_SOURCE_CHANGE_GUTTER_RENDERER,
+                    "change-monitor", priv->change_monitor,
+                    "size", 2,
+                    "visible", TRUE,
+                    "xpad", 1,
+                    NULL);
+  gtk_source_gutter_insert (gutter, priv->change_renderer, 0);
 
   gb_editor_tab_cursor_moved (tab, priv->document);
 


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