diff options
Diffstat (limited to 'src/ui/messenger.c')
-rw-r--r-- | src/ui/messenger.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ui/messenger.c b/src/ui/messenger.c index 8f463ca..afea63e 100644 --- a/src/ui/messenger.c +++ b/src/ui/messenger.c | |||
@@ -83,6 +83,19 @@ handle_new_contact_button_click(UNUSED GtkButton* button, | |||
83 | } | 83 | } |
84 | 84 | ||
85 | static void | 85 | static void |
86 | handle_new_group_button_click(UNUSED GtkButton* button, | ||
87 | gpointer user_data) | ||
88 | { | ||
89 | MESSENGER_Application *app = (MESSENGER_Application*) user_data; | ||
90 | |||
91 | hdy_flap_set_reveal_flap(HDY_FLAP(app->ui.messenger.flap_user_details), FALSE); | ||
92 | |||
93 | ui_new_group_dialog_init(app, &(app->ui.new_group)); | ||
94 | |||
95 | gtk_widget_show(GTK_WIDGET(app->ui.new_group.dialog)); | ||
96 | } | ||
97 | |||
98 | static void | ||
86 | handle_new_platform_button_click(UNUSED GtkButton* button, | 99 | handle_new_platform_button_click(UNUSED GtkButton* button, |
87 | gpointer user_data) | 100 | gpointer user_data) |
88 | { | 101 | { |
@@ -281,6 +294,13 @@ ui_messenger_init(MESSENGER_Application *app, | |||
281 | ); | 294 | ); |
282 | 295 | ||
283 | g_signal_connect( | 296 | g_signal_connect( |
297 | handle->new_group_button, | ||
298 | "clicked", | ||
299 | G_CALLBACK(handle_new_group_button_click), | ||
300 | app | ||
301 | ); | ||
302 | |||
303 | g_signal_connect( | ||
284 | handle->new_platform_button, | 304 | handle->new_platform_button, |
285 | "clicked", | 305 | "clicked", |
286 | G_CALLBACK(handle_new_platform_button_click), | 306 | G_CALLBACK(handle_new_platform_button_click), |