Re: [gDesklets] Gdesklets Position
- From: Mario Gonzalez <mgonzalez mandriva com>
- To: sa1230 <sa1230usr libero it>
- Cc: gdesklets-list gnome org
- Subject: Re: [gDesklets] Gdesklets Position
- Date: Tue, 04 Nov 2008 12:28:04 -0300
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/Display.py 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]