[gnome-builder] flatpak: remove export operation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] flatpak: remove export operation
- Date: Sun, 23 Jul 2017 06:18:57 +0000 (UTC)
commit f679493f0c30ed8fad7190ef615355addde5bf56
Author: Christian Hergert <chergert redhat com>
Date: Sat Jul 22 23:18:33 2017 -0700
flatpak: remove export operation
This is now done generically in the build-manager.
plugins/flatpak/gbp-flatpak-workbench-addin.c | 40 -------------------------
plugins/flatpak/gtk/menus.ui | 4 --
2 files changed, 0 insertions(+), 44 deletions(-)
---
diff --git a/plugins/flatpak/gbp-flatpak-workbench-addin.c b/plugins/flatpak/gbp-flatpak-workbench-addin.c
index 04171ca..3a967ab 100644
--- a/plugins/flatpak/gbp-flatpak-workbench-addin.c
+++ b/plugins/flatpak/gbp-flatpak-workbench-addin.c
@@ -133,45 +133,6 @@ gbp_flatpak_workbench_addin_update_dependencies (GSimpleAction *action,
}
static void
-gbp_flatpak_workbench_addin_export_cb (GObject *object,
- GAsyncResult *result,
- gpointer user_data)
-{
- IdeBuildManager *manager = (IdeBuildManager *)object;
- g_autoptr(GbpFlatpakWorkbenchAddin) self = user_data;
- g_autoptr(GError) error = NULL;
-
- g_assert (GBP_IS_FLATPAK_WORKBENCH_ADDIN (self));
- g_assert (G_IS_ASYNC_RESULT (result));
-
- if (!ide_build_manager_execute_finish (manager, result, &error))
- {
- g_warning ("%s", error->message);
- return;
- }
-}
-
-static void
-gbp_flatpak_workbench_addin_export (GSimpleAction *action,
- GVariant *param,
- gpointer user_data)
-{
- GbpFlatpakWorkbenchAddin *self = user_data;
- IdeBuildManager *manager;
-
- g_assert (G_IS_SIMPLE_ACTION (action));
- g_assert (GBP_IS_FLATPAK_WORKBENCH_ADDIN (self));
-
- manager = ide_context_get_build_manager (ide_workbench_get_context (self->workbench));
-
- ide_build_manager_execute_async (manager,
- IDE_BUILD_PHASE_EXPORT,
- NULL,
- gbp_flatpak_workbench_addin_export_cb,
- g_object_ref (self));
-}
-
-static void
gbp_flatpak_workbench_addin_install_cb (GObject *object,
GAsyncResult *result,
gpointer user_data)
@@ -271,7 +232,6 @@ gbp_flatpak_workbench_addin_init (GbpFlatpakWorkbenchAddin *self)
{
static const GActionEntry actions[] = {
{ "update-dependencies", gbp_flatpak_workbench_addin_update_dependencies },
- { "export", gbp_flatpak_workbench_addin_export },
{ "install-flatpak-builder", gbp_flatpak_workbench_addin_install_flatpak_builder },
};
diff --git a/plugins/flatpak/gtk/menus.ui b/plugins/flatpak/gtk/menus.ui
index b821abf..05a37a7 100644
--- a/plugins/flatpak/gtk/menus.ui
+++ b/plugins/flatpak/gtk/menus.ui
@@ -8,10 +8,6 @@
<attribute name="label" translatable="yes">_Download Dependencies</attribute>
<attribute name="action">flatpak.update-dependencies</attribute>
</item>
- <item>
- <attribute name="label" translatable="yes">_Export as Bundle</attribute>
- <attribute name="action">flatpak.export</attribute>
- </item>
</submenu>
</section>
</menu>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]