Readd support for prelight tree control triangles (visual
effect when mouse is over the triangle/button) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f05e0979c2
commit
885dd59789
@ -186,13 +186,19 @@ wxRendererGTK::DrawTreeItemButton(wxWindow* win,
|
||||
{
|
||||
GtkWidget *tree = GetTreeWidget();
|
||||
|
||||
GtkStateType state;
|
||||
if ( flags & wxCONTROL_CURRENT )
|
||||
state = GTK_STATE_PRELIGHT;
|
||||
else
|
||||
state = GTK_STATE_NORMAL;
|
||||
|
||||
// VZ: I don't know how to get the size of the expander so as to centre it
|
||||
// in the given rectangle, +2/3 below is just what looks good here...
|
||||
gtk_paint_expander
|
||||
(
|
||||
tree->style,
|
||||
GTK_PIZZA(win->m_wxwindow)->bin_window,
|
||||
GTK_STATE_NORMAL,
|
||||
state,
|
||||
NULL,
|
||||
tree,
|
||||
"treeview",
|
||||
|
@ -186,13 +186,19 @@ wxRendererGTK::DrawTreeItemButton(wxWindow* win,
|
||||
{
|
||||
GtkWidget *tree = GetTreeWidget();
|
||||
|
||||
GtkStateType state;
|
||||
if ( flags & wxCONTROL_CURRENT )
|
||||
state = GTK_STATE_PRELIGHT;
|
||||
else
|
||||
state = GTK_STATE_NORMAL;
|
||||
|
||||
// VZ: I don't know how to get the size of the expander so as to centre it
|
||||
// in the given rectangle, +2/3 below is just what looks good here...
|
||||
gtk_paint_expander
|
||||
(
|
||||
tree->style,
|
||||
GTK_PIZZA(win->m_wxwindow)->bin_window,
|
||||
GTK_STATE_NORMAL,
|
||||
state,
|
||||
NULL,
|
||||
tree,
|
||||
"treeview",
|
||||
|
Loading…
Reference in New Issue
Block a user