summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-05-03 12:37:32 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-05-07 09:54:39 +0200
commit5e8d51ca7b597eeaf9f8cfbb1c97e8ab51b030a8 (patch)
tree438b8eb3a9d442d9ead685f9e8aceae9b9a139d4 /include
parent65420c21194a28aeead0238838028b734b663d87 (diff)
tdf#125079 turn off GTK_WIN_POS_CENTER_ON_PARENT after a while
Change-Id: Ib268a6b32257aee812e5bae27a6db94431d2abbb Reviewed-on: https://gerrit.libreoffice.org/71739 Tested-by: Jenkins Tested-by: Xisco Faulí <xiscofauli@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/templatedlg.hxx3
-rw-r--r--include/vcl/weld.hxx15
2 files changed, 14 insertions, 4 deletions
diff --git a/include/sfx2/templatedlg.hxx b/include/sfx2/templatedlg.hxx
index e8ff1610caa3..dd821bdf3d05 100644
--- a/include/sfx2/templatedlg.hxx
+++ b/include/sfx2/templatedlg.hxx
@@ -15,6 +15,7 @@
#include <set>
+#include <vcl/idle.hxx>
#include <vcl/timer.hxx>
#include <vcl/weld.hxx>
@@ -197,8 +198,10 @@ public:
private:
DECL_LINK(OpenTemplateHdl, ThumbnailViewItem*, void);
DECL_LINK(OkClickHdl, weld::Button&, void);
+ DECL_LINK(TimeOut, Timer*, void);
OUString msTemplatePath;
+ Idle maIdle;
};
#endif // INCLUDED_SFX2_INC_TEMPLATEDLG_HXX
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index 4bc3e0893cf2..be325ab9af34 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -342,10 +342,17 @@ public:
virtual bool get_resizable() const = 0;
virtual Size get_size() const = 0;
virtual Point get_position() const = 0;
- // ensure window will be centered on its parent, taking into account that
- // there may currently be pending geometry requests for the parent
- // not yet processed by the underlying toolkit
- virtual void set_centered_on_parent_geometry_request() = 0;
+ // center window on is parent
+ //
+ // bTrackGeometryRequests set to true tries to ensure the window will end
+ // up still centered on its parent windows final size, taking into account
+ // that there may currently be pending geometry requests for the parent not
+ // yet processed by the underlying toolkit
+ //
+ // for e.g gtk this will means the window is always centered even when
+ // resized, calling set_centered_on_parent with false will turn this
+ // off again.
+ virtual void set_centered_on_parent(bool bTrackGeometryRequests) = 0;
virtual bool has_toplevel_focus() const = 0;
virtual void present() = 0;
virtual void set_window_state(const OString& rStr) = 0;