]> git.0d.be Git - empathy.git/commitdiff
TplCallEndReason ceased to exist on March 28
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Tue, 3 Apr 2012 00:35:09 +0000 (10:35 +1000)
committerDanielle Madeley <danielle.madeley@collabora.co.uk>
Tue, 3 Apr 2012 07:04:25 +0000 (17:04 +1000)
libempathy-gtk/empathy-log-window.c
libempathy/empathy-message.c

index 72d4d464deebbde28e6d929e159b6fa59dfc3c55..c11bb02c354c1ff6e52539ef22694344b9877b7a 100644 (file)
@@ -1236,11 +1236,11 @@ get_icon_for_event (TplEvent *event)
   else if (TPL_IS_CALL_EVENT (event))
     {
       TplCallEvent *call = TPL_CALL_EVENT (event);
-      TplCallEndReason reason = tpl_call_event_get_end_reason (call);
+      TpCallStateChangeReason reason = tpl_call_event_get_end_reason (call);
       TplEntity *sender = tpl_event_get_sender (event);
       TplEntity *receiver = tpl_event_get_receiver (event);
 
-      if (reason == TPL_CALL_END_REASON_NO_ANSWER)
+      if (reason == TP_CALL_STATE_CHANGE_REASON_NO_ANSWER)
         icon = EMPATHY_IMAGE_CALL_MISSED;
       else if (tpl_entity_get_entity_type (sender) == TPL_ENTITY_SELF)
         icon = EMPATHY_IMAGE_CALL_OUTGOING;
@@ -1357,7 +1357,7 @@ log_window_append_call (TplEvent *event,
       COL_EVENTS_EVENT, event,
       -1);
 
-  if (tpl_call_event_get_end_reason (call) != TPL_CALL_END_REASON_NO_ANSWER)
+  if (tpl_call_event_get_end_reason (call) != TP_CALL_STATE_CHANGE_REASON_NO_ANSWER)
     {
       gchar *body;
       gchar *tmp;
@@ -3243,11 +3243,12 @@ log_window_got_messages_for_date_cb (GObject *manager,
             }
           else
             {
-              TplCallEndReason reason = tpl_call_event_get_end_reason (call);
+              TpCallStateChangeReason reason =
+                tpl_call_event_get_end_reason (call);
               TplEntity *sender = tpl_event_get_sender (event);
               TplEntity *receiver = tpl_event_get_receiver (event);
 
-              if (reason == TPL_CALL_END_REASON_NO_ANSWER)
+              if (reason == TP_CALL_STATE_CHANGE_REASON_NO_ANSWER)
                 {
                   if (ctx->subtype & EVENT_CALL_MISSED)
                     append = TRUE;
index 6111bcd8c25ace3f783f840325353b111c62a964..a4caae1222bf54eeaa08a55e83a0e43c70d71077 100644 (file)
@@ -411,7 +411,7 @@ empathy_message_from_tpl_log_event (TplEvent *logevent)
 
                timestamp = tpl_event_get_timestamp (logevent);
 
-               if (tpl_call_event_get_end_reason (call) == TPL_CALL_END_REASON_NO_ANSWER)
+               if (tpl_call_event_get_end_reason (call) == TP_CALL_STATE_CHANGE_REASON_NO_ANSWER)
                        body = g_strdup_printf (_("Missed call from %s"),
                                tpl_entity_get_alias (tpl_event_get_sender (logevent)));
                else if (tpl_entity_get_entity_type (tpl_event_get_sender (logevent)) == TPL_ENTITY_SELF)