last_msg ==> last_status_msg and change_title ==> change_roster_title
This commit is contained in:
parent
e5d0ea8b87
commit
0a0cd669eb
|
@ -50,7 +50,7 @@ class Config:
|
|||
'autoxatime': [ opt_int, 20 ],
|
||||
'ask_online_status': [ opt_bool, False ],
|
||||
'ask_offline_status': [ opt_bool, False ],
|
||||
'last_msg': [ opt_str, '' ],
|
||||
'last_status_msg': [ opt_str, '' ],
|
||||
'trayicon': [ opt_bool, True ],
|
||||
'iconset': [ opt_str, 'sun' ],
|
||||
'inmsgcolor': [ opt_color, '#ff0000' ],
|
||||
|
@ -92,7 +92,7 @@ class Config:
|
|||
'usegpg': [ opt_bool, False ],
|
||||
'log_notif_in_user_file': [ opt_bool, True ],
|
||||
'log_notif_in_sep_file': [ opt_bool, True ],
|
||||
'change_title': [ opt_bool, True ],
|
||||
'change_roster_title': [ opt_bool, True ],
|
||||
'version': [ None, '0.7' ],
|
||||
}
|
||||
|
||||
|
|
|
@ -184,7 +184,7 @@ class Change_status_message_dialog:
|
|||
|
||||
message_textview = self.xml.get_widget('message_textview')
|
||||
self.message_buffer = message_textview.get_buffer()
|
||||
self.message_buffer.set_text(gajim.config.get('last_msg'))
|
||||
self.message_buffer.set_text(gajim.config.get('last_status_msg'))
|
||||
self.values = {'':''}
|
||||
for msg in gajim.config.get_per('statusmsg'):
|
||||
self.values[msg] = gajim.config.get_per('statusmsg', msg, 'message')
|
||||
|
@ -203,7 +203,8 @@ class Change_status_message_dialog:
|
|||
if rep == gtk.RESPONSE_OK:
|
||||
beg, end = self.message_buffer.get_bounds()
|
||||
message = self.message_buffer.get_text(beg, end, 0)
|
||||
gajim.config.set('last_msg', message)
|
||||
#FIXME: support more than one line
|
||||
gajim.config.set('last_status_msg', message)
|
||||
else:
|
||||
message = -1
|
||||
self.window.destroy()
|
||||
|
|
|
@ -1386,7 +1386,7 @@ class Roster_window:
|
|||
return
|
||||
|
||||
def show_title(self):
|
||||
change_title_allowed = gajim.config.get('change_title')
|
||||
change_title_allowed = gajim.config.get('change_roster_title')
|
||||
if change_title_allowed:
|
||||
start = ''
|
||||
if self.nb_unread > 1:
|
||||
|
@ -1403,7 +1403,7 @@ class Roster_window:
|
|||
elif status == 'xa':
|
||||
uf_status = 'Not Available'
|
||||
elif status == 'chat':
|
||||
uf_status = 'Free or Chat'
|
||||
uf_status = 'Free for Chat'
|
||||
else:
|
||||
uf_status = status.capitalize()
|
||||
return uf_status
|
||||
|
|
Loading…
Reference in New Issue