aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-02-14 18:15:40 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-02-14 18:15:40 +0000
commitc5e66b2d7702dc7422c6850b472ae4b248d4e2ab (patch)
tree3d0d45c8c6fa371773a85134ff5270ba4840bc85
parent3854265dccf6351f7c56047e40a339682f5cca98 (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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/entry.c b/entry.c
index dd96c6b..430b32d 100644
--- a/entry.c
+++ b/entry.c
@@ -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;