[gnome-builder] flatpak: invalidate build pipeline after package installs
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] flatpak: invalidate build pipeline after package installs
- Date: Fri, 10 Mar 2017 09:57:48 +0000 (UTC)
commit 71bbe72e50808cfe50ef73235a7666cf8be9a7fc
Author: Christian Hergert <chergert redhat com>
Date: Fri Mar 10 01:57:29 2017 -0800
flatpak: invalidate build pipeline after package installs
After we have installed the given package, ensure that the build pipeline
will be re-setup.
plugins/flatpak/gbp-flatpak-workbench-addin.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/plugins/flatpak/gbp-flatpak-workbench-addin.c b/plugins/flatpak/gbp-flatpak-workbench-addin.c
index 1ba1692..cd39f0e 100644
--- a/plugins/flatpak/gbp-flatpak-workbench-addin.c
+++ b/plugins/flatpak/gbp-flatpak-workbench-addin.c
@@ -203,7 +203,17 @@ gbp_flatpak_workbench_addin_install_cb (GObject *object,
/* TODO: Write to message bar */
g_warning ("%s", error->message);
else
- gtk_widget_hide (GTK_WIDGET (self->message));
+ {
+ IdeContext *context = ide_object_get_context (IDE_OBJECT (manager));
+ IdeConfigurationManager *config_manager = ide_context_get_configuration_manager (context);
+
+ /* TODO: It would be nice to have a cleaner way to re-setup the pipeline
+ * because we know it is invalidated.
+ */
+ g_signal_emit_by_name (config_manager, "invalidate");
+
+ gtk_widget_hide (GTK_WIDGET (self->message));
+ }
g_simple_action_set_enabled (G_SIMPLE_ACTION (action), TRUE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]