diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-09-24 03:51:49 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-09-24 03:51:49 +0800 |
commit | 19ebbdaaaae3a316b7077bb60b59ffec69f0c238 (patch) | |
tree | acbe46db6ea5038c0bf88378834027c62dee0501 /lib | |
parent | f2d6cd25da72ef28a94acb0983c5eb55dfae5e3a (diff) | |
download | gsoc2013-epiphany-19ebbdaaaae3a316b7077bb60b59ffec69f0c238.tar gsoc2013-epiphany-19ebbdaaaae3a316b7077bb60b59ffec69f0c238.tar.gz gsoc2013-epiphany-19ebbdaaaae3a316b7077bb60b59ffec69f0c238.tar.bz2 gsoc2013-epiphany-19ebbdaaaae3a316b7077bb60b59ffec69f0c238.tar.lz gsoc2013-epiphany-19ebbdaaaae3a316b7077bb60b59ffec69f0c238.tar.xz gsoc2013-epiphany-19ebbdaaaae3a316b7077bb60b59ffec69f0c238.tar.zst gsoc2013-epiphany-19ebbdaaaae3a316b7077bb60b59ffec69f0c238.zip |
Support "Library" argument.
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ephy-shlib-loader.c | 8 |
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"); } |