Make default status messages feature release-ready
This commit is contained in:
parent
411aaa1f7b
commit
56f248c287
|
@ -327,13 +327,13 @@ class Config:
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultstatusmsg_default = {
|
defaultstatusmsg_default = {
|
||||||
'online': [ False, _("I'm avavilable") ],
|
'online': [ False, _("I'm available") ],
|
||||||
'chat': [ False, _("I'm free for chat") ],
|
'chat': [ False, _("I'm free for chat") ],
|
||||||
'away': [ False, _('Be right back') ],
|
'away': [ False, _('Be right back') ],
|
||||||
'xa': [ False, _("I'm not available") ],
|
'xa': [ False, _("I'm not available") ],
|
||||||
'dnd': [ False, _('Do not disturb') ],
|
'dnd': [ False, _('Do not disturb') ],
|
||||||
'invisible': [ False, _('Bye !') ],
|
'invisible': [ False, _('Bye!') ],
|
||||||
'offline': [ False, _('Bye !') ],
|
'offline': [ False, _('Bye!') ],
|
||||||
}
|
}
|
||||||
|
|
||||||
soundevents_default = {
|
soundevents_default = {
|
||||||
|
|
|
@ -828,7 +828,8 @@ class PreferencesWindow:
|
||||||
msg = gajim.config.get_per('defaultstatusmsg', status_, 'message')
|
msg = gajim.config.get_per('defaultstatusmsg', status_, 'message')
|
||||||
enabled = gajim.config.get_per('defaultstatusmsg', status_, 'enabled')
|
enabled = gajim.config.get_per('defaultstatusmsg', status_, 'enabled')
|
||||||
iter = model.append()
|
iter = model.append()
|
||||||
model.set(iter, 0, status_, 1, _(status_), 2, msg, 3, enabled)
|
uf_show = helpers.get_uf_show(status_)
|
||||||
|
model.set(iter, 0, status_, 1, uf_show, 2, msg, 3, enabled)
|
||||||
|
|
||||||
def on_default_msg_cell_edited(self, cell, row, new_text):
|
def on_default_msg_cell_edited(self, cell, row, new_text):
|
||||||
model = self.default_msg_tree.get_model()
|
model = self.default_msg_tree.get_model()
|
||||||
|
|
Loading…
Reference in New Issue