[gnome-builder/wip/gtk4-port: 47/343] gui: move IdeMenuManager to libide-gui




commit 612e9652548eb343a67109365ee852a06d272a7a
Author: Christian Hergert <chergert redhat com>
Date:   Fri Sep 24 14:16:21 2021 -0700

    gui: move IdeMenuManager to libide-gui
    
    We actually need GTK access here for GtkBuildable, so just keep it in
    libide-gui.

 src/libide/core/libide-core.h               | 1 -
 src/libide/core/meson.build                 | 2 --
 src/libide/gui/ide-application-private.h    | 2 +-
 src/libide/{core => gui}/ide-menu-manager.c | 7 ++++---
 src/libide/{core => gui}/ide-menu-manager.h | 0
 src/libide/gui/libide-gui.h                 | 1 +
 src/libide/gui/meson.build                  | 2 ++
 7 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/src/libide/core/libide-core.h b/src/libide/core/libide-core.h
index d83ab32df..da92b41a0 100644
--- a/src/libide/core/libide-core.h
+++ b/src/libide/core/libide-core.h
@@ -31,7 +31,6 @@
 #include "ide-global.h"
 #include "ide-log.h"
 #include "ide-macros.h"
-#include "ide-menu-manager.h"
 #include "ide-notification.h"
 #include "ide-notifications.h"
 #include "ide-object.h"
diff --git a/src/libide/core/meson.build b/src/libide/core/meson.build
index 5e973f6e6..de684fece 100644
--- a/src/libide/core/meson.build
+++ b/src/libide/core/meson.build
@@ -59,7 +59,6 @@ libide_core_public_headers = [
   'ide-global.h',
   'ide-log.h',
   'ide-macros.h',
-  'ide-menu-manager.h',
   'ide-notification.h',
   'ide-notifications.h',
   'ide-object.h',
@@ -88,7 +87,6 @@ libide_core_public_sources = [
   'ide-context-addin.c',
   'ide-global.c',
   'ide-log.c',
-  'ide-menu-manager.c',
   'ide-notification.c',
   'ide-notifications.c',
   'ide-object.c',
diff --git a/src/libide/gui/ide-application-private.h b/src/libide/gui/ide-application-private.h
index 38810b4d4..65efe9d2c 100644
--- a/src/libide/gui/ide-application-private.h
+++ b/src/libide/gui/ide-application-private.h
@@ -26,7 +26,7 @@
 
 #include "ide-application.h"
 #include "ide-keybindings.h"
-#include "ide-worker-manager.h"
+#include "ide-menu-manager.h"
 
 G_BEGIN_DECLS
 
diff --git a/src/libide/core/ide-menu-manager.c b/src/libide/gui/ide-menu-manager.c
similarity index 99%
rename from src/libide/core/ide-menu-manager.c
rename to src/libide/gui/ide-menu-manager.c
index 89238121e..6c52342e4 100644
--- a/src/libide/core/ide-menu-manager.c
+++ b/src/libide/gui/ide-menu-manager.c
@@ -20,10 +20,11 @@
 
 #include "config.h"
 
+#include <gtk/gtk.h>
 #include <string.h>
 
-#include "menus/ide-menu-manager.h"
-#include "util/ide-util-private.h"
+#include "ide-macros.h"
+#include "ide-menu-manager.h"
 
 struct _IdeMenuManager
 {
@@ -37,7 +38,7 @@ G_DEFINE_TYPE (IdeMenuManager, ide_menu_manager, G_TYPE_OBJECT)
 
 #define IDE_MENU_ATTRIBUTE_BEFORE   "before"
 #define IDE_MENU_ATTRIBUTE_AFTER    "after"
-#define IDE_MENU_ATTRIBUTE_MERGE_ID "dazzle-merge-id"
+#define IDE_MENU_ATTRIBUTE_MERGE_ID "ide-merge-id"
 
 /**
  * IdeMenuManager:
diff --git a/src/libide/core/ide-menu-manager.h b/src/libide/gui/ide-menu-manager.h
similarity index 100%
rename from src/libide/core/ide-menu-manager.h
rename to src/libide/gui/ide-menu-manager.h
diff --git a/src/libide/gui/libide-gui.h b/src/libide/gui/libide-gui.h
index 47baf66ea..e3a7f1408 100644
--- a/src/libide/gui/libide-gui.h
+++ b/src/libide/gui/libide-gui.h
@@ -47,6 +47,7 @@
 #include "ide-gui-global.h"
 #include "ide-header-bar.h"
 #include "ide-marked-view.h"
+#include "ide-menu-manager.h"
 #include "ide-notifications-button.h"
 #include "ide-omni-bar-addin.h"
 #include "ide-omni-bar.h"
diff --git a/src/libide/gui/meson.build b/src/libide/gui/meson.build
index cc8aa49c2..44820be4f 100644
--- a/src/libide/gui/meson.build
+++ b/src/libide/gui/meson.build
@@ -26,6 +26,7 @@ libide_gui_public_headers = [
   'ide-gui-global.h',
   'ide-header-bar.h',
   'ide-marked-view.h',
+  'ide-menu-manager.h',
   'ide-notifications-button.h',
   'ide-omni-bar-addin.h',
   'ide-omni-bar.h',
@@ -128,6 +129,7 @@ libide_gui_public_sources = [
   'ide-gui-global.c',
   'ide-header-bar.c',
   'ide-marked-view.c',
+  'ide-menu-manager.c',
   'ide-notifications-button.c',
   'ide-omni-bar-addin.c',
   'ide-omni-bar.c',


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