aboutsummaryrefslogtreecommitdiff
path: root/src/application.c
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-02-19 21:31:03 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2022-02-19 21:31:03 +0100
commit3090047dcd647bd1daddf904472a7f909b00f875 (patch)
tree85b246e1e8ce0729b2426f24e57cc4c40ae1ccc0 /src/application.c
parent43e1bdf4a87b0e6979aa75f36a920e21028c4f74 (diff)
downloadmessenger-gtk-3090047dcd647bd1daddf904472a7f909b00f875.tar.gz
messenger-gtk-3090047dcd647bd1daddf904472a7f909b00f875.zip
Refactored setting ui content and binding widgets
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/application.c')
-rw-r--r--src/application.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/application.c b/src/application.c
index 46456b9..397621c 100644
--- a/src/application.c
+++ b/src/application.c
@@ -100,7 +100,7 @@ application_init(MESSENGER_Application *app,
100 100
101 pthread_mutex_init(&(app->chat.mutex), NULL); 101 pthread_mutex_init(&(app->chat.mutex), NULL);
102 102
103 app->ui.bindings = g_hash_table_new(g_direct_hash, g_direct_equal); 103 app->bindings = bindings_create();
104 104
105 g_application_add_main_option( 105 g_application_add_main_option(
106 G_APPLICATION(app->application), 106 G_APPLICATION(app->application),
@@ -195,7 +195,7 @@ application_run(MESSENGER_Application *app)
195 195
196 pthread_join(app->chat.tid, NULL); 196 pthread_join(app->chat.tid, NULL);
197 197
198 g_hash_table_destroy(app->ui.bindings); 198 bindings_destroy(app->bindings);
199 199
200 close(app->chat.pipe[0]); 200 close(app->chat.pipe[0]);
201 close(app->chat.pipe[1]); 201 close(app->chat.pipe[1]);