diff options
author | Patryk Zawadzki <patrys@pld-linux.org> | 2009-06-21 07:46:36 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-06-22 13:27:36 +0800 |
commit | 071f1844a8f47e4d67ad3c752441a3d71d9e18e2 (patch) | |
tree | 143c16b9a191989282907b88106c2489fba90434 /libempathy-gtk/empathy-plist.h | |
parent | 2031cecd62e0b846c84ab7b8126c4fb556f99bd6 (diff) | |
download | gsoc2013-empathy-071f1844a8f47e4d67ad3c752441a3d71d9e18e2.tar gsoc2013-empathy-071f1844a8f47e4d67ad3c752441a3d71d9e18e2.tar.gz gsoc2013-empathy-071f1844a8f47e4d67ad3c752441a3d71d9e18e2.tar.bz2 gsoc2013-empathy-071f1844a8f47e4d67ad3c752441a3d71d9e18e2.tar.lz gsoc2013-empathy-071f1844a8f47e4d67ad3c752441a3d71d9e18e2.tar.xz gsoc2013-empathy-071f1844a8f47e4d67ad3c752441a3d71d9e18e2.tar.zst gsoc2013-empathy-071f1844a8f47e4d67ad3c752441a3d71d9e18e2.zip |
Add a plist parser and set font family, size and default variant. Fixes bug #586387.
Diffstat (limited to 'libempathy-gtk/empathy-plist.h')
-rw-r--r-- | libempathy-gtk/empathy-plist.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-plist.h b/libempathy-gtk/empathy-plist.h new file mode 100644 index 000000000..0f7dfe928 --- /dev/null +++ b/libempathy-gtk/empathy-plist.h @@ -0,0 +1,35 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * Copyright (C) 2008 Christophe Fergeau <teuf@gnome.org> + * Based on itdb_plist parser from the gtkpod project. + * + * The code contained in this file is free software; you can redistribute + * it and/or modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either version + * 2.1 of the License, or (at your option) any later version. + * + * This file 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this code; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA + */ + +#ifndef __EMPATHY_PLIST_H__ +#define __EMPATHY_PLIST_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +GValue * empathy_plist_parse_from_file (const char *filename); +GValue * empathy_plist_parse_from_memory (const char *data, gsize len); +gboolean empathy_plist_get_int (GValue *data, const gchar *key, gint *value); +gboolean empathy_plist_get_string (GValue *data, const gchar *key, gchar **value); + +G_END_DECLS + +#endif |