Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We should evaluate whether this should be done for all widgets. Right now, having them private makes a public get_state rather useless, since it can't be stored or compared against anything.
- Loading branch information
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4595e8d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it could be compared against a number.
4595e8d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comparing a enum value against a number constant is evil :|
4595e8d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure set_retval and get_retval work exactly like this. (Okay, that's not comparing, but still.)