diff options
| author | Chong Yidong | 2008-06-12 15:29:18 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-06-12 15:29:18 +0000 |
| commit | f82605c6b65ae393cfb9f7a7f0b173a6efd83e5c (patch) | |
| tree | 7d0dd1a59247dd42e17211c768d8b318d4815ec0 /src | |
| parent | 76c0de62ae8a503c383f792c55ca416c16bedf12 (diff) | |
| download | emacs-f82605c6b65ae393cfb9f7a7f0b173a6efd83e5c.tar.gz emacs-f82605c6b65ae393cfb9f7a7f0b173a6efd83e5c.zip | |
(Fx_select_font): Rename from x-font-dialog.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 15 |
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 | ||
| 5634 | DEFUN ("x-font-dialog", Fx_font_dialog, Sx_font_dialog, 0, 0, 0, | 5634 | DEFUN ("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. |
| 5636 | The font name is returned as a string. */) | 5636 | Return a GTK-style font string corresponding to the selection. |
| 5637 | () | 5637 | |
| 5638 | If 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 | ||