[Commits] [wesnoth/wesnoth] a30d81: Generalize listbox sorting option setup (thanks to...

GitHub noreply at github.com
Tue Aug 9 01:40:13 UTC 2016


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

  Changed paths:
    M src/gui/dialogs/addon/list.cpp
    M src/gui/dialogs/addon/list.hpp
    M src/gui/dialogs/game_load.cpp
    M src/gui/dialogs/game_load.hpp
    M src/gui/dialogs/preferences_dialog.cpp
    M src/gui/dialogs/preferences_dialog.hpp
    M src/gui/dialogs/unit_create.cpp
    M src/gui/dialogs/unit_create.hpp
    M src/gui/dialogs/unit_list.cpp
    M src/gui/dialogs/unit_list.hpp
    M src/gui/dialogs/unit_recall.cpp
    M src/gui/dialogs/unit_recall.hpp
    M src/gui/widgets/listbox.hpp

  Log Message:
  -----------
  Generalize listbox sorting option setup (thanks to gfgtdf)

Previously, an init_sorting_option class member had to be added to every dialog that
wanted to use sorting. This removes that need and also removes the need for individual
generator_sort_array objects.





More information about the Commits mailing list