[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: need help in containments development
From: Giulio Camuffo <giuliocamuffo () gmail ! com>
Date: 2010-07-20 17:58:22
Message-ID: AANLkTimXx-bWvtL6x_P0aB1xyBYBDBxsDQXFpT7yWX7I () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi all,
I'm developing a desktop and a panel containment, and I'm stuck with a
problem i really don't know how to solve:
I need to create an object on the startup of the containment that will be
restored the next time plasma starts. So I can reimplement
Containment::restore or Containment::restoreContents. I can check if the
config of the object is saved otherwise I construct a default one.
The problem is that when creating a new panel restore isn't called, so it
doesn't create the object.
I thought of creating the default one when receiving the
StartupCompletedConstraints, but when changing the desktop activity to my
containment it receives that before restore, so if I had previously swapped
from my own containment to the default one it will first create the default
one and then restore the previously saved object, resulting in one useless
object.
I tried by reading the config entry I save in config() regarding my object,
but in init() or when receiving StartupCompletedConstraint there are only
the entries of the previous containment.
I'd need a method or a signal *always called* and called *always after*
restore, but i couldn't find any.
Do you have any hint? Should it be added to Containment?
Greets, Giulio
[Attachment #5 (text/html)]
Hi all,<div><br></div><div>I'm developing a desktop and a panel contain=
ment, and I'm stuck with a problem i really don't know how to solve=
:</div><div>I need to create an object on the startup of the containment th=
at will be restored the next time plasma starts. So I can reimplement Conta=
inment::restore or Containment::restoreContents. I can check if the config =
of the object is saved otherwise I construct a default one.</div>
<div>The problem is that when creating a new panel restore isn't called=
, so it doesn't create the object.</div><div>I thought of creating the =
default one when receiving the StartupCompletedConstraints, but when changi=
ng the desktop activity to my containment it receives that before restore, =
so if I had previously swapped from my own containment to the default one i=
t will first create the default one and then restore the previously saved o=
bject, resulting in one useless object.</div>
<div>I tried by reading the config entry I save in config() regarding my ob=
ject, but in init() or when receiving StartupCompletedConstraint there are =
only the entries of the previous containment.</div><div><br></div><div>
I'd need a method or a signal *always called* and called *always after*=
restore, but i couldn't find any.</div><div>Do you have any hint? Shou=
ld it be added to Containment?</div><div><br></div><div>Greets, Giulio</div=
>
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic