aboutsummaryrefslogtreecommitdiff
path: root/src/ui/contact_entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/contact_entry.c')
-rw-r--r--src/ui/contact_entry.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/contact_entry.c b/src/ui/contact_entry.c
index cf830db..291c3b0 100644
--- a/src/ui/contact_entry.c
+++ b/src/ui/contact_entry.c
@@ -27,11 +27,13 @@
27#include "../application.h" 27#include "../application.h"
28 28
29UI_CONTACT_ENTRY_Handle* 29UI_CONTACT_ENTRY_Handle*
30ui_contact_entry_new(void) 30ui_contact_entry_new(MESSENGER_Application *app)
31{ 31{
32 UI_CONTACT_ENTRY_Handle* handle = g_malloc(sizeof(UI_CONTACT_ENTRY_Handle)); 32 UI_CONTACT_ENTRY_Handle* handle = g_malloc(sizeof(UI_CONTACT_ENTRY_Handle));
33 33
34 handle->builder = gtk_builder_new_from_file("resources/ui/contact_entry.ui"); 34 handle->builder = gtk_builder_new_from_resource(
35 application_get_resource_path(app, "ui/contact_entry.ui")
36 );
35 37
36 handle->entry_box = GTK_WIDGET( 38 handle->entry_box = GTK_WIDGET(
37 gtk_builder_get_object(handle->builder, "entry_box") 39 gtk_builder_get_object(handle->builder, "entry_box")