diff options
Diffstat (limited to 'src/ui/chat.c')
-rw-r--r-- | src/ui/chat.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ui/chat.c b/src/ui/chat.c index 5dd11f6..3831f66 100644 --- a/src/ui/chat.c +++ b/src/ui/chat.c | |||
@@ -514,7 +514,9 @@ ui_chat_update(UI_CHAT_Handle *handle, | |||
514 | GString *subtitle = g_string_new(""); | 514 | GString *subtitle = g_string_new(""); |
515 | 515 | ||
516 | if (contact) | 516 | if (contact) |
517 | { | ||
517 | title = GNUNET_CHAT_contact_get_name(contact); | 518 | title = GNUNET_CHAT_contact_get_name(contact); |
519 | } | ||
518 | else if (group) | 520 | else if (group) |
519 | { | 521 | { |
520 | title = GNUNET_CHAT_group_get_name(group); | 522 | title = GNUNET_CHAT_group_get_name(group); |
@@ -581,6 +583,18 @@ ui_chat_update(UI_CHAT_Handle *handle, | |||
581 | gtk_widget_set_sensitive(GTK_WIDGET(handle->attach_file_button), activated); | 583 | gtk_widget_set_sensitive(GTK_WIDGET(handle->attach_file_button), activated); |
582 | gtk_widget_set_sensitive(GTK_WIDGET(handle->emoji_button), activated); | 584 | gtk_widget_set_sensitive(GTK_WIDGET(handle->emoji_button), activated); |
583 | gtk_widget_set_sensitive(GTK_WIDGET(handle->send_record_button), activated); | 585 | gtk_widget_set_sensitive(GTK_WIDGET(handle->send_record_button), activated); |
586 | |||
587 | if (!handle->messages) | ||
588 | return; | ||
589 | |||
590 | UI_MESSAGE_Handle *message = ( | ||
591 | (UI_MESSAGE_Handle*) handle->messages->data | ||
592 | ); | ||
593 | |||
594 | const gchar *time = gtk_label_get_text(message->timestamp_label); | ||
595 | |||
596 | if (!group) | ||
597 | gtk_label_set_text(handle->chat_subtitle, time); | ||
584 | } | 598 | } |
585 | 599 | ||
586 | void | 600 | void |