diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/ephy-shlib-loader.c | 8 |
2 files changed, 14 insertions, 1 deletions
@@ -1,5 +1,12 @@ 2005-09-23 Christian Persch <chpe@cvs.gnome.org> + * lib/ephy-shlib-loader.c: (impl_get_object) + (ephy_shlib_loader_class_init): + + Support "Library" argument. + +2005-09-23 Christian Persch <chpe@cvs.gnome.org> + * data/Makefile.am: R data/epiphany-extension.xsd: * src/ephy-extensions-manager.c: diff --git a/lib/ephy-shlib-loader.c b/lib/ephy-shlib-loader.c index 3cf731dcb..2b0b9b6d2 100644 --- a/lib/ephy-shlib-loader.c +++ b/lib/ephy-shlib-loader.c @@ -36,6 +36,7 @@ typedef struct GObject *object; } LoaderData; +static GQuark Library_quark = 0; static GQuark library_quark = 0; #define EPHY_SHLIB_LOADER_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_SHLIB_LOADER, EphyShlibLoaderPrivate)) @@ -149,7 +150,11 @@ impl_get_object (EphyLoader *eloader, LoaderData *data = NULL; const char *library; - library = g_datalist_id_get_data (attributes, library_quark); + library = g_datalist_id_get_data (attributes, Library_quark); + if (library == NULL) + { + library = g_datalist_id_get_data (attributes, library_quark); + } if (library == NULL) { g_warning ("NULL library name!\n"); @@ -237,5 +242,6 @@ ephy_shlib_loader_class_init (EphyShlibLoaderClass *klass) g_type_class_add_private (object_class, sizeof (EphyShlibLoaderPrivate)); + Library_quark = g_quark_from_string ("Library"); library_quark = g_quark_from_string ("library"); } |