summaryrefslogtreecommitdiff
path: root/vcl/inc/unx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-05-12 14:45:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-05-12 17:38:03 +0200
commitaaeb94cb055d5daad9bd98c5ec435d1234c75eb7 (patch)
tree671bf8eeeb7be177e943b6fe4ff12ab81f80d524 /vcl/inc/unx
parentb0ae5aaaafd236663f7e81af06a567ade8a2a745 (diff)
gtk4: add a typedef for different gtk_widget_translate_coordinates arg type
Change-Id: I07c514309d1c687361609818d1d16e808e8b4a56 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115487 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/inc/unx')
-rw-r--r--vcl/inc/unx/gtk/gtkdata.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/inc/unx/gtk/gtkdata.hxx b/vcl/inc/unx/gtk/gtkdata.hxx
index 92f8f28c0b6d..7dbc350353e4 100644
--- a/vcl/inc/unx/gtk/gtkdata.hxx
+++ b/vcl/inc/unx/gtk/gtkdata.hxx
@@ -101,6 +101,12 @@ inline GtkWidget* widget_get_first_child(GtkWidget *pWidget)
#endif
}
+#if GTK_CHECK_VERSION(4, 0, 0)
+typedef double gtk_coord;
+#else
+typedef int gtk_coord;
+#endif
+
class GtkSalTimer final : public SalTimer
{
struct SalGtkTimeoutSource *m_pTimeout;