[empathy] Don't check for Adium themes if Webkit isn't available
- From: Davyd Madeley <davyd src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Don't check for Adium themes if Webkit isn't available
- Date: Sun, 5 Jul 2009 16:56:10 +0000 (UTC)
commit 162dbd9125538c310cbc91cc4bf19458fb79c47f
Author: Davyd Madeley <davyd madeley id au>
Date: Sun Jul 5 17:54:21 2009 +0100
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 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-theme-manager.c b/libempathy-gtk/empathy-theme-manager.c
index 7a6d57b..fea2eca 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 */
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]