[gnome-builder] libide/gui: remove dependency updater from primary workspace



commit 60bca50f7aa374de5897c09887ad062d2a6409d9
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jul 29 15:54:28 2022 -0700

    libide/gui: remove dependency updater from primary workspace
    
    This really has no business being in the primary workspace, it should be
    implemented in plugins.

 src/libide/gui/ide-primary-workspace-actions.c | 170 -------------------------
 src/libide/gui/ide-primary-workspace-private.h |  29 -----
 src/libide/gui/ide-primary-workspace.c         |   4 +-
 src/libide/gui/meson.build                     |   2 -
 src/plugins/buildui/gtk/menus.ui               |   7 +-
 5 files changed, 2 insertions(+), 210 deletions(-)
---
diff --git a/src/libide/gui/ide-primary-workspace.c b/src/libide/gui/ide-primary-workspace.c
index 11923f36f..3bc00cb84 100644
--- a/src/libide/gui/ide-primary-workspace.c
+++ b/src/libide/gui/ide-primary-workspace.c
@@ -28,7 +28,7 @@
 #include "ide-header-bar.h"
 #include "ide-notifications-button.h"
 #include "ide-omni-bar.h"
-#include "ide-primary-workspace-private.h"
+#include "ide-primary-workspace.h"
 #include "ide-run-button.h"
 #include "ide-workspace-private.h"
 
@@ -319,8 +319,6 @@ ide_primary_workspace_init (IdePrimaryWorkspace *self)
 
   build_menu = ide_application_get_menu_by_id (IDE_APPLICATION_DEFAULT, "build-menu");
   ide_joined_menu_append_menu (self->build_menu, G_MENU_MODEL (build_menu));
-
-  _ide_primary_workspace_init_actions (self);
 }
 
 /**
diff --git a/src/libide/gui/meson.build b/src/libide/gui/meson.build
index 68a5853cc..3a7d6f312 100644
--- a/src/libide/gui/meson.build
+++ b/src/libide/gui/meson.build
@@ -54,7 +54,6 @@ libide_gui_private_headers = [
   'ide-notification-view-private.h',
   'ide-page-private.h',
   'ide-preferences-builtin-private.h',
-  'ide-primary-workspace-private.h',
   'ide-recoloring-private.h',
   'ide-search-popover-private.h',
   'ide-session-private.h',
@@ -74,7 +73,6 @@ libide_gui_private_sources = [
   'ide-notification-stack.c',
   'ide-notification-view.c',
   'ide-preferences-builtin.c',
-  'ide-primary-workspace-actions.c',
   'ide-recoloring.c',
   'ide-search-popover.c',
   'ide-session.c',
diff --git a/src/plugins/buildui/gtk/menus.ui b/src/plugins/buildui/gtk/menus.ui
index 89d99fb72..6a173495a 100644
--- a/src/plugins/buildui/gtk/menus.ui
+++ b/src/plugins/buildui/gtk/menus.ui
@@ -108,12 +108,7 @@
     </section>
     <section id="build-deps">
       <item>
-        <attribute name="label" translatable="yes">Update Dependencies…</attribute>
-        <attribute name="action">win.update-dependencies</attribute>
-        <attribute name="description" translatable="yes">Download updates to project dependencies</attribute>
-        <attribute name="verb-icon">software-update-available-symbolic</attribute>
-      </item>
-      <item>
+        <attribute name="id" translatable="yes">manage-sdks</attribute>
         <attribute name="label" translatable="yes">Manage SDKs…</attribute>
         <attribute name="action">app.preferences-page</attribute>
         <attribute name="target" type="s">'sdks'</attribute>


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