Use G_MODULE_BIND_LAZY when opening modules.

2005-12-16  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilesystem.c (gtk_file_system_module_load):
	* gtk/gtkimmodule.c (gtk_im_module_load):
	* gtk/gtkthemes.c (gtk_theme_engine_load):
	* gtk/gtkmodules.c (find_module): Use G_MODULE_BIND_LAZY when
	opening modules.
This commit is contained in:
Matthias Clasen 2005-12-16 19:06:09 +00:00 committed by Matthias Clasen
parent bc190f2a70
commit 0a876523eb
8 changed files with 22 additions and 5 deletions

View File

@ -1,5 +1,11 @@
2005-12-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystem.c (gtk_file_system_module_load):
* gtk/gtkimmodule.c (gtk_im_module_load):
* gtk/gtkthemes.c (gtk_theme_engine_load):
* gtk/gtkmodules.c (find_module): Use G_MODULE_BIND_LAZY when
opening modules.
* gtk/gtksettings.[hc]: Rework the way the color scheme setting
is inherited. Now the overriding is done on a per-color basis,
rather than for the setting as a whole. This has the effect

View File

@ -1,5 +1,11 @@
2005-12-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystem.c (gtk_file_system_module_load):
* gtk/gtkimmodule.c (gtk_im_module_load):
* gtk/gtkthemes.c (gtk_theme_engine_load):
* gtk/gtkmodules.c (find_module): Use G_MODULE_BIND_LAZY when
opening modules.
* gtk/gtksettings.[hc]: Rework the way the color scheme setting
is inherited. Now the overriding is done on a per-color basis,
rather than for the setting as a whole. This has the effect

View File

@ -1,3 +1,8 @@
2005-12-16 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-io.c (_gdk_pixbuf_load_module_unlocked): Use
G_MODULE_BIND_LOCAL when opening modules.
2005-12-14 Michael Natterer <mitch@imendio.com>
* io-jpeg.c (gdk_pixbuf__jpeg_image_load_lines): new utility

View File

@ -454,7 +454,7 @@ _gdk_pixbuf_load_module_unlocked (GdkPixbufModule *image_module,
g_return_val_if_fail (image_module->module == NULL, FALSE);
path = image_module->module_path;
module = g_module_open (path, G_MODULE_BIND_LAZY);
module = g_module_open (path, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL);
if (!module) {
g_set_error (error,

View File

@ -1075,7 +1075,7 @@ gtk_file_system_module_load (GTypeModule *module)
{
GtkFileSystemModule *fs_module = GTK_FILE_SYSTEM_MODULE (module);
fs_module->library = g_module_open (fs_module->path, G_MODULE_BIND_LAZY);
fs_module->library = g_module_open (fs_module->path, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL);
if (!fs_module->library)
{
g_warning (g_module_error());

View File

@ -95,7 +95,7 @@ gtk_im_module_load (GTypeModule *module)
{
GtkIMModule *im_module = GTK_IM_MODULE (module);
im_module->library = g_module_open (im_module->path, G_MODULE_BIND_LAZY);
im_module->library = g_module_open (im_module->path, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL);
if (!im_module->library)
{
g_warning (g_module_error());

View File

@ -236,7 +236,7 @@ find_module (const gchar *name)
module_name = g_module_build_path (NULL, name);
}
module = g_module_open (module_name, G_MODULE_BIND_LAZY);
module = g_module_open (module_name, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL);
g_free(module_name);
return module;

View File

@ -77,7 +77,7 @@ gtk_theme_engine_load (GTypeModule *module)
GTK_NOTE (MISC, g_message ("Loading Theme %s\n", engine_path));
engine->library = g_module_open (engine_path, G_MODULE_BIND_LAZY);
engine->library = g_module_open (engine_path, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL);
g_free(engine_path);
if (!engine->library)
{