Commit 0a876523 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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.
parent bc190f2a
2005-12-16 Matthias Clasen <mclasen@redhat.com> 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 * gtk/gtksettings.[hc]: Rework the way the color scheme setting
is inherited. Now the overriding is done on a per-color basis, is inherited. Now the overriding is done on a per-color basis,
rather than for the setting as a whole. This has the effect rather than for the setting as a whole. This has the effect
......
2005-12-16 Matthias Clasen <mclasen@redhat.com> 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 * gtk/gtksettings.[hc]: Rework the way the color scheme setting
is inherited. Now the overriding is done on a per-color basis, is inherited. Now the overriding is done on a per-color basis,
rather than for the setting as a whole. This has the effect rather than for the setting as a whole. This has the effect
......
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> 2005-12-14 Michael Natterer <mitch@imendio.com>
* io-jpeg.c (gdk_pixbuf__jpeg_image_load_lines): new utility * io-jpeg.c (gdk_pixbuf__jpeg_image_load_lines): new utility
......
...@@ -454,7 +454,7 @@ _gdk_pixbuf_load_module_unlocked (GdkPixbufModule *image_module, ...@@ -454,7 +454,7 @@ _gdk_pixbuf_load_module_unlocked (GdkPixbufModule *image_module,
g_return_val_if_fail (image_module->module == NULL, FALSE); g_return_val_if_fail (image_module->module == NULL, FALSE);
path = image_module->module_path; 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) { if (!module) {
g_set_error (error, g_set_error (error,
......
...@@ -1075,7 +1075,7 @@ gtk_file_system_module_load (GTypeModule *module) ...@@ -1075,7 +1075,7 @@ gtk_file_system_module_load (GTypeModule *module)
{ {
GtkFileSystemModule *fs_module = GTK_FILE_SYSTEM_MODULE (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) if (!fs_module->library)
{ {
g_warning (g_module_error()); g_warning (g_module_error());
......
...@@ -95,7 +95,7 @@ gtk_im_module_load (GTypeModule *module) ...@@ -95,7 +95,7 @@ gtk_im_module_load (GTypeModule *module)
{ {
GtkIMModule *im_module = GTK_IM_MODULE (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) if (!im_module->library)
{ {
g_warning (g_module_error()); g_warning (g_module_error());
......
...@@ -236,7 +236,7 @@ find_module (const gchar *name) ...@@ -236,7 +236,7 @@ find_module (const gchar *name)
module_name = g_module_build_path (NULL, 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); g_free(module_name);
return module; return module;
......
...@@ -77,7 +77,7 @@ gtk_theme_engine_load (GTypeModule *module) ...@@ -77,7 +77,7 @@ gtk_theme_engine_load (GTypeModule *module)
GTK_NOTE (MISC, g_message ("Loading Theme %s\n", engine_path)); 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); g_free(engine_path);
if (!engine->library) if (!engine->library)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment