[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [Fwd: Bug#22907: No way to recover hidden menubar]
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-03-23 20:11:15
[Download RAW message or body]

On Friday 23 March 2001 16:39, Stephan Kulow wrote:
> Hi!
> 
> Is this still the case? I thought with David's patch it should
> work?

Found what's happening :
8701 konqueror: Pluggin action showmenubar -->  calling plugAccel. w=[KPopupMenu \
pointer (0x82de908) to widget settings, geometry=640x409+320+307] 8701 konqueror: \
WARNING: Toplevel widget isn't a KMainWindow [KPopupMenu pointer (0x82de908) to \
widget settings, geometry=640x409+320+307]

The action is being plugged into a popup-menu, which doesn't have the mainwindow as
toplevel widget (yet?). It works for F5 because it's also in the toolbar, so the \
mainwindow is found from there.

I believe this is due to the XMLGUI building.....
Hmm, no the popup has the mainwindow as parent, so that's alright.
Then it's topLevelWidget() that doesn't do what we expect
(it stops at the popup menu because it has a WType_TopLevel flag).
Ok, fixed.

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic