2012-10-18 09:09:10 +00:00
|
|
|
diff --git a/src/gui/styles/qgtkstyle_p.cpp b/src/gui/styles/qgtkstyle_p.cpp
|
|
|
|
index 3b128e6..39434db 100644
|
|
|
|
--- a/src/gui/styles/qgtkstyle_p.cpp
|
|
|
|
+++ b/src/gui/styles/qgtkstyle_p.cpp
|
|
|
|
@@ -312,7 +312,7 @@ GtkStyle* QGtkStylePrivate::gtkStyle(const QHashableLatin1Literal &path)
|
2011-12-24 21:52:08 +00:00
|
|
|
void QGtkStylePrivate::resolveGtk() const
|
|
|
|
{
|
|
|
|
// enforce the "0" suffix, so we'll open libgtk-x11-2.0.so.0
|
|
|
|
- QLibrary libgtk(QLS("gtk-x11-2.0"), 0, 0);
|
|
|
|
+ QLibrary libgtk(QLS("@gtk@/lib/libgtk-x11-2.0"), 0, 0);
|
2012-10-18 09:09:10 +00:00
|
|
|
libgtk.setLoadHints(QLibrary::ImprovedSearchHeuristics);
|
2011-12-24 21:52:08 +00:00
|
|
|
|
|
|
|
gtk_init = (Ptr_gtk_init)libgtk.resolve("gtk_init");
|
2012-10-18 09:09:10 +00:00
|
|
|
@@ -435,8 +435,8 @@ void QGtkStylePrivate::resolveGtk() const
|
2011-12-24 21:52:08 +00:00
|
|
|
pango_font_description_get_family = (Ptr_pango_font_description_get_family)libgtk.resolve("pango_font_description_get_family");
|
|
|
|
pango_font_description_get_style = (Ptr_pango_font_description_get_style)libgtk.resolve("pango_font_description_get_style");
|
|
|
|
|
|
|
|
- gnome_icon_lookup_sync = (Ptr_gnome_icon_lookup_sync)QLibrary::resolve(QLS("gnomeui-2"), 0, "gnome_icon_lookup_sync");
|
|
|
|
- gnome_vfs_init= (Ptr_gnome_vfs_init)QLibrary::resolve(QLS("gnomevfs-2"), 0, "gnome_vfs_init");
|
|
|
|
+ gnome_icon_lookup_sync = (Ptr_gnome_icon_lookup_sync)QLibrary::resolve(QLS("@libgnomeui@/lib/libgnomeui-2"), 0, "gnome_icon_lookup_sync");
|
|
|
|
+ gnome_vfs_init= (Ptr_gnome_vfs_init)QLibrary::resolve(QLS("@gnome_vfs@/lib/libgnomevfs-2"), 0, "gnome_vfs_init");
|
|
|
|
}
|
|
|
|
|
|
|
|
/* \internal
|
2012-10-18 09:09:10 +00:00
|
|
|
@@ -608,9 +608,9 @@ void QGtkStylePrivate::cleanupGtkWidgets()
|
2011-12-24 21:52:08 +00:00
|
|
|
static bool resolveGConf()
|
|
|
|
{
|
|
|
|
if (!QGtkStylePrivate::gconf_client_get_default) {
|
|
|
|
- QGtkStylePrivate::gconf_client_get_default = (Ptr_gconf_client_get_default)QLibrary::resolve(QLS("gconf-2"), 4, "gconf_client_get_default");
|
|
|
|
- QGtkStylePrivate::gconf_client_get_string = (Ptr_gconf_client_get_string)QLibrary::resolve(QLS("gconf-2"), 4, "gconf_client_get_string");
|
|
|
|
- QGtkStylePrivate::gconf_client_get_bool = (Ptr_gconf_client_get_bool)QLibrary::resolve(QLS("gconf-2"), 4, "gconf_client_get_bool");
|
|
|
|
+ QGtkStylePrivate::gconf_client_get_default = (Ptr_gconf_client_get_default)QLibrary::resolve(QLS("@gconf@/lib/libgconf-2"), 4, "gconf_client_get_default");
|
|
|
|
+ QGtkStylePrivate::gconf_client_get_string = (Ptr_gconf_client_get_string)QLibrary::resolve(QLS("@gconf@/lib/libgconf-2"), 4, "gconf_client_get_string");
|
|
|
|
+ QGtkStylePrivate::gconf_client_get_bool = (Ptr_gconf_client_get_bool)QLibrary::resolve(QLS("@gconf@/lib/libgconf-2"), 4, "gconf_client_get_bool");
|
|
|
|
}
|
|
|
|
return (QGtkStylePrivate::gconf_client_get_default !=0);
|
|
|
|
}
|