aboutsummaryrefslogtreecommitdiff
path: root/src/ui/chat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/chat.c')
-rw-r--r--src/ui/chat.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/ui/chat.c b/src/ui/chat.c
index 03af9d0..bf5085c 100644
--- a/src/ui/chat.c
+++ b/src/ui/chat.c
@@ -35,16 +35,25 @@
35#include "../application.h" 35#include "../application.h"
36#include "../contact.h" 36#include "../contact.h"
37 37
38static void 38static gboolean
39handle_flap_via_button_click(UNUSED GtkButton *button, 39_flap_reveal_switch(gpointer user_data)
40 gpointer user_data)
41{ 40{
42 HdyFlap *flap = HDY_FLAP(user_data); 41 HdyFlap* flap = HDY_FLAP(user_data);
43 42
44 if (TRUE == hdy_flap_get_reveal_flap(flap)) 43 if (TRUE == hdy_flap_get_reveal_flap(flap)) {
45 hdy_flap_set_reveal_flap(flap, FALSE); 44 hdy_flap_set_reveal_flap(flap, FALSE);
46 else 45 } else {
47 hdy_flap_set_reveal_flap(flap, TRUE); 46 hdy_flap_set_reveal_flap(flap, TRUE);
47 }
48
49 return FALSE;
50}
51
52static void
53handle_flap_via_button_click(UNUSED GtkButton* button,
54 gpointer user_data)
55{
56 g_idle_add(G_SOURCE_FUNC(_flap_reveal_switch), user_data);
48} 57}
49 58
50static void 59static void