emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 6ef9dc7797: Fix the PGTK build


From: Po Lu
Subject: master 6ef9dc7797: Fix the PGTK build
Date: Sat, 12 Mar 2022 08:00:10 -0500 (EST)

branch: master
commit 6ef9dc7797729a547dace431f57a73fe278172cc
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    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 c9a3999afe..7287f6761d 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
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]