emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs's set-frame-size can not work well with gnome-shell?


From: Eli Zaretskii
Subject: Re: Emacs's set-frame-size can not work well with gnome-shell?
Date: Sun, 12 Apr 2020 10:23:48 +0300

> From: Andreas Schwab <address@hidden>
> Date: Sun, 12 Apr 2020 08:44:36 +0200
> Cc: tumashu <address@hidden>, "address@hidden" <address@hidden>,
>  Dmitry Gutov <address@hidden>
> 
> [ 1487s] 
> /usr/lib64/gcc/powerpc64-suse-linux/4.8/../../../../powerpc64-suse-linux/bin/ld:
>  xfns.o: in function `Fx_gtk_debug':
> [ 1487s] /home/abuild/rpmbuild/BUILD/emacs-28.0.50/src/xfns.c:7757: undefined 
> reference to `gtk_window_set_interactive_debugging'
> [ 1487s] collect2: error: ld returned 1 exit status
> [ 1487s] make[1]: *** [temacs] Error 1

Thanks.  Does the below fix this?  (I don't have access to a system
where the original problem happens.)

diff --git a/src/xfns.c b/src/xfns.c
index 0fc5530..c8a0af1 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -7754,7 +7754,7 @@ frames (each of which corresponds to one page).  Each 
frame should be
 #endif /* USE_CAIRO */
 
 #ifdef USE_GTK
-#ifdef HAVE_GTK3
+#if GTK_CHECK_VERSION (3, 14, 0)
 DEFUN ("x-gtk-debug", Fx_gtk_debug, Sx_gtk_debug, 1, 1, 0,
        doc: /* Toggle interactive GTK debugging.   */)
   (Lisp_Object enable)
@@ -7767,7 +7767,7 @@ DEFUN ("x-gtk-debug", Fx_gtk_debug, Sx_gtk_debug, 1, 1, 0,
 
   return NILP (enable) ? Qnil : Qt;
 }
-#endif /* HAVE_GTK3 */
+#endif /* GTK >= 3.14.0 */
 #endif /* USE_GTK */
 
 /***********************************************************************



reply via email to

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