diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2008-07-16 02:56:45 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-06-12 00:06:27 +0800 |
commit | 06563d5df6dfbb129f80d3088448abda0fb245b3 (patch) | |
tree | bd70843345f904b20bf942136d4f1c8b30f50f28 /libempathy-gtk | |
parent | 4860e692b18ef271889633faa978d546221e8d7b (diff) | |
download | gsoc2013-empathy-06563d5df6dfbb129f80d3088448abda0fb245b3.tar gsoc2013-empathy-06563d5df6dfbb129f80d3088448abda0fb245b3.tar.gz gsoc2013-empathy-06563d5df6dfbb129f80d3088448abda0fb245b3.tar.bz2 gsoc2013-empathy-06563d5df6dfbb129f80d3088448abda0fb245b3.tar.lz gsoc2013-empathy-06563d5df6dfbb129f80d3088448abda0fb245b3.tar.xz gsoc2013-empathy-06563d5df6dfbb129f80d3088448abda0fb245b3.tar.zst gsoc2013-empathy-06563d5df6dfbb129f80d3088448abda0fb245b3.zip |
Compile EmpathyThemeAdium only if webkit is installed
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/Makefile.am | 7 | ||||
-rw-r--r-- | libempathy-gtk/empathy-theme-manager.c | 9 |
2 files changed, 13 insertions, 3 deletions
diff --git a/libempathy-gtk/Makefile.am b/libempathy-gtk/Makefile.am index 6e089d688..bf364af99 100644 --- a/libempathy-gtk/Makefile.am +++ b/libempathy-gtk/Makefile.am @@ -56,7 +56,6 @@ libempathy_gtk_handwritten_source = \ empathy-smiley-manager.c \ empathy-spell.c \ empathy-status-preset-dialog.c \ - empathy-theme-adium.c \ empathy-theme-boxes.c \ empathy-theme-irc.c \ empathy-theme-manager.c \ @@ -116,7 +115,6 @@ libempathy_gtk_headers = \ empathy-smiley-manager.h \ empathy-spell.h \ empathy-status-preset-dialog.h \ - empathy-theme-adium.h \ empathy-theme-boxes.h \ empathy-theme-irc.h \ empathy-theme-manager.h \ @@ -133,6 +131,11 @@ libempathy_gtk_include_HEADERS = \ $(libempathy_gtk_headers) \ empathy-gtk-enum-types.h +if HAVE_WEBKIT +libempathy_gtk_headers += empathy-theme-adium.h +libempathy_gtk_la_SOURCES += empathy-theme-adium.c +endif + uidir = $(datadir)/empathy ui_DATA = \ empathy-contact-widget.ui \ diff --git a/libempathy-gtk/empathy-theme-manager.c b/libempathy-gtk/empathy-theme-manager.c index fe4e241e6..eebbd3105 100644 --- a/libempathy-gtk/empathy-theme-manager.c +++ b/libempathy-gtk/empathy-theme-manager.c @@ -35,10 +35,13 @@ #include "empathy-chat-view.h" #include "empathy-conf.h" #include "empathy-chat-text-view.h" -#include "empathy-theme-adium.h" #include "empathy-theme-boxes.h" #include "empathy-theme-irc.h" +#ifdef HAVE_WEBKIT +#include "empathy-theme-adium.h" +#endif + #define DEBUG_FLAG EMPATHY_DEBUG_OTHER #include <libempathy/empathy-debug.h> @@ -62,7 +65,9 @@ static const gchar *themes[] = { "simple", N_("Simple"), "clean", N_("Clean"), "blue", N_("Blue"), +#ifdef HAVE_WEBKIT "adium", N_("Adium"), +#endif NULL }; @@ -323,9 +328,11 @@ empathy_theme_manager_create_view (EmpathyThemeManager *manager) if (strcmp (priv->name, "classic") == 0) { return EMPATHY_CHAT_VIEW (theme_manager_create_irc_view (manager)); } +#ifdef HAVE_WEBKIT if (strcmp (priv->name, "adium") == 0) { return EMPATHY_CHAT_VIEW (empathy_theme_adium_new ()); } +#endif theme = theme_manager_create_boxes_view (manager); theme_manager_update_boxes_theme (manager, theme); |