aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-10-21 13:16:30 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-10-21 13:16:30 +0200
commitb0dfd127eed035f39dc197ef395d6ee9318e2a16 (patch)
tree5ba4e11a1e38d15af678fac66b7926cd584da185 /src
parentbbcbd080b4b39fa61b6805f6fe11773805d9c580 (diff)
parent13e3334d19bf6b43b7bb50d09e160228ba4c61e4 (diff)
downloadayatana-ido-b0dfd127eed035f39dc197ef395d6ee9318e2a16.tar.gz
ayatana-ido-b0dfd127eed035f39dc197ef395d6ee9318e2a16.tar.bz2
ayatana-ido-b0dfd127eed035f39dc197ef395d6ee9318e2a16.zip
Merge branch 'tari01-pr/basic-markup'
Attributes GH PR #17: https://github.com/AyatanaIndicators/ayatana-ido/pull/17
Diffstat (limited to 'src')
-rw-r--r--src/idobasicmenuitem.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/idobasicmenuitem.c b/src/idobasicmenuitem.c
index ab3ce87..8e8c41e 100644
--- a/src/idobasicmenuitem.c
+++ b/src/idobasicmenuitem.c
@@ -359,6 +359,12 @@ ido_basic_menu_item_new_from_model (GMenuItem * menu_item,
item = ido_basic_menu_item_new ();
+ IdoBasicMenuItemPrivate *p = ido_basic_menu_item_get_instance_private(IDO_BASIC_MENU_ITEM(item));
+ gboolean use_markup = FALSE;
+ g_menu_item_get_attribute(menu_item, "x-ayatana-use-markup", "b", &use_markup);
+ g_object_set(p->label, "use-markup", use_markup, NULL);
+ g_object_set(p->secondary_label, "use-markup", use_markup, NULL);
+
if (g_menu_item_get_attribute (menu_item, "label", "s", &label))
{
ido_basic_menu_item_set_text (IDO_BASIC_MENU_ITEM (item), label);