From 936ebcfa4b44a90bdc8789ce7556f1ba3599375c Mon Sep 17 00:00:00 2001
From: Josh Heidenreich <josh.sickmate@gmail.com>
Date: Tue, 21 Feb 2012 13:06:11 +1030
Subject: EasyHack fdo#46258 Removal of VCL testtool support (-enableautomation
 option)

---
 vcl/unx/gtk/window/gtkframe.cxx | 11 -----------
 1 file changed, 11 deletions(-)

(limited to 'vcl/unx')

diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx
index 7f4db68dd037..7384a735569b 100644
--- a/vcl/unx/gtk/window/gtkframe.cxx
+++ b/vcl/unx/gtk/window/gtkframe.cxx
@@ -3228,17 +3228,6 @@ gboolean GtkSalFrame::signalMap( GtkWidget *pWidget, GdkEvent*, gpointer frame )
 
     bool bSetFocus = pThis->m_bSetFocusOnMap;
     pThis->m_bSetFocusOnMap = false;
-    if( ImplGetSVData()->mbIsTestTool )
-    {
-        /* #i76541# testtool needs the focus to be in a new document
-        *  however e.g. metacity does not necessarily put the focus into
-        *  a newly shown window. An extra little hint seems to help here.
-        *  however we don't want to interfere with the normal user experience
-        *  so this is done when running in testtool only
-        */
-        if( ! pThis->m_pParent && (pThis->m_nStyle & SAL_FRAME_STYLE_MOVEABLE) != 0 )
-            bSetFocus = true;
-    }
 
 #if !GTK_CHECK_VERSION(3,0,0)
     if( bSetFocus )
-- 
cgit