(syms_of_xfns): Only define x-select-font when both HAVE_FREETYPE and USE_GTK.
authorJason Rumney <jasonr@gnu.org>
Wed, 2 Jul 2008 16:23:35 +0000 (16:23 +0000)
committerJason Rumney <jasonr@gnu.org>
Wed, 2 Jul 2008 16:23:35 +0000 (16:23 +0000)
src/ChangeLog
src/xfns.c

index 4c3faea..c26abef 100644 (file)
@@ -1,3 +1,11 @@
+2008-07-02  Jason Rumney  <jasonr@gnu.org>
+
+        * xfns.c (syms_of_xfns): Only define x-select-font when both
+        HAVE_FREETYPE and USE_GTK
+
+        * xdisp.c (next_element_from_display_vector): Move assignment out
+        of if statement.
+
 2008-07-02  Toru Tsuneyoshi  <t_tuneyosi@hotmail.com>
 
         * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
index d32442f..07a343c 100644 (file)
@@ -6071,7 +6071,7 @@ the tool bar buttons.  */);
   defsubr (&Sx_file_dialog);
 #endif
 
-#ifdef USE_GTK
+#if defined (USE_GTK) && defined (HAVE_FREETYPE)
   defsubr (&Sx_select_font);
 #endif
 }