Re: [gDesklets] Gdesklets Position

On Tue, 2008-09-09 at 21:56 +0200, sa1230 wrote:
> Hi all,
> where it's saved the position on the screen for each used desklet?
> I would like if they could be showed in the same position while switching to
> different resolutions.
  Sorry this huge delay :-(  the next code is located in
display/  I hope this helps you.

# load saved positions
positions = DefaultStateSaver().get_key("positions", {})
lx, ly = positions.get(self.get_id(), (UNSET_COORD, UNSET_COORD))
x = settings.get("x", lx)
y = settings.get("y", ly)
if (x != UNSET_COORD): settings["x"] = x
if (y != UNSET_COORD): settings["y"] = y


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]