From: Po Lu Date: Wed, 16 Mar 2022 00:41:24 +0000 (+0800) Subject: Fix build with GTK 3.18.0 or earlier X-Git-Tag: emacs-29.0.90~1931^2~1111 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bf7d66aa1aa165bedbab33075820d25f405fcad5;p=emacs.git 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. --- 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 }