aboutsummaryrefslogtreecommitdiff
path: root/src/ui/message.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/message.h')
-rw-r--r--src/ui/message.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/ui/message.h b/src/ui/message.h
index a17247c..b380960 100644
--- a/src/ui/message.h
+++ b/src/ui/message.h
@@ -39,6 +39,13 @@ typedef enum UI_MESSAGE_Type
39 UI_MESSAGE_STATUS = 2 39 UI_MESSAGE_STATUS = 2
40} UI_MESSAGE_Type; 40} UI_MESSAGE_Type;
41 41
42typedef enum UI_MESSAGE_ContentType
43{
44 UI_MESSAGE_CONTENT_TEXT = 0,
45 UI_MESSAGE_CONTENT_FILE = 1,
46 UI_MESSAGE_CONTENT_PREVIEW = 2
47} UI_MESSAGE_ContentType;
48
42typedef struct UI_MESSAGE_Handle 49typedef struct UI_MESSAGE_Handle
43{ 50{
44 UI_MESSAGE_Type type; 51 UI_MESSAGE_Type type;
@@ -49,17 +56,23 @@ typedef struct UI_MESSAGE_Handle
49 HdyAvatar *sender_avatar; 56 HdyAvatar *sender_avatar;
50 GtkLabel *sender_label; 57 GtkLabel *sender_label;
51 58
52 GtkLabel *text_label; 59 GtkRevealer *deny_revealer;
60 GtkRevealer *accept_revealer;
53 61
54 GtkButton *deny_button; 62 GtkButton *deny_button;
55 GtkButton *accept_button; 63 GtkButton *accept_button;
56 64
57 GtkLabel *timestamp_label; 65 GtkLabel *timestamp_label;
58 GtkImage *read_receipt_image; 66 GtkImage *read_receipt_image;
67
68 GtkLabel *text_label;
69 GtkRevealer *file_revealer;
70 GtkDrawingArea *preview_drawing_area;
59} UI_MESSAGE_Handle; 71} UI_MESSAGE_Handle;
60 72
61UI_MESSAGE_Handle* 73UI_MESSAGE_Handle*
62ui_message_new(UI_MESSAGE_Type type); 74ui_message_new(UI_MESSAGE_Type type,
75 UI_MESSAGE_ContentType content_type);
63 76
64void 77void
65ui_message_delete(UI_MESSAGE_Handle *handle); 78ui_message_delete(UI_MESSAGE_Handle *handle);