def on_quick_status_toggled(self, button): self.plugin.config['quick_status'] = button.get_active() if not self.plugin.active: return self.plugin.status_widget.set_property('visible', button.get_active()) self.plugin.mood_button.set_property('visible', button.get_active()) self.plugin.activity_button.set_property('visible', button.get_active()) self.plugin.status_widget.set_text(helpers.get_global_status())
def get_status_message(self, account): '''Returns status which is the global one unless account is given''' if not account: # If user did not ask for account, returns the global status return DBUS_STRING(str(helpers.get_global_status())) # return show for the given account status = gajim.connections[account].status return DBUS_STRING(status)
def our_show(self, obj): if self.active: if helpers.get_global_show() != gajim.SHOW_LIST[0]: self.status_widget.set_text(helpers.get_global_status()) else: self.status_widget.set_text('')