aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2022-03-17 11:51:32 +0800
committerPo Lu2022-03-17 11:51:32 +0800
commit667775e1ae259dc2fe0dee96ebb506beeef4d5ce (patch)
tree38d5d02d6abe82bfa97fadc6a622cfc1894347c0
parentbbfad0a7880c4202a90001cd76ad7844a12b9273 (diff)
downloademacs-667775e1ae259dc2fe0dee96ebb506beeef4d5ce.tar.gz
emacs-667775e1ae259dc2fe0dee96ebb506beeef4d5ce.zip
Make GTK inspector available on PGTK
* src/pgtkfns.c (Fx_gtk_debug): New function. (syms_of_pgtkfns): Define new subr.
-rw-r--r--src/pgtkfns.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/pgtkfns.c b/src/pgtkfns.c
index dd2e305965a..38e60858432 100644
--- a/src/pgtkfns.c
+++ b/src/pgtkfns.c
@@ -3872,6 +3872,21 @@ nil, it defaults to the selected frame. */)
3872 return unbind_to (count, font); 3872 return unbind_to (count, font);
3873} 3873}
3874 3874
3875#if GTK_CHECK_VERSION (3, 14, 0)
3876DEFUN ("x-gtk-debug", Fx_gtk_debug, Sx_gtk_debug, 1, 1, 0,
3877 doc: /* Toggle interactive GTK debugging. */)
3878 (Lisp_Object enable)
3879{
3880 gboolean enable_debug = !NILP (enable);
3881
3882 block_input ();
3883 gtk_window_set_interactive_debugging (enable_debug);
3884 unblock_input ();
3885
3886 return NILP (enable) ? Qnil : Qt;
3887}
3888#endif /* GTK_CHECK_VERSION (3, 14, 0) */
3889
3875/* ========================================================================== 3890/* ==========================================================================
3876 3891
3877 Lisp interface declaration 3892 Lisp interface declaration
@@ -3971,6 +3986,10 @@ be used as the image of the icon representing the frame. */);
3971 defsubr (&Sx_close_connection); 3986 defsubr (&Sx_close_connection);
3972 defsubr (&Sx_display_list); 3987 defsubr (&Sx_display_list);
3973 3988
3989#if GTK_CHECK_VERSION (3, 14, 0)
3990 defsubr (&Sx_gtk_debug);
3991#endif
3992
3974 defsubr (&Spgtk_hide_others); 3993 defsubr (&Spgtk_hide_others);
3975 defsubr (&Spgtk_hide_emacs); 3994 defsubr (&Spgtk_hide_emacs);
3976 3995