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: Andreas Schwab
Subject: Re: Emacs's set-frame-size can not work well with gnome-shell?
Date: Sun, 12 Apr 2020 09:37:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux)

On Apr 12 2020, Eli Zaretskii wrote:

> 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 */
>  
>  /***********************************************************************

You also need to stub out the defsubr.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



reply via email to

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