[gnome-builder/wip/chergert/headerbar] build-tools: notify omnibar of the build result
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/headerbar] build-tools: notify omnibar of the build result
- Date: Thu, 23 Jun 2016 01:31:28 +0000 (UTC)
commit c049deccf9eea5fc7e8bf1de5027b1c494eb75b9
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]