summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-10-22 15:05:51 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-10-22 17:39:15 +0200
commit14a84557331ae9d65d40b820c82027529a6de6fe (patch)
treed1169f5425aefa2160cedee88989c0a41ab9e880 /vcl
parentafca4871bf31b10d7528d4a365920abb4a2c071a (diff)
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 <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk3/gtkinst.cxx15
1 files changed, 15 insertions, 0 deletions
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)