Have Print::apply_config() return true if any step was invalidated

This commit is contained in:
Alessandro Ranellucci 2014-06-12 09:29:26 +02:00
parent 5e80d7a388
commit 97231327e0
4 changed files with 23 additions and 9 deletions

View file

@ -87,8 +87,8 @@ _constant()
bool invalidate_state_by_config_options(std::vector<std::string> opt_keys);
void invalidate_step(PrintObjectStep step);
void invalidate_all_steps()
%code%{ THIS->state.invalidate_all(); %};
bool invalidate_all_steps()
%code%{ RETVAL = THIS->state.invalidate_all(); %};
bool step_done(PrintObjectStep step)
%code%{ RETVAL = THIS->state.done(step); %};
void set_step_done(PrintObjectStep step)
@ -142,8 +142,8 @@ _constant()
bool invalidate_state_by_config_options(std::vector<std::string> opt_keys);
void invalidate_step(PrintStep step);
void invalidate_all_steps()
%code%{ THIS->state.invalidate_all(); %};
bool invalidate_all_steps()
%code%{ RETVAL = THIS->state.invalidate_all(); %};
bool step_done(PrintStep step)
%code%{ RETVAL = THIS->state.done(step); %};
void set_step_done(PrintStep step)