vcl/unx/gtk3/gtkinst.cxx |   15 +++++++++++++++
 1 file changed, 15 insertions(+)

New commits:
commit 14a84557331ae9d65d40b820c82027529a6de6fe
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sat Oct 22 15:05:51 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sat Oct 22 17:39:15 2022 +0200

    Resolves: tdf#151699 show/hide the overlay along with the edit
    
    if its present
    
    Change-Id: I9f167117329b9fa33a79271c1f97fcb10ab9de32
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141665
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index a50f98c31ee5..9f012a86c39d 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -13472,6 +13472,21 @@ public:
     }
 
 #if !GTK_CHECK_VERSION(4, 0, 0)
+
+    virtual void show() override
+    {
+        GtkInstanceEditable::show();
+        if (m_pPlaceHolderReplacement)
+            gtk_widget_show(GTK_WIDGET(m_pPlaceHolderReplacement));
+    }
+
+    virtual void hide() override
+    {
+        if (m_pPlaceHolderReplacement)
+            gtk_widget_hide(GTK_WIDGET(m_pPlaceHolderReplacement));
+        GtkInstanceEditable::hide();
+    }
+
     virtual ~GtkInstanceEntry() override
     {
         if (m_nUpdatePlaceholderReplacementIdle)

Reply via email to