[libgda] Fixed GType creation for reuseable objects
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Fixed GType creation for reuseable objects
- Date: Sun, 21 Aug 2011 19:34:34 +0000 (UTC)
commit 22738887a83dabb25835ec1d0175ce0a6d94b54c
Author: Vivien Malerba <malerba gnome-db org>
Date: Sun Aug 21 16:59:31 2011 +0200
Fixed GType creation for reuseable objects
providers/reuseable/mysql/gda-mysql-parser.c | 2 ++
providers/reuseable/postgres/gda-postgres-parser.c | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/providers/reuseable/mysql/gda-mysql-parser.c b/providers/reuseable/mysql/gda-mysql-parser.c
index c24a6d1..c93eb98 100644
--- a/providers/reuseable/mysql/gda-mysql-parser.c
+++ b/providers/reuseable/mysql/gda-mysql-parser.c
@@ -50,6 +50,8 @@ gda_mysql_parser_get_type (void)
g_static_mutex_lock (®istering);
if (type == 0)
+ type = g_type_from_name ("GdaMysqlParser");
+ if (type == 0)
type = g_type_register_static (GDA_TYPE_SQL_PARSER, "GdaMysqlParser", &info, 0);
g_static_mutex_unlock (®istering);
}
diff --git a/providers/reuseable/postgres/gda-postgres-parser.c b/providers/reuseable/postgres/gda-postgres-parser.c
index b843cf9..24bf504 100644
--- a/providers/reuseable/postgres/gda-postgres-parser.c
+++ b/providers/reuseable/postgres/gda-postgres-parser.c
@@ -50,6 +50,8 @@ gda_postgres_parser_get_type (void)
g_static_mutex_lock (®istering);
if (type == 0)
+ type = g_type_from_name ("GdaPostgresParser");
+ if (type == 0)
type = g_type_register_static (GDA_TYPE_SQL_PARSER, "GdaPostgresParser", &info, 0);
g_static_mutex_unlock (®istering);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]