Opened 11 years ago

Last modified 7 years ago

#435 new defect

Bind close action needed in many windows

Reported by: westram Owned by: devel
Priority: minor Milestone:
Component: global Version: SVN
Keywords: Cc:

Description (last modified by westram)

Whenever a windows binds a non-standard-close-callback (i.e. not AW_POPDOWN) either

  • set_close_action or
  • an on_hide-callback

should be bound to the same action.

Difficult to find. :/

Possible way:

If neither set_close_action nor an on_hide-callback has been set and no callback has been bound to AW_POPDOWN, print a warning.

Change History (3)

comment:1 Changed 11 years ago by westram

See also #431

comment:2 Changed 11 years ago by westram

Fix that globally together with #298:

  • deprecate AW_POPDOWN(aww), instead use aww->hide() where needed
  • check if aww->hide() calls close-action
  • add new function AW_window::add_close_callback (shall trigger close-callback)

blocked by milestone:gtkmerge

comment:3 Changed 7 years ago by westram

  • Description modified (diff)
Note: See TracTickets for help on using tickets.