diff options
Diffstat (limited to 'src/ui/account_entry.c')
-rw-r--r-- | src/ui/account_entry.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/ui/account_entry.c b/src/ui/account_entry.c index 4d8355a..7a9ccdb 100644 --- a/src/ui/account_entry.c +++ b/src/ui/account_entry.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include "account_entry.h" | 25 | #include "account_entry.h" |
26 | 26 | ||
27 | #include "../application.h" | 27 | #include "../application.h" |
28 | #include "../ui.h" | ||
28 | 29 | ||
29 | UI_ACCOUNT_ENTRY_Handle* | 30 | UI_ACCOUNT_ENTRY_Handle* |
30 | ui_account_entry_new(MESSENGER_Application *app) | 31 | ui_account_entry_new(MESSENGER_Application *app) |
@@ -54,26 +55,20 @@ void | |||
54 | ui_account_entry_set_account(UI_ACCOUNT_ENTRY_Handle* handle, | 55 | ui_account_entry_set_account(UI_ACCOUNT_ENTRY_Handle* handle, |
55 | const struct GNUNET_CHAT_Account *account) | 56 | const struct GNUNET_CHAT_Account *account) |
56 | { | 57 | { |
57 | const gchar *name = GNUNET_CHAT_account_get_name(account); | 58 | const char *name = GNUNET_CHAT_account_get_name(account); |
58 | 59 | ||
59 | if (!name) | 60 | ui_avatar_set_text(handle->entry_avatar, name); |
60 | return; | 61 | ui_label_set_text(handle->entry_label, name); |
61 | |||
62 | hdy_avatar_set_text(handle->entry_avatar, name); | ||
63 | gtk_label_set_text(handle->entry_label, name); | ||
64 | } | 62 | } |
65 | 63 | ||
66 | void | 64 | void |
67 | ui_account_entry_set_contact(UI_ACCOUNT_ENTRY_Handle* handle, | 65 | ui_account_entry_set_contact(UI_ACCOUNT_ENTRY_Handle* handle, |
68 | const struct GNUNET_CHAT_Contact *contact) | 66 | const struct GNUNET_CHAT_Contact *contact) |
69 | { | 67 | { |
70 | const gchar *name = GNUNET_CHAT_contact_get_name(contact); | 68 | const char *name = GNUNET_CHAT_contact_get_name(contact); |
71 | |||
72 | if (!name) | ||
73 | return; | ||
74 | 69 | ||
75 | hdy_avatar_set_text(handle->entry_avatar, name); | 70 | ui_avatar_set_text(handle->entry_avatar, name); |
76 | gtk_label_set_text(handle->entry_label, name); | 71 | ui_label_set_text(handle->entry_label, name); |
77 | } | 72 | } |
78 | 73 | ||
79 | void | 74 | void |