set_conn_state(RCVR_OFF);
rcvr_disconnect();
track_add(0, FALSE);
- _speed_excess = FALSE;
+ _speed_excess=FALSE;
}
+set_action_sensitive("gps_details", _enable_gps);
+set_action_sensitive("goto_gps", _enable_gps);
+set_action_sensitive("autocenter_latlon", _enable_gps);
+set_action_sensitive("autocenter_lead", _enable_gps);
+
map_move_mark();
gps_show_info();
-set_action_sensitive("gps_details", _enable_gps);
return TRUE;
}
set_action_sensitive(const char *name, gboolean sensitive)
{
GtkAction *action = gtk_action_group_get_action(actions, name);
+g_assert(action);
gtk_action_set_sensitive(action, sensitive);
}
set_action_activate(const char *name, gboolean active)
{
GtkAction *action = gtk_action_group_get_action(actions, name);
+g_assert(action);
gtk_toggle_action_set_active(action, active);
}
/* Set defaults for items */
set_action_activate("map_auto_download", _auto_download);
-set_action_activate("enable_gps", _enable_gps);
+set_action_activate("gps_enabled", _enable_gps);
+set_action_sensitive("goto_gps", _enable_gps);
+
+set_action_sensitive("autocenter_latlon", _enable_gps);
+set_action_sensitive("autocenter_lead", _enable_gps);
+
set_action_activate("gps_information", _gps_info);
+
set_action_activate("view_scale", _show_scale);
set_action_activate("view_vector", _show_velvec);
set_action_activate("view_poi", _show_poi);