parent
755a36e40a
commit
0c9265219a
|
@ -129,8 +129,7 @@ e_dialog_button_focus(E_Dialog *dia, int button)
|
||||||
|
|
||||||
db = evas_list_nth(dia->buttons, button);
|
db = evas_list_nth(dia->buttons, button);
|
||||||
|
|
||||||
if (!db)
|
if (!db) return 0;
|
||||||
return 0;
|
|
||||||
|
|
||||||
if (dia->focused)
|
if (dia->focused)
|
||||||
{
|
{
|
||||||
|
@ -237,8 +236,11 @@ _e_dialog_cb_button_clicked(void *data, Evas_Object *obj, const char *emission,
|
||||||
static int
|
static int
|
||||||
_e_dialog_key_down_cb(void *data, int type, void *event)
|
_e_dialog_key_down_cb(void *data, int type, void *event)
|
||||||
{
|
{
|
||||||
Ecore_X_Event_Key_Down *ev = event;
|
Ecore_X_Event_Key_Down *ev;
|
||||||
E_Dialog *dia = data;
|
E_Dialog *dia;
|
||||||
|
|
||||||
|
ev = event;
|
||||||
|
dia = data;
|
||||||
|
|
||||||
if (!strcmp(ev->keyname, "Tab") || !strcmp(ev->keyname, "Right"))
|
if (!strcmp(ev->keyname, "Tab") || !strcmp(ev->keyname, "Right"))
|
||||||
{
|
{
|
||||||
|
@ -254,9 +256,9 @@ _e_dialog_key_down_cb (void *data, int type, void *event)
|
||||||
dia->focused = dia->focused->next;
|
dia->focused = dia->focused->next;
|
||||||
db = dia->focused->data;
|
db = dia->focused->data;
|
||||||
edje_object_signal_emit(db->obj, "focus", "");
|
edje_object_signal_emit(db->obj, "focus", "");
|
||||||
|
}
|
||||||
} else {
|
else
|
||||||
|
{
|
||||||
E_Dialog_Button *db;
|
E_Dialog_Button *db;
|
||||||
|
|
||||||
db = dia->focused->data;
|
db = dia->focused->data;
|
||||||
|
@ -266,8 +268,9 @@ _e_dialog_key_down_cb (void *data, int type, void *event)
|
||||||
db = evas_list_data(dia->focused);
|
db = evas_list_data(dia->focused);
|
||||||
edje_object_signal_emit(db->obj, "focus", "");
|
edje_object_signal_emit(db->obj, "focus", "");
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
E_Dialog_Button *db;
|
E_Dialog_Button *db;
|
||||||
|
|
||||||
dia->focused = dia->buttons;
|
dia->focused = dia->buttons;
|
||||||
|
|
Loading…
Reference in New Issue