aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/xfns.c b/src/xfns.c
index df350a36e93..2dbbe80e097 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -5631,12 +5631,15 @@ directories. */)
5631 5631
5632#ifdef HAVE_FREETYPE 5632#ifdef HAVE_FREETYPE
5633 5633
5634DEFUN ("x-font-dialog", Fx_font_dialog, Sx_font_dialog, 0, 0, 0, 5634DEFUN ("x-select-font", Fx_select_font, Sx_select_font, 0, 2, 0,
5635 doc: /* Read a font name using a font selection dialog. 5635 doc: /* Read a font name using a GTK font selection dialog.
5636The font name is returned as a string. */) 5636Return a GTK-style font string corresponding to the selection.
5637 () 5637
5638If FRAME is omitted or nil, it defaults to the selected frame. */)
5639 (frame, ignored)
5640 Lisp_Object frame, ignored;
5638{ 5641{
5639 FRAME_PTR f = SELECTED_FRAME (); 5642 FRAME_PTR f = check_x_frame (frame);
5640 char *fontname; 5643 char *fontname;
5641 Lisp_Object font = Qnil; 5644 Lisp_Object font = Qnil;
5642 int count = SPECPDL_INDEX (); 5645 int count = SPECPDL_INDEX ();
@@ -6036,7 +6039,7 @@ the tool bar buttons. */);
6036#endif 6039#endif
6037 6040
6038#ifdef USE_GTK 6041#ifdef USE_GTK
6039 defsubr (&Sx_font_dialog); 6042 defsubr (&Sx_select_font);
6040#endif 6043#endif
6041} 6044}
6042 6045