aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-04-12 11:28:57 -0500
committerTed Gould <ted@gould.cx>2012-04-12 11:28:57 -0500
commita29d68c1c8cd2a3e755bcbb819748922f4e965cc (patch)
treecbd63d9bcc6edc6f48a962b309280ad5fa093573 /libdbusmenu-gtk
parent9dd4e51920a5adccafbc2091d6e29391ab0c3bb5 (diff)
downloadlibdbusmenu-a29d68c1c8cd2a3e755bcbb819748922f4e965cc.tar.gz
libdbusmenu-a29d68c1c8cd2a3e755bcbb819748922f4e965cc.tar.bz2
libdbusmenu-a29d68c1c8cd2a3e755bcbb819748922f4e965cc.zip
Make sanitize_label static for sure and inline if available
Diffstat (limited to 'libdbusmenu-gtk')
-rw-r--r--libdbusmenu-gtk/genericmenuitem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-gtk/genericmenuitem.c b/libdbusmenu-gtk/genericmenuitem.c
index 81d67fe..33d888d 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 "_" */
-gchar *
+G_INLINE_FUNC gchar *
sanitize_label (const gchar * in_label)
{
static GRegex * underscore_regex = NULL;