GNOME Bugzilla – Bug 676987
0.13.3: failed to rearrange menuitems
Last modified: 2012-11-02 05:04:27 UTC
When I try to move up or down a menuitem, the item is disappear, and I get the following error: Traceback (most recent call last):
+ Trace 230275
self.editor.moveItem(item, item.get_parent(), before=before)
file_id = self.copyItem(item, new_parent)
util.fillKeyFile(keyfile, dict(Categories=[], Hidden=False))
keyfile.set_string_list(DESKTOP_GROUP, key, item)
return info.invoke(*args, **kwargs)
You need a newer version of glib/gobject-introspection.
I'm using the latest stable releases on Arch Linux: glib2 2.32.3 gobject-introspection 1.32.1 python2-gobject 3.2.2 So are you say that the latest alacarte release depends on a development/unstable library?
Hm, that should be recent enough. Can you check /usr/share/gir-1.0/GLib-2.0.gir? grep for g_key_file_set_string_list, and make sure that you see something that looks like this: <parameter name="list" transfer-ownership="none"> <doc xml:whitespace="preserve">an array of string values</doc> <array length="3" zero-terminated="1" c:type="gchar*"> <type name="utf8"/> </array> </parameter>
This seems to be a pygobject bug: https://bugzilla.gnome.org/show_bug.cgi?id=677124
I have g_key_file_set_string_list in /usr/share/gir-1.0/GLib-2.0.gir and it looks exactly the same what you posted. I applied you patch to pygobject and I sill get a bit different error: Traceback (most recent call last):
+ Trace 230279
app_info = item.get_info()
I'll look into it tomorrow. I'm still learning the codebase, and it's quite messy.
http://git.gnome.org/browse/alacarte/commit/?id=b299638ee9347084f161732f7a0205fdbd51b327 Does it work with this patch?
Sigh. Another pygobject bug prevented Move Up/Move Down from working correctly: https://bugzilla.gnome.org/show_bug.cgi?id=677249
I applied the patches for alacarte and pygobject, and now Move Up/Move Down works correctly. Thanks! However it's a bit slow, one step takes one or two seconds.
The slowness is waiting for gnome-menus to re-parse the menu and send us a signal with the new stuff.
I marked this bug as fixed, because rearranging menuitems works in alacarte 3.6.1, even it's very slow.