aboutsummaryrefslogtreecommitdiff
path: root/src/ui/message.h
diff options
context:
space:
mode:
authorJacki <jacki@thejackimonster.de>2024-03-13 16:57:37 +0100
committerJacki <jacki@thejackimonster.de>2024-03-13 16:57:37 +0100
commit0518055b9f4b773eb4097623abfed8e791216945 (patch)
tree691f4a86782a301ff607466641fde41f111eaf8f /src/ui/message.h
parent310a225cf85a371d1243c8667991cf86b467316f (diff)
downloadmessenger-gtk-0518055b9f4b773eb4097623abfed8e791216945.tar.gz
messenger-gtk-0518055b9f4b773eb4097623abfed8e791216945.zip
Implement adding and removing tags on messages with flow boxes
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat (limited to 'src/ui/message.h')
-rw-r--r--src/ui/message.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/ui/message.h b/src/ui/message.h
index 60ee203..47aa847 100644
--- a/src/ui/message.h
+++ b/src/ui/message.h
@@ -51,6 +51,7 @@ typedef struct UI_MESSAGE_Handle
51 51
52 GtkBuilder *builder [2]; 52 GtkBuilder *builder [2];
53 GtkWidget *message_box; 53 GtkWidget *message_box;
54 GtkFlowBox *tag_flow_box;
54 55
55 HdyAvatar *sender_avatar; 56 HdyAvatar *sender_avatar;
56 GtkLabel *sender_label; 57 GtkLabel *sender_label;
@@ -138,6 +139,32 @@ ui_message_set_contact(UI_MESSAGE_Handle *handle,
138 const struct GNUNET_CHAT_Contact *contact); 139 const struct GNUNET_CHAT_Contact *contact);
139 140
140/** 141/**
142 * Adds a widget to represent a given tag message
143 * to another message handle.
144 *
145 * @param handle Message handle
146 * @param app Messenger application
147 * @param tag_message Chat tag message
148 */
149void
150ui_message_add_tag(UI_MESSAGE_Handle *handle,
151 MESSENGER_Application *app,
152 const struct GNUNET_CHAT_Message *tag_message);
153
154/**
155 * Remove a widget representing a given tag message
156 * from another message handle.
157 *
158 * @param handle Message handle
159 * @param app Messenger application
160 * @param tag_message Chat tag message
161 */
162void
163ui_message_remove_tag(UI_MESSAGE_Handle *handle,
164 MESSENGER_Application *app,
165 const struct GNUNET_CHAT_Message *tag_message);
166
167/**
141 * Frees its resources and destroys a given 168 * Frees its resources and destroys a given
142 * message handle. 169 * message handle.
143 * 170 *