[gnome-builder/wip/gtk4-port] plugins/project-tree: if 0 some editor code
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] plugins/project-tree: if 0 some editor code
- Date: Thu, 31 Mar 2022 09:31:31 +0000 (UTC)
commit 671a09510326013d9495f166090273c66bbad600
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]