summaryrefslogtreecommitdiff
path: root/gtk/queryimmodules.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-09-11 20:24:40 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-09-11 20:24:40 +0000
commit69915aa7104beebdcfbc6d42592481843069c403 (patch)
tree933c4c9172a34de05399eb080a541c0bd6254979 /gtk/queryimmodules.c
parent13ff590365e84e5470c72bf42bab98177fbc167f (diff)
downloadgtk+-69915aa7104beebdcfbc6d42592481843069c403.tar.gz
Implement a search path for GTK+ modules.
Sat Sep 8 16:19:02 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkmain.c: Implement a search path for GTK+ modules. * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules in gtk-2.0/<type>/major.minor.(micro-binary_age) rather than in gtk-2.0/major.minor.micro/<type>/. This works better for a search path for modules. * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add gtk_binary_version variable holding major.minor.(micro-binary_age). * modules/input/Makefile.am (moduledir): Fix installation directory to match change in lookup location. * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll suffixes. Needs to be handled in g_module_build_path(). * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where appropriate.
Diffstat (limited to 'gtk/queryimmodules.c')
-rw-r--r--gtk/queryimmodules.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/queryimmodules.c b/gtk/queryimmodules.c
index ff4987b2ea..d60b3661e5 100644
--- a/gtk/queryimmodules.c
+++ b/gtk/queryimmodules.c
@@ -65,10 +65,10 @@ query_module (const char *dir, const char *name)
gchar *path;
gboolean error = FALSE;
- if (name[0] == G_DIR_SEPARATOR)
+ if (g_path_is_absolute (name))
path = g_strdup (name);
else
- path = g_strconcat (dir, G_DIR_SEPARATOR_S, name, NULL);
+ path = g_build_filename (dir, name, NULL);
module = g_module_open (path, 0);