Re: [gDesklets] Array of Controls
- From: Bjoern Koch <H Humpel gmx de>
- To: gdesklets-list gnome org
- Subject: Re: [gDesklets] Array of Controls
- Date: Fri, 08 May 2009 17:47:43 +0200
Hola!
> So I've been thinking about how to do this for a while, but I don't quite know
> if it'll work. I'd like to be able to have a dynamic number of a Control
> loaded into a desklet, each with their own variables, timers, and properties,
> but it doesn't seem possible with the current XML syntax. It seems like there
> are two ways around this:
> 1) Change the syntax and handling of Controls within gDesklets
> 2) Create a Control that manages creating, accessing, and destroying instances
> of Controls
>
> The second option would be easier for me, since I'm not familiar with the gD
> internals. I'm not quite sure what the interface would be like, or even if
> it's possible to do something like:
>
> self.__array.extend(NewControl.__init__())
>
> within a Control. Any thoughts?
Hmmm... I guess the first option would be "better", "cleaner" and even a
good idea.
But (AFAIK) MAJOR changes need to be made to the core.
I always thought it might be a good idea to have a more flexible way to
include (or not) Controls. Especially when it comes to user settings
(e.g.: "Do you want to enable the clipboard for this desklet ?" -> if
yes: load the control).
But I guess there is no-one left in the gDesklets developer team who
knows the inner core of gDesklets good enough ...
Greetings, Bjoern
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]