diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2008-11-22 00:16:44 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-11-22 00:16:44 +0800 |
commit | 8bc264cf4de4ef01d6bf62fa85b7497279f7dac2 (patch) | |
tree | deede81ad9c06e7dc827281d668f48f7a96e426c /libempathy-gtk/empathy-ft-manager.c | |
parent | 653e7b22a6962f8d7407de5165404b935f0be511 (diff) | |
download | gsoc2013-empathy-8bc264cf4de4ef01d6bf62fa85b7497279f7dac2.tar gsoc2013-empathy-8bc264cf4de4ef01d6bf62fa85b7497279f7dac2.tar.gz gsoc2013-empathy-8bc264cf4de4ef01d6bf62fa85b7497279f7dac2.tar.bz2 gsoc2013-empathy-8bc264cf4de4ef01d6bf62fa85b7497279f7dac2.tar.lz gsoc2013-empathy-8bc264cf4de4ef01d6bf62fa85b7497279f7dac2.tar.xz gsoc2013-empathy-8bc264cf4de4ef01d6bf62fa85b7497279f7dac2.tar.zst gsoc2013-empathy-8bc264cf4de4ef01d6bf62fa85b7497279f7dac2.zip |
Replaced the Direction channel property a more-private GObject incoming property. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=1783
Diffstat (limited to 'libempathy-gtk/empathy-ft-manager.c')
-rw-r--r-- | libempathy-gtk/empathy-ft-manager.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/libempathy-gtk/empathy-ft-manager.c b/libempathy-gtk/empathy-ft-manager.c index 38d5cd79e..2be9e005c 100644 --- a/libempathy-gtk/empathy-ft-manager.c +++ b/libempathy-gtk/empathy-ft-manager.c @@ -276,8 +276,7 @@ update_buttons (EmpathyFTManager *ft_manager) 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; @@ -399,15 +398,16 @@ update_ft_row (EmpathyFTManager *ft_manager, 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 ( @@ -425,8 +425,7 @@ update_ft_row (EmpathyFTManager *ft_manager, 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 ( @@ -510,8 +509,7 @@ state_changed_cb (EmpathyTpFile *tp_file, 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; |