From 5c90321ccd0771cc10cdd8aa3e2e8dbc9ab818fc Mon Sep 17 00:00:00 2001 From: codewarrior Date: Tue, 8 Nov 2005 13:19:46 +0000 Subject: [PATCH] - close typebuffer if we click on an icon (mouse up) or on the canvas (mouse down). the reason i have mouse up on the icon is that sometimes you click and wait (read it or look at it) then raise you finger off the mouse button. this doesnt apply to the bg because then you can click and drag to show the rubber band so we hide it directly. SVN revision: 18382 --- src/bin/e_fileman_smart.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/bin/e_fileman_smart.c b/src/bin/e_fileman_smart.c index a46743ccd..3365d0013 100644 --- a/src/bin/e_fileman_smart.c +++ b/src/bin/e_fileman_smart.c @@ -1739,6 +1739,12 @@ _e_fm_mouse_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) ev = event_info; sd = data; + if(!strcmp(edje_object_part_state_get(sd->edje_obj, "typebuffer", NULL), "shown")) + { + edje_object_signal_emit(sd->edje_obj, "typebuf_hide", ""); + edje_object_part_text_set(sd->edje_obj, "text", ""); + } + switch (ev->button) { case 1: @@ -1940,7 +1946,7 @@ _e_fm_mouse_up_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) sd = data; ev = event_info; - + if (sd->selection.band.enabled) { sd->selection.band.enabled = 0; @@ -2127,6 +2133,12 @@ _e_fm_icon_mouse_up_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) ev = event_info; icon = data; + if(!strcmp(edje_object_part_state_get(icon->sd->edje_obj, "typebuffer", NULL), "shown")) + { + edje_object_signal_emit(icon->sd->edje_obj, "typebuf_hide", ""); + edje_object_part_text_set(icon->sd->edje_obj, "text", ""); + } + if(icon->sd->win) icon->sd->drag.start = 0; }