Applied patch [ 1183153 ] [wxGTK] DrawComboBoxDropButton pressed state
Jaakko Salli git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -430,10 +430,12 @@ wxRendererGTK::DrawDropArrow(wxWindow *win,
|
|||||||
|
|
||||||
GtkStateType state;
|
GtkStateType state;
|
||||||
|
|
||||||
if ( flags & wxCONTROL_CURRENT )
|
if ( flags & wxCONTROL_PRESSED )
|
||||||
state = GTK_STATE_PRELIGHT;
|
state = GTK_STATE_ACTIVE;
|
||||||
else if ( flags & wxCONTROL_DISABLED )
|
else if ( flags & wxCONTROL_DISABLED )
|
||||||
state = GTK_STATE_INSENSITIVE;
|
state = GTK_STATE_INSENSITIVE;
|
||||||
|
else if ( flags & wxCONTROL_CURRENT )
|
||||||
|
state = GTK_STATE_PRELIGHT;
|
||||||
else
|
else
|
||||||
state = GTK_STATE_NORMAL;
|
state = GTK_STATE_NORMAL;
|
||||||
|
|
||||||
@@ -471,10 +473,12 @@ wxRendererGTK::DrawComboBoxDropButton(wxWindow *win,
|
|||||||
// draw button
|
// draw button
|
||||||
GtkStateType state;
|
GtkStateType state;
|
||||||
|
|
||||||
if ( flags & wxCONTROL_CURRENT )
|
if ( flags & wxCONTROL_PRESSED )
|
||||||
state = GTK_STATE_PRELIGHT;
|
state = GTK_STATE_ACTIVE;
|
||||||
else if ( flags & wxCONTROL_DISABLED )
|
else if ( flags & wxCONTROL_DISABLED )
|
||||||
state = GTK_STATE_INSENSITIVE;
|
state = GTK_STATE_INSENSITIVE;
|
||||||
|
else if ( flags & wxCONTROL_CURRENT )
|
||||||
|
state = GTK_STATE_PRELIGHT;
|
||||||
else
|
else
|
||||||
state = GTK_STATE_NORMAL;
|
state = GTK_STATE_NORMAL;
|
||||||
|
|
||||||
|
@@ -430,10 +430,12 @@ wxRendererGTK::DrawDropArrow(wxWindow *win,
|
|||||||
|
|
||||||
GtkStateType state;
|
GtkStateType state;
|
||||||
|
|
||||||
if ( flags & wxCONTROL_CURRENT )
|
if ( flags & wxCONTROL_PRESSED )
|
||||||
state = GTK_STATE_PRELIGHT;
|
state = GTK_STATE_ACTIVE;
|
||||||
else if ( flags & wxCONTROL_DISABLED )
|
else if ( flags & wxCONTROL_DISABLED )
|
||||||
state = GTK_STATE_INSENSITIVE;
|
state = GTK_STATE_INSENSITIVE;
|
||||||
|
else if ( flags & wxCONTROL_CURRENT )
|
||||||
|
state = GTK_STATE_PRELIGHT;
|
||||||
else
|
else
|
||||||
state = GTK_STATE_NORMAL;
|
state = GTK_STATE_NORMAL;
|
||||||
|
|
||||||
@@ -471,10 +473,12 @@ wxRendererGTK::DrawComboBoxDropButton(wxWindow *win,
|
|||||||
// draw button
|
// draw button
|
||||||
GtkStateType state;
|
GtkStateType state;
|
||||||
|
|
||||||
if ( flags & wxCONTROL_CURRENT )
|
if ( flags & wxCONTROL_PRESSED )
|
||||||
state = GTK_STATE_PRELIGHT;
|
state = GTK_STATE_ACTIVE;
|
||||||
else if ( flags & wxCONTROL_DISABLED )
|
else if ( flags & wxCONTROL_DISABLED )
|
||||||
state = GTK_STATE_INSENSITIVE;
|
state = GTK_STATE_INSENSITIVE;
|
||||||
|
else if ( flags & wxCONTROL_CURRENT )
|
||||||
|
state = GTK_STATE_PRELIGHT;
|
||||||
else
|
else
|
||||||
state = GTK_STATE_NORMAL;
|
state = GTK_STATE_NORMAL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user