~ubuntu-branches/ubuntu/lucid/x11-apps/lucid

« back to all changes in this revision

Viewing changes to xgc/Written/Widget

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2008-09-23 00:24:45 UTC
  • mfrom: (1.1.2 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080923002445-mb2rwkif45zz1vlj
Tags: 7.3+4
* Remove xedit from the package, it's unmaintained and broken
  (closes: #321434).
* Remove xedit's conffiles on upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
What we need is a widget which presents a collection of buttons.  The user
 
2
can select only one of them at a time.  When one is selected, its 
 
3
foreground and background colors should be reversed and stay that way
 
4
until another one is selected.  Exactly one button can be selected at
 
5
any one time.
 
6
 
 
7
Possible implementations:
 
8
 
 
9
1.  As a new kind of widget.  bleah.
 
10
 
 
11
 
 
12
2.  Box surrounding a lot of command buttons.  The command buttons have
 
13
    the appropriate callbacks.
 
14
 
 
15
Callbacks:  a) set all buttons to normal colors
 
16
            b) set this button to reverse colors
 
17
            c) change the appropriate variable to the desired value.
 
18
 
 
19
    This can all be done at the time of creation, thus the buttons would
 
20
    be invisible to the rest of the program (a good thing).
 
21
 
 
22
 
 
23
 
 
24
(2) would be a heck of a lot easier to program, since creating widgets is
 
25
a bitch.  However, (1) could come in handy outside of this program.  Perhaps
 
26
write it using (2) and switch to (1) if/when we can get the widget working.