diff options
author | Ted Gould <ted@gould.cx> | 2012-06-13 14:31:48 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-06-13 14:31:48 -0500 |
commit | 3e036287e1a9c5dab3a4ff5c2e1921738cc33102 (patch) | |
tree | 41eda34b31ab0132c0b036cd9d1fbe689d564860 /libdbusmenu-gtk/genericmenuitem.c | |
parent | e3950826c9eae772094139ae3abd6a966d6b39e0 (diff) | |
parent | d1a1d09ea3487669f8622eb4106414eb01d41cfd (diff) | |
download | libdbusmenu-3e036287e1a9c5dab3a4ff5c2e1921738cc33102.tar.gz libdbusmenu-3e036287e1a9c5dab3a4ff5c2e1921738cc33102.tar.bz2 libdbusmenu-3e036287e1a9c5dab3a4ff5c2e1921738cc33102.zip |
* New upstream release.
* Fixed duplicated underscores in menus (LP: #979301)
* Fix for keybindings not showing in menus bug (LP: #982656)
* DbusmenuServer leaks private string (LP: #981766)
* Ensure menuitems with '&' show them properly (LP: #994564)
Diffstat (limited to 'libdbusmenu-gtk/genericmenuitem.c')
-rw-r--r-- | libdbusmenu-gtk/genericmenuitem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdbusmenu-gtk/genericmenuitem.c b/libdbusmenu-gtk/genericmenuitem.c index 4125828..ae6d4c0 100644 --- a/libdbusmenu-gtk/genericmenuitem.c +++ b/libdbusmenu-gtk/genericmenuitem.c @@ -242,7 +242,7 @@ has_mnemonic (const gchar * string, gboolean previous_underscore) } /* Sanitize the label by removing "__" meaning "_" */ -G_INLINE_FUNC gchar * +static gchar * sanitize_label (const gchar * in_label) { static GRegex * underscore_regex = NULL; @@ -279,7 +279,7 @@ set_label (GtkMenuItem * menu_item, const gchar * in_label) gchar * local_label = NULL; switch (GENERICMENUITEM(menu_item)->priv->disposition) { case GENERICMENUITEM_DISPOSITION_NORMAL: - local_label = g_strdup(in_label); + local_label = g_markup_escape_text(in_label, -1); break; case GENERICMENUITEM_DISPOSITION_INFORMATIONAL: case GENERICMENUITEM_DISPOSITION_WARNING: |