Kaydet (Commit) 24945eaa authored tarafından Caolán McNamara's avatar Caolán McNamara

gtk3: nwf for list node expanders

Change-Id: I710e4feca188836f6572e55132fd6c5941ad06e6
üst 88528b88
...@@ -996,6 +996,16 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co ...@@ -996,6 +996,16 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
context = nPart == PART_SEPARATOR_HORZ ? mpFixedHoriLineStyle : mpFixedVertLineStyle; context = nPart == PART_SEPARATOR_HORZ ? mpFixedHoriLineStyle : mpFixedVertLineStyle;
renderType = RENDER_SEPERATOR; renderType = RENDER_SEPERATOR;
break; break;
case CTRL_LISTNODE:
{
context = mpTreeHeaderButtonStyle;
ButtonValue aButtonValue = rValue.getTristateVal();
if (aButtonValue == BUTTONVALUE_ON)
flags = (GtkStateFlags) (flags | GTK_STATE_FLAG_CHECKED);
renderType = RENDER_EXPANDER;
styleClass = GTK_STYLE_CLASS_EXPANDER;
break;
}
case CTRL_LISTHEADER: case CTRL_LISTHEADER:
context = mpTreeHeaderButtonStyle; context = mpTreeHeaderButtonStyle;
if (nPart == PART_ARROW) if (nPart == PART_ARROW)
...@@ -1102,7 +1112,7 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co ...@@ -1102,7 +1112,7 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
MIN(rControlRegion.GetWidth(), 1 + rControlRegion.GetHeight())); MIN(rControlRegion.GetWidth(), 1 + rControlRegion.GetHeight()));
break; break;
case RENDER_EXPANDER: case RENDER_EXPANDER:
gtk_render_expander(context, cr, 0, 0, nWidth, nHeight); gtk_render_expander(context, cr, -2, -2, nWidth+4, nHeight+4);
break; break;
case RENDER_SCROLLBAR: case RENDER_SCROLLBAR:
PaintScrollbar(context, cr, rControlRegion, nType, nPart, rValue); PaintScrollbar(context, cr, rControlRegion, nType, nPart, rValue);
...@@ -1758,7 +1768,7 @@ bool GtkSalGraphics::IsNativeControlSupported( ControlType nType, ControlPart nP ...@@ -1758,7 +1768,7 @@ bool GtkSalGraphics::IsNativeControlSupported( ControlType nType, ControlPart nP
case CTRL_RADIOBUTTON: case CTRL_RADIOBUTTON:
case CTRL_CHECKBOX: case CTRL_CHECKBOX:
case CTRL_PROGRESS: case CTRL_PROGRESS:
// case CTRL_LISTNODE: case CTRL_LISTNODE:
case CTRL_LISTNET: case CTRL_LISTNET:
if (nPart==PART_ENTIRE_CONTROL || nPart == PART_FOCUS) if (nPart==PART_ENTIRE_CONTROL || nPart == PART_FOCUS)
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment