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