summaryrefslogtreecommitdiff
path: root/capplets/common
diff options
context:
space:
mode:
Diffstat (limited to 'capplets/common')
-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;
}