Commit 3633e7b2 authored by Christian Hergert's avatar Christian Hergert

foundry: add ide_build_target_get_display_name()

This is different from name in that it allows for pango markup to be
assocaited with the build target.
parent 91df9c5b
......@@ -87,6 +87,25 @@ ide_build_target_get_install (IdeBuildTarget *self)
return FALSE;
* ide_build_target_get_display_name:
* Returns: (nullable) (transfer full): A display name for the build
* target to be displayed in UI. May contain pango markup.
* Since: 3.32
gchar *
ide_build_target_get_display_name (IdeBuildTarget *self)
g_return_val_if_fail (IDE_IS_BUILD_TARGET (self), NULL);
if (IDE_BUILD_TARGET_GET_IFACE (self)->get_display_name)
return IDE_BUILD_TARGET_GET_IFACE (self)->get_display_name (self);
return ide_build_target_get_name (self);
* ide_build_target_get_name:
......@@ -50,6 +50,7 @@ struct _IdeBuildTargetInterface
GFile *(*get_install_directory) (IdeBuildTarget *self);
gchar *(*get_name) (IdeBuildTarget *self);
gchar *(*get_display_name) (IdeBuildTarget *self);
gint (*get_priority) (IdeBuildTarget *self);
gchar **(*get_argv) (IdeBuildTarget *self);
gchar *(*get_cwd) (IdeBuildTarget *self);
......@@ -62,6 +63,8 @@ GFile *ide_build_target_get_install_directory (IdeBuildTarget *
gchar *ide_build_target_get_name (IdeBuildTarget *self);
gchar *ide_build_target_get_display_name (IdeBuildTarget *self);
gint ide_build_target_get_priority (IdeBuildTarget *self);
gchar **ide_build_target_get_argv (IdeBuildTarget *self);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment