aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-04-15 16:08:28 +0800
committerPo Lu2022-04-15 16:44:18 +0800
commitbdceac0d5a413d89aae4785c884eab1f446ae3ad (patch)
treecd0fb6fc2370b5d7f3038300697354d477cb4c17 /src
parent1a3bad431d841e52a61e5f1f09b4ebe7fbbd70da (diff)
downloademacs-bdceac0d5a413d89aae4785c884eab1f446ae3ad.tar.gz
emacs-bdceac0d5a413d89aae4785c884eab1f446ae3ad.zip
Clean up some extraneous stuff in pgtkfns.c
* src/pgtkfns.c (Fx_gtk_debug): Fix doc string and remove extra version check. (syms_of_pgtkfns): Delete left over defvar from NS port.
Diffstat (limited to 'src')
-rw-r--r--src/pgtkfns.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/src/pgtkfns.c b/src/pgtkfns.c
index e6ce5e2f443..537d4152b6f 100644
--- a/src/pgtkfns.c
+++ b/src/pgtkfns.c
@@ -3864,9 +3864,8 @@ nil, it defaults to the selected frame. */)
3864 return unbind_to (count, font); 3864 return unbind_to (count, font);
3865} 3865}
3866 3866
3867#if GTK_CHECK_VERSION (3, 14, 0)
3868DEFUN ("x-gtk-debug", Fx_gtk_debug, Sx_gtk_debug, 1, 1, 0, 3867DEFUN ("x-gtk-debug", Fx_gtk_debug, Sx_gtk_debug, 1, 1, 0,
3869 doc: /* Toggle interactive GTK debugging. */) 3868 doc: /* SKIP: real doc in xfns.c. */)
3870 (Lisp_Object enable) 3869 (Lisp_Object enable)
3871{ 3870{
3872 gboolean enable_debug = !NILP (enable); 3871 gboolean enable_debug = !NILP (enable);
@@ -3877,7 +3876,6 @@ DEFUN ("x-gtk-debug", Fx_gtk_debug, Sx_gtk_debug, 1, 1, 0,
3877 3876
3878 return NILP (enable) ? Qnil : Qt; 3877 return NILP (enable) ? Qnil : Qt;
3879} 3878}
3880#endif /* GTK_CHECK_VERSION (3, 14, 0) */
3881 3879
3882/* ========================================================================== 3880/* ==========================================================================
3883 3881
@@ -3901,27 +3899,6 @@ syms_of_pgtkfns (void)
3901 doc: /* SKIP: real doc in xfns.c. */); 3899 doc: /* SKIP: real doc in xfns.c. */);
3902 Vx_cursor_fore_pixel = Qnil; 3900 Vx_cursor_fore_pixel = Qnil;
3903 3901
3904 DEFVAR_LISP ("pgtk-icon-type-alist", Vpgtk_icon_type_alist,
3905 doc: /* Alist of elements (REGEXP . IMAGE) for images of icons associated to frames.
3906If the title of a frame matches REGEXP, then IMAGE.tiff is
3907selected as the image of the icon representing the frame when it's
3908miniaturized. If an element is t, then Emacs tries to select an icon
3909based on the filetype of the visited file.
3910
3911The images have to be installed in a folder called English.lproj in the
3912Emacs folder. You have to restart Emacs after installing new icons.
3913
3914Example: Install an icon Gnus.tiff and execute the following code
3915
3916(setq pgtk-icon-type-alist
3917(append pgtk-icon-type-alist
3918\\='((\"^\\\\*\\\\(Group\\\\*$\\\\|Summary \\\\|Article\\\\*$\\\\)\"
3919. \"Gnus\"))))
3920
3921When you miniaturize a Group, Summary or Article frame, Gnus.tiff will
3922be used as the image of the icon representing the frame. */);
3923 Vpgtk_icon_type_alist = list1 (Qt);
3924
3925 Fprovide (intern_c_string ("gtk"), Qnil); 3902 Fprovide (intern_c_string ("gtk"), Qnil);
3926 3903
3927 DEFVAR_LISP ("gtk-version-string", Vgtk_version_string, 3904 DEFVAR_LISP ("gtk-version-string", Vgtk_version_string,
@@ -3977,10 +3954,7 @@ be used as the image of the icon representing the frame. */);
3977 defsubr (&Sx_open_connection); 3954 defsubr (&Sx_open_connection);
3978 defsubr (&Sx_close_connection); 3955 defsubr (&Sx_close_connection);
3979 defsubr (&Sx_display_list); 3956 defsubr (&Sx_display_list);
3980
3981#if GTK_CHECK_VERSION (3, 14, 0)
3982 defsubr (&Sx_gtk_debug); 3957 defsubr (&Sx_gtk_debug);
3983#endif
3984 3958
3985 defsubr (&Spgtk_hide_others); 3959 defsubr (&Spgtk_hide_others);
3986 defsubr (&Spgtk_hide_emacs); 3960 defsubr (&Spgtk_hide_emacs);