aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-shlib-loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ephy-shlib-loader.c')
-rw-r--r--lib/ephy-shlib-loader.c8
1 files changed, 7 insertions, 1 deletions
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");
}