summaryrefslogtreecommitdiff
path: root/src/bin/controls.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-01-02 23:44:44 +0100
committerBoris Faure <billiob@gmail.com>2018-01-05 00:27:25 +0100
commit983dadeba4f822430fab8964bec5caed94db4ac6 (patch)
tree06f02d9e50c7429a77a8ecb72a1975def6cfb759 /src/bin/controls.c
parenteaaae01745d05f5b4d2b4c3b80b8d1f5a01305e4 (diff)
about: simplify code and no more globals
Diffstat (limited to 'src/bin/controls.c')
-rw-r--r--src/bin/controls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/controls.c b/src/bin/controls.c
index d16e29e..15335a5 100644
--- a/src/bin/controls.c
+++ b/src/bin/controls.c
@@ -49,7 +49,7 @@ _cb_sel_off(void *data,
49} 49}
50 50
51static Eina_Bool 51static Eina_Bool
52_cb_ct_del_delay(void *data) 52_cb_del_delay(void *data)
53{ 53{
54 Evas_Object *frame = data; 54 Evas_Object *frame = data;
55 evas_object_del(frame); 55 evas_object_del(frame);
@@ -159,7 +159,7 @@ _cb_ct_about(void *data,
159{ 159{
160 struct controls_ctx *ctx = data; 160 struct controls_ctx *ctx = data;
161 161
162 about_toggle(ctx->win, ctx->bg, ctx->term, ctx->donecb, ctx->donedata); 162 about_show(ctx->win, ctx->bg, ctx->term, ctx->donecb, ctx->donedata);
163 controls_hide(ctx, EINA_FALSE); 163 controls_hide(ctx, EINA_FALSE);
164} 164}
165 165
@@ -259,7 +259,7 @@ controls_hide(struct controls_ctx *ctx, Eina_Bool call_cb)
259 } 259 }
260 elm_object_focus_set(ctx->frame, EINA_FALSE); 260 elm_object_focus_set(ctx->frame, EINA_FALSE);
261 261
262 ecore_timer_add(10.0, _cb_ct_del_delay, ctx->frame); 262 ecore_timer_add(10.0, _cb_del_delay, ctx->frame);
263 ctx->frame = NULL; 263 ctx->frame = NULL;
264 264
265 if (call_cb && ctx->donecb) 265 if (call_cb && ctx->donecb)