summaryrefslogtreecommitdiff
path: root/gtk.c
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-08-19 12:27:43 +0200
committerxengineering <me@xengineering.eu>2022-08-19 12:27:43 +0200
commitb661cc4bde4004f4d7085716680969f4659222a1 (patch)
tree81062ef5f0a57d78cab9aee69b9b6e6dfb447b48 /gtk.c
parent8d707d0dd403b4fdef885956f31dad43dee0a91b (diff)
downloadlimox-b661cc4bde4004f4d7085716680969f4659222a1.tar
limox-b661cc4bde4004f4d7085716680969f4659222a1.tar.zst
limox-b661cc4bde4004f4d7085716680969f4659222a1.zip
Make message content selectable
Diffstat (limited to 'gtk.c')
-rw-r--r--gtk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk.c b/gtk.c
index 0f03472..8a67699 100644
--- a/gtk.c
+++ b/gtk.c
@@ -202,6 +202,7 @@ void gui_add_message_widget(message_t* message, chat_t* chat) {
message->content);
GtkWidget* label = gtk_label_new(label_content);
gtk_label_set_wrap(GTK_LABEL(label), TRUE);
+ gtk_label_set_selectable(GTK_LABEL(label), TRUE);
message->widget = (void*)label;
gtk_box_append(GTK_BOX(chat->widget), label);
free(label_content);