X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkmodules.c;h=5a15925993be61c7849cf524090b0515b43c4174;hb=fa4878979e0a72890ca577a210ccd7cf6291dbf0;hp=f94c0d198f27c540f5def5b616abd87647b3e237;hpb=5c4f2ef0c1e658827091aadf4fc3c4d5f5964785;p=~andy%2Fgtk diff --git a/gtk/gtkmodules.c b/gtk/gtkmodules.c index f94c0d198..5a1592599 100644 --- a/gtk/gtkmodules.c +++ b/gtk/gtkmodules.c @@ -13,9 +13,7 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * License along with this library. If not, see . */ #include "config.h" @@ -23,7 +21,6 @@ #include #include "gtkmodules.h" -#include "gtkmodulesprivate.h" #include "gtksettings.h" #include "gtkdebug.h" #include "gtkprivate.h" @@ -56,8 +53,6 @@ get_module_path (void) { const gchar *module_path_env; const gchar *exe_prefix; - const gchar *home_dir; - gchar *home_gtk_dir = NULL; gchar *module_path; gchar *default_dir; static gchar **result = NULL; @@ -65,10 +60,6 @@ get_module_path (void) if (result) return result; - home_dir = g_get_home_dir(); - if (home_dir) - home_gtk_dir = g_build_filename (home_dir, ".gtk-3.0", NULL); - module_path_env = g_getenv ("GTK_PATH"); exe_prefix = g_getenv ("GTK_EXE_PREFIX"); @@ -77,20 +68,13 @@ get_module_path (void) else default_dir = g_build_filename (_gtk_get_libdir (), "gtk-3.0", NULL); - if (module_path_env && home_gtk_dir) - module_path = g_build_path (G_SEARCHPATH_SEPARATOR_S, - module_path_env, home_gtk_dir, default_dir, NULL); - else if (module_path_env) + if (module_path_env) module_path = g_build_path (G_SEARCHPATH_SEPARATOR_S, module_path_env, default_dir, NULL); - else if (home_gtk_dir) - module_path = g_build_path (G_SEARCHPATH_SEPARATOR_S, - home_gtk_dir, default_dir, NULL); else module_path = g_build_path (G_SEARCHPATH_SEPARATOR_S, default_dir, NULL); - g_free (home_gtk_dir); g_free (default_dir); result = pango_split_file_list (module_path); @@ -263,10 +247,11 @@ static gboolean module_is_blacklisted (const gchar *name, gboolean verbose) { - if (g_str_equal (name, "gail")) + if (g_str_equal (name, "gail") || + g_str_equal (name, "atk-bridge")) { if (verbose) - g_message ("Not loading module \"gail\": The functionality is provided by GTK natively. Please try to not load it."); + g_message ("Not loading module \"%s\": The functionality is provided by GTK natively. Please try to not load it.", name); return TRUE; }