From dc7650d7fc6ab26dc3a15964a65e59dd184d75b9 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Thu, 28 Jun 2012 16:28:36 +0200 Subject: reverted patch to avoid missing theme warning - now debian/ubuntu completed multiarch transition, so gtk engines are only in 1 folder - this patch cause a 64bit warning on opensuse --- capplets/common/mate-theme-info.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/capplets/common/mate-theme-info.c b/capplets/common/mate-theme-info.c index 39d721a2..b246867d 100644 --- a/capplets/common/mate-theme-info.c +++ b/capplets/common/mate-theme-info.c @@ -1499,28 +1499,6 @@ gchar* gtk_theme_info_missing_engine(const gchar* gtk_theme, gboolean nameOnly) for (l = engines; l; l = l->next) { - #if 1 // set to 0 if you can not compile with the follow code - GtkThemeEngine* a = gtk_theme_engine_get((const gchar*) l->data); - - if (!a) - { - if (nameOnly) - { - engine = g_strdup(l->data); - } - else - { - // esto necesita más trabajo, pero creo que debian no se - // salva ni con el anterior fix. - // GTK_ENGINE_DIR aún sigue conteniendo un path erroneo. - engine = g_module_build_path(GTK_ENGINE_DIR, l->data); - } - - break; - } - - #else - /* This code do not work on distros with more of one gtk theme * engine path. Like debian. But yes on others like Archlinux. * Example, debian use: @@ -1550,7 +1528,6 @@ gchar* gtk_theme_info_missing_engine(const gchar* gtk_theme, gboolean nameOnly) } g_free(full); - #endif } g_slist_foreach(engines, (GFunc) g_free, NULL); -- cgit v1.2.1