diff options
Diffstat (limited to 'src/ui/message.h')
-rw-r--r-- | src/ui/message.h | 27 |
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 | */ | ||
149 | void | ||
150 | ui_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 | */ | ||
162 | void | ||
163 | ui_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 | * |