diff options
author | akashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-06-03 13:48:40 +0000 |
---|---|---|
committer | akashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-06-03 13:48:40 +0000 |
commit | 166b59cdbc647fce9faea13ef13c43e44a8e2dca (patch) | |
tree | 35820b0a4da860845776493b6d9961695cb6d047 /navit/navit.c | |
parent | 8bca559ae4717a4712b7173e0bfb0205ad3c6a61 (diff) | |
download | navit-166b59cdbc647fce9faea13ef13c43e44a8e2dca.tar.gz |
Add:core:Added framework for reacting to disable suspend events
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3337 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/navit.c')
-rw-r--r-- | navit/navit.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/navit/navit.c b/navit/navit.c index 49b86bde1..144caffde 100644 --- a/navit/navit.c +++ b/navit/navit.c @@ -2029,7 +2029,7 @@ navit_vehicle_update(struct navit *this_, struct navit_vehicle *nv) callback_list_call_attr_0(this_->attr_cbl, attr_position); navit_textfile_debug_log(this_, "type=trackpoint_tracked"); if (this_->gui && nv->speed > 2) - gui_disable_suspend(this_->gui); + navit_disable_suspend(); transform(this_->trans, pro, &nv->coord, &cursor_pnt, 1, 0, 0, NULL); if (this_->button_pressed != 1 && this_->follow_cursor && nv->follow_curr <= nv->follow && @@ -2304,6 +2304,12 @@ navit_set_layout_by_name(struct navit *n,const char *name) return 0; } +void +navit_disable_suspend() { + gui_disable_suspend(global_navit->gui); + callback_list_call_attr_0(global_navit->attr_cbl,attr_unsuspend); +} + int navit_block(struct navit *this_, int block) { |