if (empathy_tp_file_get_state (tp_file) == EMP_FILE_TRANSFER_STATE_COMPLETED)
{
- if (empathy_tp_file_get_direction (tp_file) ==
- EMP_FILE_TRANSFER_DIRECTION_INCOMING)
+ if (empathy_tp_file_get_incoming (tp_file))
open_enabled = TRUE;
else
open_enabled = FALSE;
g_free (total_size_str);
}
+ else if (state == EMP_FILE_TRANSFER_STATE_NOT_OFFERED)
+ second_line = g_strdup (_("File not yet offered"));
else
- second_line = g_strdup (_("Wating the other participant's response"));
+ second_line = g_strdup (_("Waiting the other participant's response"));
remaining = empathy_tp_file_get_remaining_time (tp_file);
break;
case EMP_FILE_TRANSFER_STATE_COMPLETED:
- if (empathy_tp_file_get_direction (tp_file) ==
- EMP_FILE_TRANSFER_DIRECTION_INCOMING)
+ if (empathy_tp_file_get_incoming (tp_file))
/* translators: first %s is filename, second %s
* is the contact name */
first_line = g_strdup_printf (
break;
case EMP_FILE_TRANSFER_STATE_CANCELED:
- if (empathy_tp_file_get_direction (tp_file) ==
- EMP_FILE_TRANSFER_DIRECTION_INCOMING)
+ if (empathy_tp_file_get_incoming (tp_file))
/* translators: first %s is filename, second %s
* is the contact name */
first_line = g_strdup_printf (
switch (empathy_tp_file_get_state (tp_file))
{
case EMP_FILE_TRANSFER_STATE_COMPLETED:
- if (empathy_tp_file_get_direction (tp_file) ==
- EMP_FILE_TRANSFER_DIRECTION_INCOMING)
+ if (empathy_tp_file_get_incoming (tp_file))
{
GtkRecentManager *manager;
const gchar *uri;