From 6ef9dc7797729a547dace431f57a73fe278172cc Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 12 Mar 2022 20:58:18 +0800 Subject: [PATCH] Fix the PGTK build * src/gtkutil.c (xg_finish_scroll_bar_creation): Fix ifdefs preventing x_window from being correctly set. (xg_get_scroll_id_for_window): Ifdef out unused function. --- src/gtkutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtkutil.c b/src/gtkutil.c index c9a3999afe7..7287f6761db 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -4440,7 +4440,7 @@ xg_get_default_scrollbar_height (struct frame *f) return scroll_bar_width_for_theme * xg_get_scale (f); } -#if defined HAVE_PGTK || !defined HAVE_GTK3 +#ifndef HAVE_GTK3 /* Return the scrollbar id for X Window WID on display DPY. Return -1 if WID not in id_to_widget. */ @@ -4556,7 +4556,7 @@ xg_finish_scroll_bar_creation (struct frame *f, #endif #endif -#if !defined HAVE_GTK3 || !defined HAVE_GTK3 +#if defined HAVE_PGTK || !defined HAVE_GTK3 bar->x_window = scroll_id; #endif } -- 2.39.5