Created
December 17, 2012 23:17
-
-
Save llamadonica/4323372 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright © 2010 Codethink Limited | |
* Copyright © 2011 Canonical Limited | |
* | |
* This library 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 of the licence, or (at your option) any later version. | |
* | |
* This library 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 library; if not, write to the | |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
* Boston, MA 02111-1307, USA. | |
*/ | |
// snip | |
dirs = g_get_system_data_dirs (); | |
for (i = 0; dirs[i]; i++); | |
while (i--) | |
{ | |
gchar *filename; | |
GvdbTable *table; | |
filename = g_build_filename (dirs[i], "glib-2.0", "schemas", "gschemas.compiled", NULL); | |
table = gvdb_table_new (filename, TRUE, NULL); | |
if (table != NULL) | |
prepend_schema_table (table); | |
g_free (filename); | |
} | |
//snip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment