Correctly handle GLib.List, GLib.Error etc

* girepository/girparser.c: Accept both List (for
	compiling GLib) and GLib.List (what the scanner
	generates).
	* tests/ - Update.
	* tools/generate.c: Generate canonical form.

svn path=/trunk/; revision=522
This commit is contained in:
Colin Walters 2008-08-29 18:19:26 +00:00 committed by Philip Withnall
parent 97e04b2b5d
commit 56428ae349

View File

@ -107,7 +107,7 @@ write_type_info (const gchar *namespace,
else if (tag == 22)
{
type = g_type_info_get_param_type (info, 0);
g_fprintf (file, "GList");
g_fprintf (file, "GLib.List");
if (type)
{
g_fprintf (file, "<");
@ -119,7 +119,7 @@ write_type_info (const gchar *namespace,
else if (tag == 23)
{
type = g_type_info_get_param_type (info, 0);
g_fprintf (file, "GSList");
g_fprintf (file, "GLib.SList");
if (type)
{
g_fprintf (file, "<");
@ -131,7 +131,7 @@ write_type_info (const gchar *namespace,
else if (tag == 24)
{
type = g_type_info_get_param_type (info, 0);
g_fprintf (file, "GHashTable");
g_fprintf (file, "GLib.HashTable");
if (type)
{
g_fprintf (file, "<");
@ -148,7 +148,7 @@ write_type_info (const gchar *namespace,
{
gint n;
g_fprintf (file, "GError");
g_fprintf (file, "GLib.Error");
n = g_type_info_get_n_error_domains (info);
if (n > 0)
{