summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2012-08-10 12:34:00 +0200
committerJan Holesovsky <kendy@suse.cz>2012-08-23 17:53:59 +0200
commit9b10ef9fc39dc0251b03d6d9285bb86aab29abee (patch)
tree8aa948c4bcff7b99e131e8c537e952cd085f0a14 /vcl/unx
parent2ba43bc1b85471a1b91658c000f9cc268c799157 (diff)
Revert the TOPBOTTOM border window type, this needs another approach.
This reverts commit 51fdf273e9893d3d05c99a09e1c2e5835a78e891. In order to be able to draw the toolbars docked on the left or on the right nicely and reliably, we have to avoid any border in the shell; instead, the docking areas will draw the separating lines (when finished). Change-Id: I74c18a7e471a66ac0a436c2bf01f5be016280d22
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx14
1 files changed, 4 insertions, 10 deletions
diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
index 4d8ba82a1459..a0ccfb6a509f 100644
--- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
@@ -1184,16 +1184,10 @@ sal_Bool GtkSalGraphics::getNativeControlRegion( ControlType nType,
if( nStyle & FRAME_DRAW_NODRAW )
{
- if( (nStyle & FRAME_DRAW_TOPBOTTOM) == FRAME_DRAW_TOPBOTTOM )
- rNativeContentRegion = Rectangle(x1,
- y1+frameWidth,
- x2,
- y2-frameWidth);
- else
- rNativeContentRegion = Rectangle(x1+frameWidth,
- y1+frameWidth,
- x2-frameWidth,
- y2-frameWidth);
+ rNativeContentRegion = Rectangle(x1+frameWidth,
+ y1+frameWidth,
+ x2-frameWidth,
+ y2-frameWidth);
}
else
rNativeContentRegion = rControlRegion;