[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - vcl/source

Caolán McNamara caolanm at redhat.com
Tue Sep 3 02:13:22 PDT 2013


 vcl/source/window/builder.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit e57bb359ae4124f2603b9ab44d1534e4489e914a
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Sep 2 20:53:13 2013 +0100

    stop annoying temp full screen windows appearing on insert->index entry
    
    Change-Id: I730617f5ce28149f79d1d22efbfb7eab22e5840d
    (cherry picked from commit 8f6b90a80c7b6e1c19422e944ca49657581e1042)
    Reviewed-on: https://gerrit.libreoffice.org/5766
    Reviewed-by: Fridrich Strba <fridrich at documentfoundation.org>
    Tested-by: Fridrich Strba <fridrich at documentfoundation.org>

diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 355b28f..feedbaf 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -767,6 +767,14 @@ Window *VclBuilder::makeObject(Window *pParent, const OString &name, const OStri
     {
         extractStock(id, rMap);
         pWindow = new FixedImage(pParent, WB_CENTER|WB_VCENTER|WB_3DLOOK);
+        //such parentless GtkImages are temps used to set icons on buttons
+        //default them to hidden to stop e.g. insert->index entry flicking temp
+        //full screen windows
+        if (!pParent)
+        {
+            rMap["visible"] = "false";
+        }
+
     }
     else if (name == "GtkSeparator")
     {


More information about the Libreoffice-commits mailing list