diff options
author | Ted Gould <ted@gould.cx> | 2012-06-07 10:55:34 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-06-07 10:55:34 -0500 |
commit | 6dd001a7708575f123797dae492891c1af35a308 (patch) | |
tree | d36cbbf7c48d3cd18ee440614825e864147400eb /libdbusmenu-gtk | |
parent | d77f364df4d13f1d9cac8cf3bb7a04c68351da9d (diff) | |
download | libdbusmenu-6dd001a7708575f123797dae492891c1af35a308.tar.gz libdbusmenu-6dd001a7708575f123797dae492891c1af35a308.tar.bz2 libdbusmenu-6dd001a7708575f123797dae492891c1af35a308.zip |
Escape the text we are using for markup
Diffstat (limited to 'libdbusmenu-gtk')
-rw-r--r-- | libdbusmenu-gtk/genericmenuitem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-gtk/genericmenuitem.c b/libdbusmenu-gtk/genericmenuitem.c index 81d67fe..91004c0 100644 --- a/libdbusmenu-gtk/genericmenuitem.c +++ b/libdbusmenu-gtk/genericmenuitem.c @@ -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: |