aboutsummaryrefslogtreecommitdiff
path: root/src/ui/message.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/message.c')
-rw-r--r--src/ui/message.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/message.c b/src/ui/message.c
index c1bd648..8d5627f 100644
--- a/src/ui/message.c
+++ b/src/ui/message.c
@@ -28,6 +28,7 @@
28 28
29#include "../application.h" 29#include "../application.h"
30#include "../file.h" 30#include "../file.h"
31#include "../ui.h"
31 32
32static void 33static void
33handle_downloading_file(void *cls, 34handle_downloading_file(void *cls,
@@ -434,6 +435,8 @@ _update_file_message(UI_MESSAGE_Handle *handle,
434 MESSENGER_Application *app, 435 MESSENGER_Application *app,
435 struct GNUNET_CHAT_File *file) 436 struct GNUNET_CHAT_File *file)
436{ 437{
438 const char *filename = GNUNET_CHAT_file_get_name(file);
439
437 uint64_t size = GNUNET_CHAT_file_get_size(file); 440 uint64_t size = GNUNET_CHAT_file_get_size(file);
438 uint64_t local_size = GNUNET_CHAT_file_get_local_size(file); 441 uint64_t local_size = GNUNET_CHAT_file_get_local_size(file);
439 442
@@ -498,7 +501,7 @@ file_progress:
498 ); 501 );
499 502
500file_content: 503file_content:
501 gtk_label_set_text(handle->filename_label, GNUNET_CHAT_file_get_name(file)); 504 ui_label_set_text(handle->filename_label, filename);
502 505
503 gtk_stack_set_visible_child( 506 gtk_stack_set_visible_child(
504 handle->content_stack, 507 handle->content_stack,