Re: Destroying a menu

2008-01-24 Thread Jerome Blondel
Iago Rubio On Wed, 2008-01-23 at 12:47 +0100, Jerome Blondel wrote: On Mon, 2008-01-21 at 10:47 +0100, Jerome Blondel wrote: Even when the ref count of the submenu is increased, the program still crashes on the second time the submenu is popped up. It seems the destruction of

Re: Destroying a menu

2008-01-23 Thread Jerome Blondel
Iago Rubio On Mon, 2008-01-21 at 10:47 +0100, Jerome Blondel wrote: Hi If I set a menu as a submenu for a menu item, is it destroyed when I destroy the toplevel menu? IFAIK yes. When you attach a menu to a widget it's referenced with g_object_ref_sink, so if it only has a

Re: Destroying a menu

2008-01-23 Thread Iago Rubio
On Wed, 2008-01-23 at 12:47 +0100, Jerome Blondel wrote: On Mon, 2008-01-21 at 10:47 +0100, Jerome Blondel wrote: Even when the ref count of the submenu is increased, the program still crashes on the second time the submenu is popped up. It seems the destruction of the container has other