From 0d5fde790b19515378c9b11a928603b76ac0b846 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Wed, 14 Dec 2011 19:01:44 +0100 Subject: If possible, make the window big enough to fit all Writer toolbars. [with large icons] --- vcl/unx/generic/window/salframe.cxx | 2 ++ vcl/unx/gtk/window/gtkframe.cxx | 2 ++ 2 files changed, 4 insertions(+) (limited to 'vcl/unx') 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; -- cgit