Adding to song_menu causes Gtk assertion failure

Asked by Adam Porter

I tried to add a new item to the song_menu. I copied from other items on the menu and added everything in all the right places, as far as I could find. But when I right-click a song, Pithos crashes with this:

**
Gtk:ERROR:/build/buildd/gtk+2.0-2.24.4/gtk/gtkcontainer.c:2756:IA__gtk_container_propagate_expose: assertion failed: (child->parent == GTK_WIDGET (container))
Aborted

But when I remove one of the other items in the menu, like the unban_song item, it doesn't crash.

I can't find anything in the code about the number of items in the menu. I'd appreciate any help.

Question information

Language:
English Edit question
Status:
Solved
For:
Pithos Edit question
Assignee:
No assignee Edit question
Solved by:
Adam Porter
Solved:
Last query:
Last reply:
Revision history for this message
Adam Porter (alphapapa) said :
#1

Nevermind, I found it: I was reusing a GtkImage object--I figured Gtk could handle more than one menu item using the same icon, but no. :)