aboutsummaryrefslogtreecommitdiff
path: root/src/ui/contact_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/contact_info.h')
-rw-r--r--src/ui/contact_info.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/ui/contact_info.h b/src/ui/contact_info.h
index ef44c0c..9b89f3c 100644
--- a/src/ui/contact_info.h
+++ b/src/ui/contact_info.h
@@ -27,8 +27,14 @@
27 27
28#include "messenger.h" 28#include "messenger.h"
29 29
30#include <cairo/cairo.h>
31#include <gdk/gdkpixbuf.h>
32#include <qrencode.h>
33
30typedef struct UI_CONTACT_INFO_Handle 34typedef struct UI_CONTACT_INFO_Handle
31{ 35{
36 MESSENGER_Application *app;
37
32 GtkBuilder *builder; 38 GtkBuilder *builder;
33 GtkDialog *dialog; 39 GtkDialog *dialog;
34 40
@@ -36,15 +42,21 @@ typedef struct UI_CONTACT_INFO_Handle
36 42
37 GtkWidget *details_box; 43 GtkWidget *details_box;
38 HdyAvatar *contact_avatar; 44 HdyAvatar *contact_avatar;
39 GtkEntry *contact_name; 45 GtkEntry *contact_name_entry;
46
47 GtkButton *contact_edit_button;
48 GtkImage *contact_edit_symbol;
40 49
41 GtkButton *reveal_identity_button; 50 GtkButton *reveal_identity_button;
42 GtkButton *open_chat_button; 51 GtkButton *open_chat_button;
43 52
44 GtkDrawingArea *id_drawing_area; 53 GtkDrawingArea *id_drawing_area;
54 gulong id_draw_signal;
45 55
46 GtkButton *back_button; 56 GtkButton *back_button;
47 GtkButton *close_button; 57 GtkButton *close_button;
58
59 QRcode *qr;
48} UI_CONTACT_INFO_Handle; 60} UI_CONTACT_INFO_Handle;
49 61
50void 62void
@@ -53,7 +65,8 @@ ui_contact_info_dialog_init(MESSENGER_Application *app,
53 65
54void 66void
55ui_contact_info_dialog_update(UI_CONTACT_INFO_Handle *handle, 67ui_contact_info_dialog_update(UI_CONTACT_INFO_Handle *handle,
56 struct GNUNET_CHAT_Contact *contact); 68 struct GNUNET_CHAT_Contact *contact,
69 gboolean reveal);
57 70
58void 71void
59ui_contact_info_dialog_cleanup(UI_CONTACT_INFO_Handle *handle); 72ui_contact_info_dialog_cleanup(UI_CONTACT_INFO_Handle *handle);