def __is_single_click(self, item): if self.__is_double_click: item.do_double_click() if self.__single_click_item: self.set_highlight(self.__single_click_item) else: self.__single_click_item = item event_manager.emit("clear-systemview-highlight", item.theme) theme_manager.apply_theme(item.theme) self.__sync_untitle_theme(item.theme) self.status_box.set_status(_("Changed User Theme to %s") % item.theme.get_name()) self.__is_double_click = False
def __on_single_click_item(self, widget, item, x, y): self.set_highlight(item) event_manager.emit("clear-userview-highlight", item.theme) theme_manager.apply_theme(item.theme) self.__sync_untitle_theme(item.theme) self.status_box.set_status(_("Changed System Theme to %s") % item.theme.get_name())