entry button should not have focus..

master
steffen 13 years ago
parent 6527314883
commit ede8fc0768

@ -1,4 +1,4 @@
/* $Id: gui_button.c,v 1.9 2013/03/10 23:32:28 steffen Exp $ */
/* $Id: gui_button.c,v 1.10 2013/03/25 21:12:04 steffen Exp $ */
/***************************************************************************
* gui_button.c
*
@ -88,7 +88,7 @@ int gui_button_event (GUIItem *item, GUIEvent *event) {
button = (GUIButton *) item->data;
if (button->callback_clicked != NULL && event->event == EGUI_MOUSEPRESSED) {
gui_set_focus (item);
gui_set_focus (NULL);
button->callback_clicked (event->mousepos.x-item->x, event->mousepos.y-item->y);
}

Loading…
Cancel
Save