[Commits] [wesnoth/wesnoth] 8a0af2: WIP: a widget that forces its child widget to a fi...

GitHub noreply at github.com
Thu Nov 3 19:16:28 UTC 2016


  Branch: refs/heads/fixed-size-chatbox
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 8a0af227194d6459a447001b0abb94f7ea220d21
      https://github.com/wesnoth/wesnoth/commit/8a0af227194d6459a447001b0abb94f7ea220d21
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2016-11-03 (Thu, 03 Nov 2016)

  Changed paths:
    M projectfiles/VC12/wesnoth.vcxproj
    M projectfiles/VC12/wesnoth.vcxproj.filters
    M src/CMakeLists.txt
    M src/SConscript
    M src/gui/widgets/container.hpp
    A src/gui/widgets/size_fixater.cpp
    A src/gui/widgets/size_fixater.hpp
    M src/gui/widgets/stacked_widget.cpp

  Log Message:
  -----------
  WIP: a widget that forces its child widget to a fixed size


  Commit: 74c9e8cff54a2c106bce6734b1931f347b6f0277
      https://github.com/wesnoth/wesnoth/commit/74c9e8cff54a2c106bce6734b1931f347b6f0277
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2016-11-03 (Thu, 03 Nov 2016)

  Changed paths:
    M projectfiles/VC12/wesnoth.vcxproj
    M projectfiles/VC12/wesnoth.vcxproj.filters
    M src/CMakeLists.txt
    M src/SConscript
    R src/gui/widgets/size_fixater.cpp
    R src/gui/widgets/size_fixater.hpp
    A src/gui/widgets/size_lock.cpp
    A src/gui/widgets/size_lock.hpp

  Log Message:
  -----------
  Minor fixes

* Renamed the widget from size_fixater to size_lock.
  Thanks @shikadilord for the suggestion.
* Fixed build with -Werror=reorder.
* Fixed: the line of size_fixater.cpp was indented with spaces
  in CMakeLists.txt.
* Added newlines to the end of the new files.


  Commit: 4ae6f51938ad254329505178dc4bd8b740ace6e3
      https://github.com/wesnoth/wesnoth/commit/4ae6f51938ad254329505178dc4bd8b740ace6e3
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2016-11-03 (Thu, 03 Nov 2016)

  Changed paths:
    M data/gui/macros/_initial.cfg
    M data/gui/schema.cfg
    A data/gui/widget/size_lock_default.cfg

  Log Message:
  -----------
  The WML part


  Commit: 9a87d394bbd158c0dfadafa07589e90822099bd6
      https://github.com/wesnoth/wesnoth/commit/9a87d394bbd158c0dfadafa07589e90822099bd6
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2016-11-03 (Thu, 03 Nov 2016)

  Changed paths:
    M src/gui/widgets/size_lock.cpp

  Log Message:
  -----------
  Fix crashes

This commit fixes the wrapped widget not being found with find_widget(),
and the size_lock widget crashing on attempt to draw because of not having
any states.


  Commit: 5d955b474616fed161bb974f3c20330764d8aa6b
      https://github.com/wesnoth/wesnoth/commit/5d955b474616fed161bb974f3c20330764d8aa6b
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2016-11-03 (Thu, 03 Nov 2016)

  Changed paths:
    M data/gui/macros/_initial.cfg
    M data/gui/widget/size_lock_default.cfg

  Log Message:
  -----------
  Fix the wrapped widget not filling allocated size

Thanks @Vultraz for the fix.


  Commit: a0f51669442afc5df02ee2c32718908f49a1d046
      https://github.com/wesnoth/wesnoth/commit/a0f51669442afc5df02ee2c32718908f49a1d046
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2016-11-03 (Thu, 03 Nov 2016)

  Changed paths:
    M src/gui/widgets/size_lock.cpp

  Log Message:
  -----------
  Allow either dimension to be zero

Because the containing grid will resize the size_lock to fill whichever
dimension that has space because of other widgets in the same grid,
specifying zero as either dimension is reasonable as long as they are not
both zero at the same time.


Compare: https://github.com/wesnoth/wesnoth/compare/a40533849061...a0f51669442a


More information about the Commits mailing list