diff options
Diffstat (limited to 'src/ui/messenger.c')
-rw-r--r-- | src/ui/messenger.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ui/messenger.c b/src/ui/messenger.c index 46ee362..a101eba 100644 --- a/src/ui/messenger.c +++ b/src/ui/messenger.c | |||
@@ -98,6 +98,11 @@ ui_messenger_init(MESSENGER_Application *app, | |||
98 | gtk_builder_get_object(builder, "main_window") | 98 | gtk_builder_get_object(builder, "main_window") |
99 | ); | 99 | ); |
100 | 100 | ||
101 | gtk_application_add_window( | ||
102 | app->application, | ||
103 | GTK_WINDOW(handle->main_window) | ||
104 | ); | ||
105 | |||
101 | handle->profile_avatar = HDY_AVATAR( | 106 | handle->profile_avatar = HDY_AVATAR( |
102 | gtk_builder_get_object(builder, "profile_avatar") | 107 | gtk_builder_get_object(builder, "profile_avatar") |
103 | ); | 108 | ); |
@@ -249,4 +254,12 @@ ui_messenger_init(MESSENGER_Application *app, | |||
249 | G_CALLBACK(handle_main_window_destroy), | 254 | G_CALLBACK(handle_main_window_destroy), |
250 | app | 255 | app |
251 | ); | 256 | ); |
257 | |||
258 | g_object_unref(builder); | ||
259 | } | ||
260 | |||
261 | void | ||
262 | ui_messenger_run(MESSENGER_Application *app) | ||
263 | { | ||
264 | ui_messenger_init(app, &(app->ui.messenger)); | ||
252 | } | 265 | } |