X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c85ab7569677ff535c258c7f25ad428ba1ed406..1d7ea62e9e91bf5717feafb361e89ac8c7d32913:/src/gtk/renderer.cpp diff --git a/src/gtk/renderer.cpp b/src/gtk/renderer.cpp index 8b545e1c39..67768b216c 100644 --- a/src/gtk/renderer.cpp +++ b/src/gtk/renderer.cpp @@ -430,10 +430,12 @@ wxRendererGTK::DrawDropArrow(wxWindow *win, GtkStateType state; - if ( flags & wxCONTROL_CURRENT ) - state = GTK_STATE_PRELIGHT; + if ( flags & wxCONTROL_PRESSED ) + state = GTK_STATE_ACTIVE; else if ( flags & wxCONTROL_DISABLED ) state = GTK_STATE_INSENSITIVE; + else if ( flags & wxCONTROL_CURRENT ) + state = GTK_STATE_PRELIGHT; else state = GTK_STATE_NORMAL; @@ -471,10 +473,12 @@ wxRendererGTK::DrawComboBoxDropButton(wxWindow *win, // draw button GtkStateType state; - if ( flags & wxCONTROL_CURRENT ) - state = GTK_STATE_PRELIGHT; + if ( flags & wxCONTROL_PRESSED ) + state = GTK_STATE_ACTIVE; else if ( flags & wxCONTROL_DISABLED ) state = GTK_STATE_INSENSITIVE; + else if ( flags & wxCONTROL_CURRENT ) + state = GTK_STATE_PRELIGHT; else state = GTK_STATE_NORMAL;