[gnome-builder] flatpak: only use pango markup in display-name
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] flatpak: only use pango markup in display-name
- Date: Thu, 17 Jan 2019 03:43:34 +0000 (UTC)
commit 91abc951d2c2b46e178efca53957dac87df736bb
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 16 19:43:07 2019 -0800
flatpak: only use pango markup in display-name
src/plugins/flatpak/gbp-flatpak-build-target.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-build-target.c b/src/plugins/flatpak/gbp-flatpak-build-target.c
index b18be140f..7b65afe74 100644
--- a/src/plugins/flatpak/gbp-flatpak-build-target.c
+++ b/src/plugins/flatpak/gbp-flatpak-build-target.c
@@ -36,13 +36,21 @@ enum {
};
static gchar *
-gbp_flatpak_build_target_get_name (IdeBuildTarget *build_target)
+gbp_flatpak_build_target_get_display_name (IdeBuildTarget *build_target)
{
GbpFlatpakBuildTarget *self = GBP_FLATPAK_BUILD_TARGET (build_target);
return g_strdup_printf ("%s <span fgalpha='32767' size='smaller'>(Flatpak)</span>", self->command);
}
+static gchar *
+gbp_flatpak_build_target_get_name (IdeBuildTarget *build_target)
+{
+ GbpFlatpakBuildTarget *self = GBP_FLATPAK_BUILD_TARGET (build_target);
+
+ return g_strdup (self->command);
+}
+
static gchar **
gbp_flatpak_build_target_get_argv (IdeBuildTarget *build_target)
{
@@ -74,6 +82,7 @@ gbp_flatpak_build_target_get_priority (IdeBuildTarget *build_target)
static void
build_target_iface_init (IdeBuildTargetInterface *iface)
{
+ iface->get_display_name = gbp_flatpak_build_target_get_display_name;
iface->get_name = gbp_flatpak_build_target_get_name;
iface->get_argv = gbp_flatpak_build_target_get_argv;
iface->get_install_directory = gbp_flatpak_build_target_get_install_directory;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]