From bf7d66aa1aa165bedbab33075820d25f405fcad5 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 16 Mar 2022 08:41:24 +0800 Subject: [PATCH] Fix build with GTK 3.18.0 or earlier * src/gtkutil.c (xg_update_scroll_bar_pos) (xg_update_horizontal_scrollbar_pos): Avoid gtk_widget_queue_allocate on older GTK versions. --- src/gtkutil.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gtkutil.c b/src/gtkutil.c index 174a1bffeae..ec2864e34a7 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -4736,7 +4736,9 @@ xg_update_scrollbar_pos (struct frame *f, if (wdesc) { gdk_window_move_resize (wdesc, left, top, width, height); +#if GTK_CHECK_VERSION (3, 20, 0) gtk_widget_queue_allocate (wparent); +#endif } #endif } @@ -4841,7 +4843,9 @@ xg_update_horizontal_scrollbar_pos (struct frame *f, if (wdesc) { gdk_window_move_resize (wdesc, left, top, width, height); +#if GTK_CHECK_VERSION (3, 20, 0) gtk_widget_queue_allocate (wparent); +#endif } #endif } -- 2.39.2