diff options
author | Ted Gould <ted@gould.cx> | 2011-06-16 22:33:51 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-06-16 22:33:51 -0500 |
commit | 2960e028e98163a9932a8e47940ce12032c55af5 (patch) | |
tree | 4b97402977a0f7c155af7857dcfe0d8e1204a6c1 /libdbusmenu-glib | |
parent | 2578c3858e862553b07bf106c32d8db0d3645ea0 (diff) | |
download | libdbusmenu-2960e028e98163a9932a8e47940ce12032c55af5.tar.gz libdbusmenu-2960e028e98163a9932a8e47940ce12032c55af5.tar.bz2 libdbusmenu-2960e028e98163a9932a8e47940ce12032c55af5.zip |
Avoid string parsing by using a direct variant new function.
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/menuitem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-glib/menuitem.c b/libdbusmenu-glib/menuitem.c index e07fc37..525c519 100644 --- a/libdbusmenu-glib/menuitem.c +++ b/libdbusmenu-glib/menuitem.c @@ -1696,7 +1696,7 @@ dbusmenu_menuitem_handle_event (DbusmenuMenuitem * mi, const gchar * name, GVari gboolean handled = FALSE; if (variant == NULL) { - variant = g_variant_new("i", 0); + variant = g_variant_new_int32(0); } g_variant_ref_sink(variant); |