diff options
Diffstat (limited to 'src/ui/messenger.c')
-rw-r--r-- | src/ui/messenger.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/ui/messenger.c b/src/ui/messenger.c index 7a2ddff..7fdb60e 100644 --- a/src/ui/messenger.c +++ b/src/ui/messenger.c | |||
@@ -35,9 +35,8 @@ | |||
35 | 35 | ||
36 | #include "../application.h" | 36 | #include "../application.h" |
37 | 37 | ||
38 | static void | 38 | static gboolean |
39 | handle_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 | ||
@@ -46,6 +45,15 @@ handle_flap_via_button_click(UNUSED GtkButton* button, | |||
46 | } else { | 45 | } else { |
47 | hdy_flap_set_reveal_flap(flap, TRUE); | 46 | hdy_flap_set_reveal_flap(flap, TRUE); |
48 | } | 47 | } |
48 | |||
49 | return FALSE; | ||
50 | } | ||
51 | |||
52 | static void | ||
53 | handle_flap_via_button_click(UNUSED GtkButton* button, | ||
54 | gpointer user_data) | ||
55 | { | ||
56 | g_idle_add(G_SOURCE_FUNC(_flap_reveal_switch), user_data); | ||
49 | } | 57 | } |
50 | 58 | ||
51 | static void | 59 | static void |