]> git.0d.be Git - empathy.git/commitdiff
Don't try to access empathy_adium_info_* stuff when webkit support is disabled
authorMarc-Antoine Perennou <Marc-Antoine@Perennou.com>
Wed, 22 Jun 2011 19:08:48 +0000 (21:08 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 23 Jun 2011 08:14:55 +0000 (10:14 +0200)
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'

src/empathy-preferences.c

index 9aa21e8b016eb390352204f0920f4264c10f75c7..9db4739d6ed0d4d0c28b6c52613edaa6abad5bcb 100644 (file)
@@ -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,