[Commits] [wesnoth/wesnoth] f980fe: Stacked Widget: some fixes and cleanup to select_l...
GitHub
noreply at github.com
Sun Mar 26 11:05:00 UTC 2017
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: f980fe6556ba0d34a8dc6bf38824fc87c1e8ec9c
https://github.com/wesnoth/wesnoth/commit/f980fe6556ba0d34a8dc6bf38824fc87c1e8ec9c
Author: Charles Dang <exodia339 at gmail.com>
Date: 2017-03-26 (Sun, 26 Mar 2017)
Changed paths:
M src/gui/widgets/stacked_widget.cpp
M src/gui/widgets/stacked_widget.hpp
Log Message:
-----------
Stacked Widget: some fixes and cleanup to select_layer
First off, this reverts the change from a9ba9a9fea. A detailed explanation has been added to the class
member documentation.
Secondly, this removes calls to set_visible. The generator should handle this internally. It seems the previous
code rendered manual calls necessary. This is no longer the case.
Lastly, this fixes an issue where selecting all layers (-1) did not always result in the top-most layer receiving
events. It appears by some quirk of the generator system, only the last "selected" layer receives events, even
if multiple are visible, *not* simply the top-most one in the stack.
More information about the Commits
mailing list