[gnome-builder] build-tools: notify omnibar of the build result
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] build-tools: notify omnibar of the build result
- Date: Tue, 28 Jun 2016 00:05:03 +0000 (UTC)
commit b41a76bd149b869b322d22db54cac24809a94465
Author: Christian Hergert <chergert redhat com>
Date: Wed Jun 22 18:31:00 2016 -0700
build-tools: notify omnibar of the build result
We might want to pull this out of a plugin at somepoint, but for now we
can just propagate the build result to the omni bar.
plugins/build-tools/gbp-build-workbench-addin.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/plugins/build-tools/gbp-build-workbench-addin.c b/plugins/build-tools/gbp-build-workbench-addin.c
index d3c13f7..bfc689f 100644
--- a/plugins/build-tools/gbp-build-workbench-addin.c
+++ b/plugins/build-tools/gbp-build-workbench-addin.c
@@ -58,12 +58,20 @@ static void
gbp_build_workbench_addin_set_result (GbpBuildWorkbenchAddin *self,
IdeBuildResult *result)
{
+ IdeWorkbenchHeaderBar *headerbar;
+ IdeOmniBar *omnibar;
+
g_return_if_fail (GBP_IS_BUILD_WORKBENCH_ADDIN (self));
g_return_if_fail (!result || IDE_IS_BUILD_RESULT (result));
+ g_return_if_fail (self->workbench != NULL);
+
+ headerbar = ide_workbench_get_headerbar (self->workbench);
+ omnibar = ide_workbench_header_bar_get_omni_bar (headerbar);
if (g_set_object (&self->result, result))
{
egg_binding_group_set_source (self->bindings, result);
+ ide_omni_bar_set_build_result (omnibar, result);
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_RESULT]);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]