Kaydet (Commit) 01f2d3fe authored tarafından Caolán McNamara's avatar Caolán McNamara

gtk3: distinguish between first, last and only tabs

Change-Id: Ic69b84a3dd94ee25d5e660da152b1e776fa2b38e
üst 79acfc59
......@@ -956,7 +956,18 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
gtk_style_context_set_state(context, flags);
if (nType == CTRL_TAB_ITEM)
{
gtk_style_context_add_region(mpNoteBookStyle, GTK_STYLE_REGION_TAB, GTK_REGION_EVEN);
const TabitemValue& rTabitemValue = static_cast<const TabitemValue&>(aValue);
GtkRegionFlags eFlags(GTK_REGION_EVEN);
if (rTabitemValue.isFirst() && rTabitemValue.isLast())
eFlags = GTK_REGION_ONLY;
else if (rTabitemValue.isFirst())
eFlags = GTK_REGION_FIRST;
else if (rTabitemValue.isLast())
eFlags = GTK_REGION_LAST;
gtk_style_context_add_region(mpNoteBookStyle, GTK_STYLE_REGION_TAB, eFlags);
gtk_style_context_add_class(context, GTK_STYLE_CLASS_TOP);
}
if (styleClass)
......
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