]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fx_select_font): Rename from x-font-dialog.
authorChong Yidong <cyd@stupidchicken.com>
Thu, 12 Jun 2008 15:29:18 +0000 (15:29 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 12 Jun 2008 15:29:18 +0000 (15:29 +0000)
src/xfns.c

index df350a36e93b7ccdfdcd5eb131e419df74c12346..2dbbe80e097a51c9d23daf61457fefb86bee7d90 100644 (file)
@@ -5631,12 +5631,15 @@ directories.  */)
 
 #ifdef HAVE_FREETYPE
 
-DEFUN ("x-font-dialog", Fx_font_dialog, Sx_font_dialog, 0, 0, 0,
-       doc: /* Read a font name using a font selection dialog.
-The font name is returned as a string.  */)
-  ()
+DEFUN ("x-select-font", Fx_select_font, Sx_select_font, 0, 2, 0,
+       doc: /* Read a font name using a GTK font selection dialog.
+Return a GTK-style font string corresponding to the selection.
+
+If FRAME is omitted or nil, it defaults to the selected frame. */)
+  (frame, ignored)
+     Lisp_Object frame, ignored;
 {
-  FRAME_PTR f = SELECTED_FRAME ();
+  FRAME_PTR f = check_x_frame (frame);
   char *fontname;
   Lisp_Object font = Qnil;
   int count = SPECPDL_INDEX ();
@@ -6036,7 +6039,7 @@ the tool bar buttons.  */);
 #endif
 
 #ifdef USE_GTK
-  defsubr (&Sx_font_dialog);
+  defsubr (&Sx_select_font);
 #endif
 }