[gDesklets] New ADL items for requester & notification
- From: Joe Sapp <sappj ieee org>
- To: gdesklets-list gnome org
- Subject: [gDesklets] New ADL items for requester & notification
- Date: Wed, 02 Feb 2011 15:12:12 -0500
Hi all,
Thinking about Bjoern's suggestion to use ADL for IPopUp and the
yet-to-be-named Control for notification. In terms of syntax, it probably
makes sense for them to be on the same XML level as the <control> tag. What
do you think of:
<popup id="id1" affirmative-button="Ok, 1" negative-button="Cancel, 0"
alt-button="Wait, -1" value="Sample dialog box text" visible="false"
callback="popup_callback"/>
<notify id="id2" affirmative-button="Ok, y" negative-button="Cancel, n"
alt-button="Wait, m" value="Sample notify text" visible="false"
callback="notify_callback" timeout="15"/>
Some things need explanation:
-{affirmative,negative,alt}-button (mostly optional): a list (like frame's
border-width property) of [button text, value passed to callback]. If one
of these doesn't exist, the button isn't shown. Note that this only allows
3 buttons; I think that's a good limit to keep complexity of user feedback
in check. For popup, one button is required.
-value (required): The text in the pop-up/notify box.
-callback: Function callback. If not specified, the buttons just close the
pop-up/notify box.
-visible: Default false. Set this to true to show the pop-up/notify box.
For notify, the box will close after 'timeout' seconds (10 by default).
Joe
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]