aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-message.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-06-09 23:50:34 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-06-10 16:30:05 +0800
commitd49a19564bc1404c8536da85f97e22ae80e614e7 (patch)
tree8ded92bf205bb089bffd120d8832185ccd6aa875 /libempathy/empathy-message.c
parentc5353cf8c819b549de202faa3326406f3638a899 (diff)
downloadgsoc2013-empathy-d49a19564bc1404c8536da85f97e22ae80e614e7.tar
gsoc2013-empathy-d49a19564bc1404c8536da85f97e22ae80e614e7.tar.gz
gsoc2013-empathy-d49a19564bc1404c8536da85f97e22ae80e614e7.tar.bz2
gsoc2013-empathy-d49a19564bc1404c8536da85f97e22ae80e614e7.tar.lz
gsoc2013-empathy-d49a19564bc1404c8536da85f97e22ae80e614e7.tar.xz
gsoc2013-empathy-d49a19564bc1404c8536da85f97e22ae80e614e7.tar.zst
gsoc2013-empathy-d49a19564bc1404c8536da85f97e22ae80e614e7.zip
Don't require telepathy-logger with --enable-call
Having it is required for displaying call events in the history window though.
Diffstat (limited to 'libempathy/empathy-message.c')
-rw-r--r--libempathy/empathy-message.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c
index d97539ffd..d30ce3645 100644
--- a/libempathy/empathy-message.c
+++ b/libempathy/empathy-message.c
@@ -35,7 +35,9 @@
#include <telepathy-logger/entity.h>
#include <telepathy-logger/event.h>
#include <telepathy-logger/text-event.h>
-#include <telepathy-logger/call-event.h>
+#ifdef HAVE_CALL_LOGS
+# include <telepathy-logger/call-event.h>
+#endif
#include "empathy-message.h"
#include "empathy-utils.h"
@@ -332,7 +334,9 @@ empathy_message_from_tpl_log_event (TplEvent *logevent)
TPL_TEXT_EVENT (logevent)));
type = tpl_text_event_get_message_type (TPL_TEXT_EVENT (logevent));
- } else if (TPL_IS_CALL_EVENT (logevent)) {
+ }
+#ifdef HAVE_CALL_LOGS
+ else if (TPL_IS_CALL_EVENT (logevent)) {
TplCallEvent *call = TPL_CALL_EVENT (logevent);
if (tpl_call_event_get_end_reason (call) == TPL_CALL_END_REASON_NO_ANSWER)
body = g_strdup_printf (_("Missed call from %s"),
@@ -343,7 +347,9 @@ empathy_message_from_tpl_log_event (TplEvent *logevent)
else
body = g_strdup_printf (_("Call from %s"),
tpl_entity_get_alias (tpl_event_get_sender (logevent)));
- } else {
+ }
+#endif
+ else {
/* Unknown event type */
return NULL;
}