From 162dbd9125538c310cbc91cc4bf19458fb79c47f Mon Sep 17 00:00:00 2001 From: Davyd Madeley Date: Sun, 5 Jul 2009 17:54:21 +0100 Subject: Don't check for Adium themes if Webkit isn't available This was breaking compile with -Werror --- libempathy-gtk/empathy-theme-manager.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libempathy-gtk/empathy-theme-manager.c b/libempathy-gtk/empathy-theme-manager.c index 7a6d57ba5..fea2eca51 100644 --- a/libempathy-gtk/empathy-theme-manager.c +++ b/libempathy-gtk/empathy-theme-manager.c @@ -536,6 +536,7 @@ empathy_theme_manager_get_themes (void) return themes; } +#ifdef HAVE_WEBKIT static void find_themes (GList **list, const gchar *dirpath) { @@ -566,10 +567,12 @@ find_themes (GList **list, const gchar *dirpath) g_error_free (error); } } +#endif /* HAVE_WEBKIT */ GList * empathy_theme_manager_get_adium_themes (void) { +#ifdef HAVE_WEBKIT GList *themes = NULL; gchar *userpath = NULL; const gchar *const *paths = NULL; @@ -588,4 +591,7 @@ empathy_theme_manager_get_adium_themes (void) } return themes; +#else + return NULL; +#endif /* HAVE_WEBKIT */ } -- cgit v1.2.3