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

List:       kde-devel
Subject:    Re: Reloading window decorations
From:       Waldo Bastian <bastian () kde ! org>
Date:       2001-03-21 1:56:51
[Download RAW message or body]

On Tuesday 20 March 2001 17:23, Catalin Climov wrote:
> On Tuesday 20 March 2001 23:10, Matthias Ettrich wrote:
> > On Tuesday 20 March 2001 15:41, Catalin Climov wrote:
> > > Hi,
> > >
> > > How do I tell KWin to reload the window decorations ? I'm looking for
> > > something similar to Workspace::slotResetAllClients(), but I don't know
> > > how to get a handle to a Workspace instance.
> > >
> > > Thanks.
> >
> > Use Client::workspace()
>
> I noticed that one too, unfortunately I'm not in the context of a Client
> when I need to reload the window decoration. I developed a kcm module for
> setting the button order of a particular kwin decoration, and I would like
> to reload the decoration each time the user presses the "Apply" button. Any
> other ideas ?

Me! Me! 

       // reconfigure kwin
       DCOPClient *client = kapp->dcopClient();
       if (!client->isAttached())
          client->attach();
       client->send("kwin", "", "reconfigure()", "");

from kcontrol/thememgr/theme.cpp, similair code can be found in
kcontrol/kwintheme/kwintheme.cpp

Cheers,
Waldo
-- 
bastian@kde.org | SuSE Labs KDE Developer | bastian@suse.com
 
>> Visit http://master.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