[gnome-builder] editor: always make "New" button visible



commit 2f271f527f6035373144f3e4010e2c7067d53c82
Author: Christian Hergert <chergert redhat com>
Date:   Wed May 29 18:22:34 2019 -0700

    editor: always make "New" button visible

 src/plugins/editor/gbp-editor-workspace-addin.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/editor/gbp-editor-workspace-addin.c b/src/plugins/editor/gbp-editor-workspace-addin.c
index f95957f4e..13879a1c4 100644
--- a/src/plugins/editor/gbp-editor-workspace-addin.c
+++ b/src/plugins/editor/gbp-editor-workspace-addin.c
@@ -293,9 +293,8 @@ gbp_editor_workspace_addin_surface_set (IdeWorkspaceAddin *addin,
   if (self->panels_box)
     gtk_widget_set_visible (GTK_WIDGET (self->panels_box),
                             IDE_IS_EDITOR_SURFACE (surface));
-  if (self->new_button)
-    gtk_widget_set_visible (GTK_WIDGET (self->new_button),
-                            IDE_IS_EDITOR_SURFACE (surface));
+
+  gtk_widget_show (GTK_WIDGET (self->new_button));
 }
 
 static void


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