aboutsummaryrefslogtreecommitdiff
path: root/src/ui/chat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/chat.c')
-rw-r--r--src/ui/chat.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/chat.c b/src/ui/chat.c
index 3831f66..71f7ebc 100644
--- a/src/ui/chat.c
+++ b/src/ui/chat.c
@@ -279,8 +279,8 @@ ui_chat_new(MESSENGER_Application *app)
279 handle->messages = NULL; 279 handle->messages = NULL;
280 handle->edge_value = 0; 280 handle->edge_value = 0;
281 281
282 handle->builder = gtk_builder_new_from_file( 282 handle->builder = gtk_builder_new_from_resource(
283 "resources/ui/chat.ui" 283 application_get_resource_path(app, "ui/chat.ui")
284 ); 284 );
285 285
286 handle->chat_box = GTK_WIDGET( 286 handle->chat_box = GTK_WIDGET(
@@ -466,6 +466,7 @@ ui_chat_new(MESSENGER_Application *app)
466} 466}
467 467
468struct IterateChatGroupClosure { 468struct IterateChatGroupClosure {
469 MESSENGER_Application *app;
469 GHashTable *bindings; 470 GHashTable *bindings;
470 GtkListBox *listbox; 471 GtkListBox *listbox;
471}; 472};
@@ -480,7 +481,7 @@ iterate_ui_chat_update_group_contacts(void *cls,
480 ); 481 );
481 482
482 GtkListBox *listbox = closure->listbox; 483 GtkListBox *listbox = closure->listbox;
483 UI_PROFILE_ENTRY_Handle* entry = ui_profile_entry_new(); 484 UI_PROFILE_ENTRY_Handle* entry = ui_profile_entry_new(closure->app);
484 485
485 const char *name = GNUNET_CHAT_contact_get_name(contact); 486 const char *name = GNUNET_CHAT_contact_get_name(contact);
486 487
@@ -559,6 +560,7 @@ ui_chat_update(UI_CHAT_Handle *handle,
559 if (group) 560 if (group)
560 { 561 {
561 struct IterateChatGroupClosure closure; 562 struct IterateChatGroupClosure closure;
563 closure.app = app;
562 closure.bindings = app->ui.bindings; 564 closure.bindings = app->ui.bindings;
563 closure.listbox = handle->chat_contacts_listbox; 565 closure.listbox = handle->chat_contacts_listbox;
564 566