diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-04-15 19:18:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-04-15 21:32:07 +0200 |
commit | 65474ce8869da250c7e1ac5aa96e2ae12eed4a23 (patch) | |
tree | ee44bb59e0b8fb92248461e44c221f362c1db5bf /vcl | |
parent | 61d8db6b1a2026a29f61eaa691beb3c6cf05de5c (diff) |
GdkAnchorHints isn't available < gtk 3.22
Change-Id: Icabab4695d75c9067c6a4cff9fbcacaf1474afee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92316
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkframe.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx index 18db569607ee..84de83107190 100644 --- a/vcl/unx/gtk3/gtk3gtkframe.cxx +++ b/vcl/unx/gtk3/gtk3gtkframe.cxx @@ -2926,6 +2926,21 @@ void swapDirection(GdkGravity& gravity) } +#if !GTK_CHECK_VERSION(3, 22, 0) +enum GdkAnchorHints +{ + GDK_ANCHOR_FLIP_X = 1 << 0, + GDK_ANCHOR_FLIP_Y = 1 << 1, + GDK_ANCHOR_SLIDE_X = 1 << 2, + GDK_ANCHOR_SLIDE_Y = 1 << 3, + GDK_ANCHOR_RESIZE_X = 1 << 4, + GDK_ANCHOR_RESIZE_Y = 1 << 5, + GDK_ANCHOR_FLIP = GDK_ANCHOR_FLIP_X | GDK_ANCHOR_FLIP_Y, + GDK_ANCHOR_SLIDE = GDK_ANCHOR_SLIDE_X | GDK_ANCHOR_SLIDE_Y, + GDK_ANCHOR_RESIZE = GDK_ANCHOR_RESIZE_X | GDK_ANCHOR_RESIZE_Y +} +#endif + void GtkSalFrame::signalRealize(GtkWidget*, gpointer frame) { GtkSalFrame* pThis = static_cast<GtkSalFrame*>(frame); |