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

List:       kde-devel
Subject:    Re: XBar development , asking for help when restoring top menu
From:       Aaron Lewis <aaron.lewis1989 () gmail ! com>
Date:       2010-08-24 23:20:32
Message-ID: 4C7453C0.4080901 () gmail ! com
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/25/2010 01:48 AM, Aaron J. Seigo wrote:
> On Saturday, August 21, 2010, Aaron Lewis wrote:
>> 	I'm currently working on a project, plasma-globalmenu , i tried source
>> code from kde web svn interface , and found it buggy.
> 
> great that you are working on this.
> 
> Aurelien Gateau is working on a dbusmenu based global menubar as well; it has 
> the advantage of allowing the client (in this case plasma) do all the 
> painting, but the disadvantage of only working with apps that are patched to 
> use dbusmenu.
> 
> i wonder if it might be possible to merge the two efforts at some point with 
> the xbar method used as a fallback if dbusmenu isn't available, etc? hm...
> 
> anyways ...

Hmm.. the only thing can't be done is .. it won't support icons , but
doesn't matter as i'm playing with bespin style , disabling menu icons
on all KDE / Qt apps.

> 
>> void GlobalMenu::activeWindowChanged(WId wid)
>> {
>> ..
>>  	// Thus , when window is not active , remove menu , fall back to
>> default XBar menu
>> 	if(KWindowSystem::activeWindow() != WId) {
> 
> is this the actual, literal code you have in your project? because i can't see 
> how this will even compile, as WId is a type not a value :) in any case, if 
> you meant wid, then the if statement will never be true since 
> activeWindowChanged is emitted once the new window is active. meaning that the 
> WId passed in to your slot is KWindowSystem::activeWindow().

Edio said he's got a bug with that , so i falled back to last good
version after sending the mail .....

> 
> it should be comparing KWindowSystem::activeWindow() with the WId of the 
> window that registered the current global menu.

Right , originally i tried to use Events as Qt Applications do , now i
found it's impossible , everything is a child of that widget , so .. i
modified structure of my code , now it's working.

See another thread , `Re: Bespin GlobalMenu with XBar Development,
Please help me develop plasma-globalmenu' , i'd rely more detailed.

> 
> oh, and plasma devel related discussion can be found on plasma-devel@kde.org 
> if you are interested :)
> 

Will do.

> 
> 
> 
>  
>>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


- -- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4R0NL3WI5 on freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx0U8AACgkQvf41sEptMqB40QCff8mBc2wekZ415WvxX268iF7J
p8YAmwWiVnAOM42DFs5cAHMgn0Dpeea4
=KOpS
-----END PGP SIGNATURE-----
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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