[Commits] [wesnoth/wesnoth] d858c6: GUI2/Window: implement dialog exit hooks

GitHub noreply at github.com
Wed Sep 7 23:31:38 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: d858c6b739be5b2e5b621e774537f8c25dc61e62
      https://github.com/wesnoth/wesnoth/commit/d858c6b739be5b2e5b621e774537f8c25dc61e62
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-09-08 (Thu, 08 Sep 2016)

  Changed paths:
    M src/gui/widgets/window.cpp
    M src/gui/widgets/window.hpp

  Log Message:
  -----------
  GUI2/Window: implement dialog exit hooks

These differ from post_show events, which are part of tdialog and show after the window has closed.
Nothing in post_show can stop the dialog closing. This new exit hook functionality allows setting of
functions that fire before a window attempts to close by any method, and can halt the order.

This is much simpler than attempting to hook into every closure source on a per-dialog basis.


  Commit: 969018f7df17535c9912ed4b2f583dd41e152d54
      https://github.com/wesnoth/wesnoth/commit/969018f7df17535c9912ed4b2f583dd41e152d54
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-09-08 (Thu, 08 Sep 2016)

  Changed paths:
    M data/gui/window/mp_create_game.cfg
    M data/gui/window/mp_create_game/default_resolution.cfg
    M data/gui/window/mp_create_game/small_resolution.cfg
    M data/gui/window/mp_create_game/tiny_resolution.cfg
    M src/gui/dialogs/multiplayer/mp_create_game.cpp
    M src/gui/dialogs/multiplayer/mp_create_game.hpp

  Log Message:
  -----------
  MP Create: make use of window exit hook for showing the difficulty dialog


  Commit: 276047ce96d57badd9bb37814f3113ee553dea4e
      https://github.com/wesnoth/wesnoth/commit/276047ce96d57badd9bb37814f3113ee553dea4e
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-09-08 (Thu, 08 Sep 2016)

  Changed paths:
    M data/gui/window/preferences/05_multiplayer.cfg

  Log Message:
  -----------
  Preferences Dialog: tweaked some labels in Friends List view


Compare: https://github.com/wesnoth/wesnoth/compare/67f31138084b...276047ce96d5


More information about the Commits mailing list