[gnome-builder] editor: set stack manually instead of .ui file



commit 4a71e6a7941fdbbe6e8e8e8f8035bbacdb3c54bf
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jan 5 20:31:47 2018 -0800

    editor: set stack manually instead of .ui file

 src/libide/editor/ide-editor-utilities.c  |    2 ++
 src/libide/editor/ide-editor-utilities.ui |    1 -
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libide/editor/ide-editor-utilities.c b/src/libide/editor/ide-editor-utilities.c
index e3837e6..d142e9a 100644
--- a/src/libide/editor/ide-editor-utilities.c
+++ b/src/libide/editor/ide-editor-utilities.c
@@ -115,4 +115,6 @@ ide_editor_utilities_init (IdeEditorUtilities *self)
   self->loading = TRUE;
   gtk_widget_init_template (GTK_WIDGET (self));
   self->loading = FALSE;
+
+  gtk_stack_switcher_set_stack (self->stack_switcher, self->stack);
 }
diff --git a/src/libide/editor/ide-editor-utilities.ui b/src/libide/editor/ide-editor-utilities.ui
index c08dd79..ca65424 100644
--- a/src/libide/editor/ide-editor-utilities.ui
+++ b/src/libide/editor/ide-editor-utilities.ui
@@ -8,7 +8,6 @@
         <child>
           <object class="GtkStackSwitcher" id="stack_switcher">
             <property name="orientation">vertical</property>
-            <property name="stack">stack</property>
             <property name="vexpand">true</property>
             <property name="visible">true</property>
           </object>


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