[gnome-control-center] font-viewer: Fix a compile-time warning



commit a4eb4f1ba3176f9ed184724363350875c6134056
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Sep 20 18:24:14 2010 +0100

    font-viewer: Fix a compile-time warning
    
    Due to an undeclared function.

 font-viewer/Makefile.am    |    4 ++--
 font-viewer/ftstream-vfs.c |    2 ++
 font-viewer/ftstream-vfs.h |   28 ++++++++++++++++++++++++++++
 3 files changed, 32 insertions(+), 2 deletions(-)
---
diff --git a/font-viewer/Makefile.am b/font-viewer/Makefile.am
index a71de6c..ca65a27 100644
--- a/font-viewer/Makefile.am
+++ b/font-viewer/Makefile.am
@@ -5,10 +5,10 @@ INCLUDES = $(FONT_VIEWER_CFLAGS) $(GNOMECC_CAPPLETS_CFLAGS) -DDIRECTORY_DIR=\"$(
 bin_PROGRAMS = gnome-thumbnail-font gnome-font-viewer
 
 gnome_thumbnail_font_LDADD = $(GNOMECC_CAPPLETS_LIBS) $(FONT_VIEWER_LIBS)
-gnome_thumbnail_font_SOURCES = ftstream-vfs.c font-thumbnailer.c totem-resources.c totem-resources.h
+gnome_thumbnail_font_SOURCES = ftstream-vfs.c ftstream-vfs.h font-thumbnailer.c totem-resources.c totem-resources.h
 
 gnome_font_viewer_LDADD = $(GNOMECC_CAPPLETS_LIBS) $(FONT_VIEWER_LIBS)
-gnome_font_viewer_SOURCES = ftstream-vfs.c font-view.c
+gnome_font_viewer_SOURCES = ftstream-vfs.c ftstream-vfs.h font-view.c
 
 schemasdir = $(GCONF_SCHEMA_FILE_DIR)
 schemas_DATA = fontilus.schemas
diff --git a/font-viewer/ftstream-vfs.c b/font-viewer/ftstream-vfs.c
index 4ffe823..dbfa7ec 100644
--- a/font-viewer/ftstream-vfs.c
+++ b/font-viewer/ftstream-vfs.c
@@ -27,6 +27,8 @@
 
 #include <gio/gio.h>
 
+#include "ftstream-vfs.h"
+
 static unsigned long
 vfs_stream_read(FT_Stream stream,
 		unsigned long offset,
diff --git a/font-viewer/ftstream-vfs.h b/font-viewer/ftstream-vfs.h
new file mode 100644
index 0000000..79fe10d
--- /dev/null
+++ b/font-viewer/ftstream-vfs.h
@@ -0,0 +1,28 @@
+/* -*- mode: C; c-basic-offset: 4 -*-
+ * fontilus - a collection of font utilities for GNOME
+ * Copyright (C) 2002-2003  James Henstridge <james daa com au>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+#include <ft2build.h>
+#include FT_FREETYPE_H
+
+/* load a typeface from a URI */
+FT_Error FT_New_Face_From_URI(FT_Library           library,
+			      const gchar*         uri,
+			      FT_Long              face_index,
+			      FT_Face             *aface);
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]