diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2012-06-13 23:42:18 +0200 |
---|---|---|
committer | Sebastien Bacher <seb128@ubuntu.com> | 2012-06-13 23:42:18 +0200 |
commit | 39588b350296d635de3dcbb4ea8499c8c693b90e (patch) | |
tree | 81e6113ec60b09fb05880af116a2cd9416378324 /libdbusmenu-gtk/genericmenuitem.c | |
parent | 4e49daa82ca948228a7cef9fb552f703d0c80757 (diff) | |
parent | 09e7b1ae2c772ddedc848db0f3d563ae0362cb95 (diff) | |
download | libdbusmenu-39588b350296d635de3dcbb4ea8499c8c693b90e.tar.gz libdbusmenu-39588b350296d635de3dcbb4ea8499c8c693b90e.tar.bz2 libdbusmenu-39588b350296d635de3dcbb4ea8499c8c693b90e.zip |
releasing version 0.6.2-0ubuntu1
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: |