[gnome-builder] buildui: notify the user of missing runtime
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] buildui: notify the user of missing runtime
- Date: Thu, 14 Mar 2019 18:19:43 +0000 (UTC)
commit 5dfacb514bba423914506448ef0db3716706d764
Author: Christian Hergert <chergert redhat com>
Date: Thu Mar 14 10:56:06 2019 -0700
buildui: notify the user of missing runtime
src/plugins/buildui/gbp-buildui-omni-bar-section.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/buildui/gbp-buildui-omni-bar-section.c
b/src/plugins/buildui/gbp-buildui-omni-bar-section.c
index c9ec2f0ff..2abd56e24 100644
--- a/src/plugins/buildui/gbp-buildui-omni-bar-section.c
+++ b/src/plugins/buildui/gbp-buildui-omni-bar-section.c
@@ -107,8 +107,13 @@ gbp_buildui_omni_bar_section_notify_pipeline (GbpBuilduiOmniBarSection *self,
gtk_label_set_label (self->popover_config_label, display_name);
gtk_label_set_label (self->popover_device_label, device_name);
- gtk_label_set_label (self->popover_runtime_label, runtime_name);
gtk_actionable_set_action_target (GTK_ACTIONABLE (self->configure_button), "s", config_id);
+
+ if (runtime_name != NULL)
+ gtk_label_set_label (self->popover_runtime_label, runtime_name);
+ else
+ /* translators: use <b>translation</b> to wrap the text in bold font */
+ gtk_label_set_markup (self->popover_runtime_label, _("<b>Missing</b>"));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]