aboutsummaryrefslogtreecommitdiff
path: root/src/ui/profile_entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/profile_entry.c')
-rw-r--r--src/ui/profile_entry.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/profile_entry.c b/src/ui/profile_entry.c
index 4a03f94..c2b232f 100644
--- a/src/ui/profile_entry.c
+++ b/src/ui/profile_entry.c
@@ -27,11 +27,13 @@
27#include "../application.h" 27#include "../application.h"
28 28
29UI_PROFILE_ENTRY_Handle* 29UI_PROFILE_ENTRY_Handle*
30ui_profile_entry_new(void) 30ui_profile_entry_new(MESSENGER_Application *app)
31{ 31{
32 UI_PROFILE_ENTRY_Handle* handle = g_malloc(sizeof(UI_PROFILE_ENTRY_Handle)); 32 UI_PROFILE_ENTRY_Handle* handle = g_malloc(sizeof(UI_PROFILE_ENTRY_Handle));
33 33
34 handle->builder = gtk_builder_new_from_file("resources/ui/profile_entry.ui"); 34 handle->builder = gtk_builder_new_from_resource(
35 application_get_resource_path(app, "ui/profile_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")