aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-preferences.c
diff options
context:
space:
mode:
authorMarc-Antoine Perennou <Marc-Antoine@Perennou.com>2011-06-23 03:08:48 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-06-23 16:14:55 +0800
commit5e4bdbca5400a13e65e8b821562e3f8538516272 (patch)
treef7efebbf11d080150ef9a32c05de1adf2b2e43f1 /src/empathy-preferences.c
parent6b79054213ba3dd70298aa75e17c234aef2f09af (diff)
downloadgsoc2013-empathy-5e4bdbca5400a13e65e8b821562e3f8538516272.tar
gsoc2013-empathy-5e4bdbca5400a13e65e8b821562e3f8538516272.tar.gz
gsoc2013-empathy-5e4bdbca5400a13e65e8b821562e3f8538516272.tar.bz2
gsoc2013-empathy-5e4bdbca5400a13e65e8b821562e3f8538516272.tar.lz
gsoc2013-empathy-5e4bdbca5400a13e65e8b821562e3f8538516272.tar.xz
gsoc2013-empathy-5e4bdbca5400a13e65e8b821562e3f8538516272.tar.zst
gsoc2013-empathy-5e4bdbca5400a13e65e8b821562e3f8538516272.zip
Don't try to access empathy_adium_info_* stuff when webkit support is disabled
empathy-preferences.c:(.text+0x5dc): undefined reference to `empathy_adium_info_get_available_variants' empathy-preferences.c:(.text+0x5e9): undefined reference to `empathy_adium_info_get_default_variant'
Diffstat (limited to 'src/empathy-preferences.c')
-rw-r--r--src/empathy-preferences.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/empathy-preferences.c b/src/empathy-preferences.c
index 9aa21e8b0..9db4739d6 100644
--- a/src/empathy-preferences.c
+++ b/src/empathy-preferences.c
@@ -828,14 +828,17 @@ preferences_theme_variants_fill (EmpathyPreferences *preferences,
EmpathyPreferencesPriv *priv = GET_PRIV (preferences);
GtkTreeModel *model;
GtkListStore *store;
+#ifdef HAVE_WEBKIT
GPtrArray *variants;
const gchar *default_variant;
guint i;
+#endif /* HAVE_WEBKIT */
model = gtk_combo_box_get_model (GTK_COMBO_BOX (priv->combobox_chat_theme_variant));
store = GTK_LIST_STORE (model);
gtk_list_store_clear (store);
+#ifdef HAVE_WEBKIT
variants = empathy_adium_info_get_available_variants (info);
default_variant = empathy_adium_info_get_default_variant (info);
for (i = 0; i < variants->len; i++) {
@@ -846,6 +849,7 @@ preferences_theme_variants_fill (EmpathyPreferences *preferences,
COL_VARIANT_DEFAULT, !tp_strdiff (name, default_variant),
-1);
}
+#endif /* HAVE_WEBKIT */
/* Select the variant from the GSetting key */
preferences_theme_variant_notify_cb (priv->gsettings_chat,