[gnome-builder/wip/gtk4-port: 244/343] plugins/project-tree: if 0 some editor code




commit 0548e1c42ff1d887b542e8f7688bc06c3c46bb96
Author: Christian Hergert <chergert redhat com>
Date:   Thu Mar 31 02:31:09 2022 -0700

    plugins/project-tree: if 0 some editor code
    
    Until we have the editor working, this allows playing with things a bit
    as other commits fix missing pieces.

 src/plugins/project-tree/gbp-project-tree-pane-actions.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/project-tree/gbp-project-tree-pane-actions.c 
b/src/plugins/project-tree/gbp-project-tree-pane-actions.c
index 68271e337..c3a5d615a 100644
--- a/src/plugins/project-tree/gbp-project-tree-pane-actions.c
+++ b/src/plugins/project-tree/gbp-project-tree-pane-actions.c
@@ -22,9 +22,12 @@
 
 #include "config.h"
 
+#include <vte/vte.h>
+
+#if 0
 #include <libide-editor.h>
+#endif
 #include <libide-projects.h>
-#include <vte/vte.h>
 
 #include "gbp-project-tree-private.h"
 #include "gbp-rename-file-popover.h"
@@ -72,8 +75,10 @@ new_action_completed_cb (GObject      *object,
       if (!(workbench = ide_widget_get_workbench (GTK_WIDGET (self->tree))))
         return;
 
+#if 0
       if (state->file != NULL)
         ide_workbench_open_async (workbench, state->file, "editor", 0, NULL, NULL, NULL);
+#endif
     }
 }
 
@@ -243,6 +248,7 @@ close_matching_pages (GtkWidget *widget,
   g_assert (IDE_IS_PAGE (page));
   g_assert (G_IS_FILE (file));
 
+#if 0
   if (!IDE_IS_EDITOR_PAGE (page))
     return;
 
@@ -256,6 +262,7 @@ close_matching_pages (GtkWidget *widget,
       ide_buffer_save_file_async (buffer, NULL, NULL, NULL, NULL, NULL);
       gtk_widget_destroy (widget);
     }
+#endif
 }
 
 #define DEFINE_ACTION_HANDLER(short_name, BODY)                       \


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