No changes, just rename GTKGetCurrentState() to be more clear.

Update the name and the comment to explain better that this method returns the
state for which the bitmap is currently shown, not necessarily the current
state.

See #16771.
This commit is contained in:
Vadim Zeitlin
2015-05-09 19:17:41 +02:00
parent 178e9c9335
commit c0ae81ced7
2 changed files with 7 additions and 7 deletions

View File

@@ -54,10 +54,10 @@ private:
// update the bitmap to correspond to the current button state
void GTKUpdateBitmap();
// return the current button state from m_isXXX flags (which means that it
// might not correspond to the real current state as e.g. m_isCurrent will
// never be true if we don't have a valid current bitmap)
State GTKGetCurrentState() const;
// return the state whose bitmap is being currently shown (so this is
// different from the real current state, e.g. it could be State_Normal
// even if the button is pressed if no button was set for State_Pressed)
State GTKGetCurrentBitmapState() const;
// show the given bitmap (must be valid)
void GTKDoShowBitmap(const wxBitmap& bitmap);