forked from enlightenment/enlightenment
Bugfix: e dialog: don’t crash when using the escape key to close.
Commit 99589eb5af
introduced this bug as the callback creation wasn’t changed to suit the new prototype and stil passed a window object.
This commit is contained in:
parent
6e4710cc91
commit
b637a4f586
|
@ -50,7 +50,7 @@ e_obj_dialog_new(char *title, char *class_name, char *class_class)
|
||||||
if (!kg)
|
if (!kg)
|
||||||
fprintf(stderr, "ERROR: unable to redirect \"Escape\" key events to object %p.\n", o);
|
fprintf(stderr, "ERROR: unable to redirect \"Escape\" key events to object %p.\n", o);
|
||||||
evas_object_event_callback_add(o, EVAS_CALLBACK_KEY_DOWN,
|
evas_object_event_callback_add(o, EVAS_CALLBACK_KEY_DOWN,
|
||||||
_key_down_cb, od->win);
|
_key_down_cb, od);
|
||||||
|
|
||||||
return od;
|
return od;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue