diff options
author | David Walter Seikel | 2014-05-05 02:45:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-05 02:45:13 +1000 |
commit | 60d68c06a933dec2555a21f2a666a769e3e4de3f (patch) | |
tree | eefaedb12308a59a25cc6fb1fa63e814b69caa42 /src/extantz/files.c | |
parent | Track all windows in a Eina_List. (diff) | |
download | SledjHamr-60d68c06a933dec2555a21f2a666a769e3e4de3f.zip SledjHamr-60d68c06a933dec2555a21f2a666a769e3e4de3f.tar.gz SledjHamr-60d68c06a933dec2555a21f2a666a769e3e4de3f.tar.bz2 SledjHamr-60d68c06a933dec2555a21f2a666a769e3e4de3f.tar.xz |
Merge the window handle creation code, and add proper hiding for them.
Diffstat (limited to 'src/extantz/files.c')
-rw-r--r-- | src/extantz/files.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/extantz/files.c b/src/extantz/files.c index ff76dff..c0867c6 100644 --- a/src/extantz/files.c +++ b/src/extantz/files.c | |||
@@ -80,14 +80,14 @@ static void my_fileselector_activated(void *data, Evas_Object *obj EINA_UNUSED, | |||
80 | 80 | ||
81 | printf("SELECTED file : %s\n", file); | 81 | printf("SELECTED file : %s\n", file); |
82 | } | 82 | } |
83 | evas_object_hide(me->win); | 83 | winFangHide(me); |
84 | } | 84 | } |
85 | 85 | ||
86 | static void _CANCEL_clicked(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) | 86 | static void _CANCEL_clicked(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) |
87 | { | 87 | { |
88 | winFang *me = data; | 88 | winFang *me = data; |
89 | 89 | ||
90 | evas_object_hide(me->win); | 90 | winFangHide(me); |
91 | } | 91 | } |
92 | 92 | ||
93 | static void _OK_clicked(void *data, Evas_Object *obj, void *event_info) | 93 | static void _OK_clicked(void *data, Evas_Object *obj, void *event_info) |
@@ -278,7 +278,7 @@ winFang *filesAdd(globals *ourGlobals, char *path, Eina_Bool multi, Eina_Bool sa | |||
278 | eo_unref(bx); | 278 | eo_unref(bx); |
279 | 279 | ||
280 | winFangComplete(ourGlobals, me, ourGlobals->win_w - 380, ourGlobals->win_w - 530, 350, 500); | 280 | winFangComplete(ourGlobals, me, ourGlobals->win_w - 380, ourGlobals->win_w - 530, 350, 500); |
281 | evas_object_hide(me->win); | 281 | winFangHide(me); |
282 | return me; | 282 | return me; |
283 | } | 283 | } |
284 | 284 | ||
@@ -292,5 +292,5 @@ void filesShow(winFang *me, Evas_Smart_Cb func, void *data) | |||
292 | evas_object_smart_callback_add(fs, "activated", func, data); | 292 | evas_object_smart_callback_add(fs, "activated", func, data); |
293 | else | 293 | else |
294 | evas_object_smart_callback_add(fs, "activated", my_fileselector_activated, me); | 294 | evas_object_smart_callback_add(fs, "activated", my_fileselector_activated, me); |
295 | evas_object_show(me->win); | 295 | winFangShow(me); |
296 | } | 296 | } |