summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-12-14 19:01:44 +0100
committerJan Holesovsky <kendy@suse.cz>2011-12-14 19:03:37 +0100
commit0d5fde790b19515378c9b11a928603b76ac0b846 (patch)
tree1dfeba42b704e44534c63e4cb7ca0b5e4e4f37e5 /vcl
parenta0999b7cd47a9faa1ed7aeef29510674e924f702 (diff)
If possible, make the window big enough to fit all Writer toolbars.
[with large icons]
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/generic/window/salframe.cxx2
-rw-r--r--vcl/unx/gtk/window/gtkframe.cxx2
2 files changed, 4 insertions, 0 deletions
diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx
index b835a013334e..20b8b06641f7 100644
--- a/vcl/unx/generic/window/salframe.cxx
+++ b/vcl/unx/generic/window/salframe.cxx
@@ -345,6 +345,8 @@ void X11SalFrame::Init( sal_uLong nSalFrameStyle, int nScreen, SystemParentData*
w = 785;
if( aScreenSize.Width() >= 1024 )
w = 920;
+ if( aScreenSize.Width() >= 1280 )
+ w = 1050;
if( aScreenSize.Height() >= 600 )
h = 550;
diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx
index 0c195d339de6..a384375382cc 100644
--- a/vcl/unx/gtk/window/gtkframe.cxx
+++ b/vcl/unx/gtk/window/gtkframe.cxx
@@ -1328,6 +1328,8 @@ Size GtkSalFrame::calcDefaultSize()
w = 785;
if( aScreenSize.Width() >= 1024 )
w = 920;
+ if( aScreenSize.Width() >= 1280 )
+ w = 1050;
if( aScreenSize.Height() >= 600 )
h = 550;