GNOME Bugzilla – Bug 75897
Working with any submenu after the menu panel applet is removed results in a crash
Last modified: 2006-02-13 07:28:36 UTC
Gnome Beta 2 was built on a Solaris 9 (32 bit) sun sparc machine. menubar applet version 0.0.1 Description: Working with any submenu after the menu panel applet is removed results in a crash Steps: 1. Open menbar applet "Add to Panel -> Utility -> Menu Bar" 2. Right click and select "add". 3. Right click on the menu applet and select "Remove from panel" 4. The submenu remains open. 5. click on "Directory item" and "Ok" The applet crashes. Stack trace: Program received signal SIGSEGV, Segmentation fault. 0xfe35afe0 in g_list_last () from /opt/gnome-2.0/lib/libglib-2.0.so.0 (gdb) where
+ Trace 19630
Created attachment 7883 [details] [review] Removes the "Add items ..." dialog when removing applet from panel.
Though the patch works, I don't think it is the right thing to do. It would also fail if multiple instances of the applet were run (since they share the same global data structures). I think the dialog should be destroyed when the applet is removed automatically. This may be a gnome-panel issue, I will try to contact Mark about it (it also only happens for in-process applets)
CC'ing Mark on this one. Mark: the problem here is that the panel-menu-applet dialog is not destroyed when the applet is removed from the panel. This only happens with in-proc applets. Is this the applets fault or the panels?
Since the dialog box is created by applet, the applet should take the responsibility of cleaning it when the applet is removed from the panel. So i don't think its a panel issue.
Created attachment 7943 [details] [review] Removes the "Add items .." dialog when applet is removed from panel.
Fix: i have added one more pointer to PanelMenu struct, in which i am storing the reference to the dialog box. When applet is removed from panel, i am using this reference to destroy the dialog box. This will take care of multiple instances of applet. I have also taken care to avoid multiple instances of dialog boxes for the same applet.
Noting for the record that mark just left for two weeks so we're on hold a bit with his responses :)
Oh, if this is a menu applet patch/problem, isn't this chicane's bug?
Hoepfully we can get this fixed
Post GNOME2 since we are not shipping panel-menu-applet by default
Menu panel will be removed from gnome-applets