font-viewer: Fix a compile-time warning
Due to an undeclared function.
This commit is contained in:
parent
1bac073929
commit
a4eb4f1ba3
3 changed files with 32 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
|
||||
#include <gio/gio.h>
|
||||
|
||||
#include "ftstream-vfs.h"
|
||||
|
||||
static unsigned long
|
||||
vfs_stream_read(FT_Stream stream,
|
||||
unsigned long offset,
|
||||
|
|
28
font-viewer/ftstream-vfs.h
Normal file
28
font-viewer/ftstream-vfs.h
Normal file
|
@ -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);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue