forked from enlightenment/enlightenment
parent
db8f53b3b8
commit
88281ed2fc
|
@ -205,7 +205,7 @@ _e_fileman_selector_cb(Evas_Object *object, char *file, void *data)
|
|||
}
|
||||
|
||||
static int
|
||||
_e_fileman_reconfigure_cb(void *data, int type, void *event)
|
||||
_e_fileman_reconfigure_cb(void *data, int type, void *event)
|
||||
{
|
||||
E_Event_Fm_Reconfigure *ev;
|
||||
E_Fileman *fileman;
|
||||
|
@ -214,4 +214,5 @@ static int
|
|||
ev = event;
|
||||
|
||||
e_scrollframe_child_region_show(fileman->main, ev->x, ev->y, ev->w, ev->h);
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -538,7 +538,7 @@ _e_fm_smart_add(Evas_Object *object)
|
|||
"fileman/rubberband");
|
||||
|
||||
evas_object_focus_set(sd->object, 1);
|
||||
evas_object_event_callback_add(sd->object, EVAS_CALLBACK_KEY_DOWN,_e_fm_key_down_cb, sd);
|
||||
evas_object_event_callback_add(sd->object, EVAS_CALLBACK_KEY_DOWN, _e_fm_key_down_cb, sd);
|
||||
|
||||
evas_object_stack_below(sd->bg, sd->layout);
|
||||
|
||||
|
@ -2432,9 +2432,9 @@ _e_fm_icon_select_right(E_Fm_Smart_Data *sd)
|
|||
{
|
||||
Evas_List *next;
|
||||
|
||||
if(sd->selection.current.ptr)
|
||||
if (sd->selection.current.ptr)
|
||||
{
|
||||
if(sd->selection.current.ptr->next)
|
||||
if (sd->selection.current.ptr->next)
|
||||
{
|
||||
next = sd->selection.current.ptr->next;
|
||||
if (evas_key_modifier_is_set(evas_key_modifier_get(sd->evas), "Control"))
|
||||
|
@ -2442,7 +2442,7 @@ _e_fm_icon_select_right(E_Fm_Smart_Data *sd)
|
|||
E_Fm_Icon *icon;
|
||||
|
||||
icon = next->data;
|
||||
if(icon->state.selected)
|
||||
if (icon->state.selected)
|
||||
{
|
||||
_e_fm_selections_del(next->data);
|
||||
_e_fm_selections_current_set(next->data, next);
|
||||
|
@ -2460,7 +2460,7 @@ _e_fm_icon_select_right(E_Fm_Smart_Data *sd)
|
|||
Evas_Coord x, y, w, h;
|
||||
icon = next->data;
|
||||
evas_object_geometry_get(icon->icon_object, &x, &y, &w, &h);
|
||||
if(!E_CONTAINS(sd->x, sd->y, sd->w, sd->h, x, y, w, h))
|
||||
if (!E_CONTAINS(sd->x, sd->y, sd->w, sd->h, x, y, w, h))
|
||||
{
|
||||
E_Event_Fm_Reconfigure *ev;
|
||||
|
||||
|
@ -2486,7 +2486,8 @@ static void
|
|||
_e_fm_icon_run(E_Fm_Smart_Data *sd)
|
||||
{
|
||||
E_Fm_Icon *icon;
|
||||
if(sd->selection.current.ptr)
|
||||
|
||||
if (sd->selection.current.ptr)
|
||||
{
|
||||
icon = sd->selection.current.file;
|
||||
if (icon->file->type == E_FM_FILE_TYPE_DIRECTORY)
|
||||
|
@ -2511,7 +2512,7 @@ _e_fm_icon_run(E_Fm_Smart_Data *sd)
|
|||
}
|
||||
else if (icon->file->type == E_FM_FILE_TYPE_FILE)
|
||||
{
|
||||
if(icon->sd->is_selector)
|
||||
if (icon->sd->is_selector)
|
||||
{
|
||||
_e_fm_selector_send_file(icon);
|
||||
return;
|
||||
|
@ -2527,7 +2528,7 @@ _e_fm_icon_run(E_Fm_Smart_Data *sd)
|
|||
static void
|
||||
_e_fm_key_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
||||
{
|
||||
Evas_Event_Key_Up *ev;
|
||||
Evas_Event_Key_Down *ev;
|
||||
E_Fm_Smart_Data *sd;
|
||||
|
||||
ev = event_info;
|
||||
|
@ -2543,8 +2544,6 @@ _e_fm_key_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
|||
_e_fm_icon_select_right(sd);
|
||||
else if (!strcmp(ev->keyname, "Return"))
|
||||
_e_fm_icon_run(sd);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue