def set_path(self, path, is_user=False): """ :param bool is_user: this event was fired by user """ self.clear_buttons() pathlist = util.rec_split_path(path) for (abspath, name) in pathlist: self.append_button(abspath, name) if is_user: self.add_view_history(path) self.show_all()
def set_path(self, path, is_user=False): """ :param bool is_user: this event was fired by user """ self.clear_buttons() pathlist = util.rec_split_path(path) for (abspath, name) in pathlist: self.append_button(abspath, name) if is_user: self.add_view_history(path) self.back_button.set_sensitive(self.can_back()) self.forward_button.set_sensitive(self.can_forward()) self.show_all()
def set_path(self, path): self.clear_buttons() pathlist = util.rec_split_path(path) for (abspath, name) in pathlist: self.append_button(abspath, name) self.show_all()