summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-02-04 19:19:33 +0100
committerStefano Karapetsas <[email protected]>2014-02-04 19:19:33 +0100
commitd6d686e6af7d95284e4a35b6d4d19a3209252777 (patch)
tree7da8220a6efa8ed98cfa1469e2522eddea53a34c
parente19f05fef95e6d84e1faf6b3a8b8bc45778ad1e0 (diff)
downloadmate-control-center-d6d686e6af7d95284e4a35b6d4d19a3209252777.tar.bz2
mate-control-center-d6d686e6af7d95284e4a35b6d4d19a3209252777.tar.xz
Check missing engine only for GTK2
-rw-r--r--capplets/common/mate-theme-info.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/capplets/common/mate-theme-info.c b/capplets/common/mate-theme-info.c
index 7d2d1b9d..c73a3d5d 100644
--- a/capplets/common/mate-theme-info.c
+++ b/capplets/common/mate-theme-info.c
@@ -1481,7 +1481,7 @@ static void mate_theme_info_find_all_helper(const gchar* key, GList* list, GList
}
}
-gchar* gtk_theme_info_missing_engine(const gchar* gtk_theme, gboolean nameOnly)
+gchar* gtk_theme_info_missing_engine(const gchar* gtk_theme, gboolean name_only)
{
gchar* engine = NULL;
gchar* gtkrc;
@@ -1514,7 +1514,7 @@ gchar* gtk_theme_info_missing_engine(const gchar* gtk_theme, gboolean nameOnly)
if (!found)
{
- if (nameOnly)
+ if (name_only)
{
engine = g_strdup(l->data);
g_free(full);
@@ -1714,6 +1714,7 @@ gboolean mate_theme_meta_info_validate(const MateThemeMetaInfo* info, GError** e
return FALSE;
}
+#if !GTK_CHECK_VERSION (3, 0, 0)
/* check for gtk theme engines */
engine = gtk_theme_info_missing_engine(info->gtk_theme_name, TRUE);
@@ -1725,6 +1726,7 @@ gboolean mate_theme_meta_info_validate(const MateThemeMetaInfo* info, GError** e
g_free (engine);
return FALSE;
}
+#endif
return TRUE;
}