diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-02-14 18:15:40 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-02-14 18:15:40 +0000 |
commit | c5e66b2d7702dc7422c6850b472ae4b248d4e2ab (patch) | |
tree | 3d0d45c8c6fa371773a85134ff5270ba4840bc85 | |
parent | 3854265dccf6351f7c56047e40a339682f5cca98 (diff) |
also call entry_activate() from selectfn() so it doesn't try to create the handle after each move, since activatefn gets calls after each move
svn path=/trunk/externals/flatgui/; revision=15964
-rw-r--r-- | entry.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -119,7 +119,7 @@ static t_widgetbehavior entry_widgetbehavior = { w_getrectfn: entry_getrect, w_displacefn: entry_displace, w_selectfn: entry_select, -w_activatefn: entry_activate, +w_activatefn: NULL, w_deletefn: entry_delete, w_visfn: entry_vis, w_clickfn: NULL, @@ -369,11 +369,12 @@ static void entry_select(t_gobj *z, t_glist *glist, int state) sys_vgui("destroy %s\n", x->handle_id); x->x_selected = 0; } + entry_activate(z, glist, state); } static void entry_activate(t_gobj *z, t_glist *glist, int state) { - DEBUG(post("entry_activate");); + DEBUG(post("entry_activate %d", state);); t_entry *x = (t_entry *)z; int x1, y1, x2, y2; |