a9add1
From 011f42c0c6104228f5c15daae58e432ccf2be69d Mon Sep 17 00:00:00 2001
a9add1
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
a9add1
Date: Thu, 17 Dec 2015 17:04:52 +0000
a9add1
Subject: [PATCH 2/2] disable tearability of color window
a9add1
a9add1
the new popup controllers take care to destroy the popup
a9add1
and recreate a non-popup and move the contents into it
a9add1
a9add1
so we should re-implement the color popup as one of those
a9add1
in the meantime, turn it into a non-tearable thing
a9add1
a9add1
Change-Id: I6ba26bf19badcbf910b7200b7e1b8b2a64ce4eec
a9add1
---
a9add1
 svx/source/tbxctrls/tbcontrl.cxx | 3 +--
a9add1
 svx/uiconfig/ui/colorwindow.ui   | 1 -
a9add1
 2 files changed, 1 insertion(+), 3 deletions(-)
a9add1
a9add1
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
a9add1
index ae696ae..28691dc 100644
a9add1
--- a/svx/source/tbxctrls/tbcontrl.cxx
a9add1
+++ b/svx/source/tbxctrls/tbcontrl.cxx
a9add1
@@ -2659,8 +2659,7 @@ VclPtr<SfxPopupWindow> SvxColorToolBoxControl::CreatePopupWindow()
a9add1
             break;
a9add1
     }
a9add1
 
a9add1
-    pColorWin->StartPopupMode( &GetToolBox(),
a9add1
-        FloatWinPopupFlags::AllowTearOff|FloatWinPopupFlags::NoAppFocusClose );
a9add1
+    pColorWin->StartPopupMode( &GetToolBox(), FloatWinPopupFlags::NoAppFocusClose );
a9add1
     pColorWin->StartSelection();
a9add1
     SetPopupWindow( pColorWin );
a9add1
     if ( !bSidebarType )
a9add1
diff --git a/svx/uiconfig/ui/colorwindow.ui b/svx/uiconfig/ui/colorwindow.ui
a9add1
index 9482562..702bee3 100644
a9add1
--- a/svx/uiconfig/ui/colorwindow.ui
a9add1
+++ b/svx/uiconfig/ui/colorwindow.ui
a9add1
@@ -25,7 +25,6 @@
a9add1
     <property name="destroy_with_parent">True</property>
a9add1
     <property name="type_hint">popup-menu</property>
a9add1
     <property name="skip_pager_hint">True</property>
a9add1
-    <property name="decorated">False</property>
a9add1
     <property name="deletable">False</property>
a9add1
     <child>
a9add1
       <object class="GtkBox" id="box1">
a9add1
-- 
a9add1
2.5.0
a9add1