summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorRuslan Kabatsayev <b7.10110111@gmail.com>2012-07-09 03:31:54 +0400
committerMichael Meeks <michael.meeks@suse.com>2012-07-10 17:34:55 +0100
commit17ea32a1a36d81a0a12df12adbe15e8eaf1c7c62 (patch)
treef2571b7f5b0a1da2b040ee48efeb160cd82319ba /vcl/unx
parent1c222c5a767311d6628bdef3cfc7d7bc1e72e6ea (diff)
Make bottom tabbar items follow native theme
Change-Id: Ia1c4b4ece81655a91c6e489ee51291684e06c157
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
index c9b1c30ff9ea..6b18e7a3ae12 100644
--- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
@@ -2680,7 +2680,11 @@ sal_Bool GtkSalGraphics::NWPaintGTKTabItem( ControlType nType, ControlPart,
case CTRL_TAB_ITEM:
{
+ const TabitemValue* tiValue = static_cast<const TabitemValue *>(&aValue);
stateType = ( nState & CTRL_STATE_SELECTED ) ? GTK_STATE_NORMAL : GTK_STATE_ACTIVE;
+ GtkPositionType gapSide(GTK_POS_BOTTOM);
+ if(tiValue->isAtBottom())
+ gapSide=GTK_POS_TOP;
// First draw the background
gtk_paint_flat_box(gWidgetData[m_nXScreen].gNotebookWidget->style, pixmap,
@@ -2696,7 +2700,7 @@ sal_Bool GtkSalGraphics::NWPaintGTKTabItem( ControlType nType, ControlPart,
gtk_paint_extension( gWidgetData[m_nXScreen].gNotebookWidget->style, pixmap, stateType, GTK_SHADOW_OUT, NULL, gWidgetData[m_nXScreen].gNotebookWidget,
(char *)"tab", (tabRect.Left() - pixmapRect.Left()), (tabRect.Top() - pixmapRect.Top()),
- tabRect.GetWidth(), tabRect.GetHeight(), GTK_POS_BOTTOM );
+ tabRect.GetWidth(), tabRect.GetHeight(), gapSide);
g_object_steal_data(G_OBJECT(pixmap),tabPrelitDataName);