]> git.0d.be Git - empathy.git/commitdiff
Don't check for Adium themes if Webkit isn't available
authorDavyd Madeley <davyd@madeley.id.au>
Sun, 5 Jul 2009 16:54:21 +0000 (17:54 +0100)
committerDavyd Madeley <davyd@madeley.id.au>
Sun, 5 Jul 2009 16:54:21 +0000 (17:54 +0100)
This was breaking compile with -Werror

libempathy-gtk/empathy-theme-manager.c

index 7a6d57ba5b83f5ae778389178849939442cb1fab..fea2eca51d09a7caca37403abdd1c5e45a94b0f8 100644 (file)
@@ -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 */
 }