[sr-dev] git:master:dd1b6d4f: dialog: new function dlg_set_state(newstate) - set the state for a dialog