I think this is due to a missing NULL guard. The GTK+ docs say it's OK to gtk_menu_item_set_submenu(item, NULL) to remove the submenu, and I think Geany does this when reparenting the New with Templates menu item.
I've attached a patch that shows what I mean (against distro package source since current head wouldn't build here). ** Patch added: "Patch that shows the missing NULL guard." https://bugs.launchpad.net/ubuntu/+source/libdbusmenu/+bug/907635/+attachment/2702355/+files/libdbusmenu-null-submenu.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/907635 Title: lidbusmenu-GTK crash with Geany IDE using Python To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libdbusmenu/+bug/907635/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs