Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#539 closed misbehavior (fixed)

fix aw_string_selection inconsistencies

Reported by: westram Owned by: westram
Priority: normal Milestone:
Component: Library (GUI) Version: SVN
Keywords: Cc:

Description (last modified by westram)

differences between motif and gtk:

  • using default 'Cancel' button
    • returns NULL in motif
    • returns current inputfield-content in gtk (making it necessary to perform an extra test) fixed by [12247]

general inconsistency:

  • using non-default 'Cancel'/'Abort'/'Close' is impossible fixed by [12247]; used by [12248]

Solution:

  • eliminate default button (always pass from caller)
  • declare one button as abort-button (return NULL if that button has been pressed, as aw_input does)
    • e.g. by prefixing it with '-' (e.g. "Ok,-Abort")done by [12244] + [12247]

It would also be nice to have a default button which gets triggered when the user

  • presses 'ENTER' in the input field or
  • double clicks an entry in the selection box.

The default button could be marked by prefixing its name with '+'.

Change History (7)

comment:1 in reply to: ↑ description Changed 11 years ago by westram

  • Description modified (diff)
  • Owner changed from devel to westram
  • Status changed from new to _started
  • entering an empty string should
    • either be denied or
    • act like abort.

Check behavior for aw_input as well.

Bad idea: several callers of aw_input use an empty result to delete things (e.g. "SAI description" or "SAI group")

comment:2 follow-up: Changed 11 years ago by westram

aw_input2awar:

  • unused outside WINDOW library
  • gtk-version changes awar (while typing) and leaves last entered value in case of 'Abort'
  • motif-version changes awar once
    • to last value when ok was pressed
    • to "" when abort was pressed
  • signature differs between gtk and motif

comment:3 Changed 11 years ago by westram

  • Description modified (diff)

comment:4 in reply to: ↑ 2 Changed 11 years ago by westram

aw_input2awar:

  • unused outside WINDOW library

removed from motif [12250]; hidden in gtk/WINDOW [12251]

  • gtk-version changes awar (while typing) and leaves last entered value in case of 'Abort'
  • still changes awar while typing (might be problematic in some cases; fix then)
  • restores previous value since [12249]

comment:5 in reply to: ↑ description Changed 11 years ago by westram

  • Resolution set to fixed
  • Status changed from _started to closed

Replying to westram:

It would also be nice to have a default button which gets triggered when the user

  • presses 'ENTER' in the input field or
  • double clicks an entry in the selection box.

The default button could be marked by prefixing its name with '+'.

moved to #540

comment:6 Changed 11 years ago by westram

  • Milestone set to powerusability

comment:7 Changed 9 years ago by westram

  • Milestone powerusability deleted

Milestone powerusability deleted

Note: See TracTickets for help on using tickets.