some minor typos / bugfixes
This commit is contained in:
parent
798fbfebf3
commit
5a354c283c
|
@ -453,7 +453,6 @@ class connection:
|
||||||
if self.connected > 1:
|
if self.connected > 1:
|
||||||
self.connected = 0
|
self.connected = 0
|
||||||
self.connection.disconnect('Disconnected')
|
self.connection.disconnect('Disconnected')
|
||||||
self.dispatch('QUIT', ())
|
|
||||||
return
|
return
|
||||||
|
|
||||||
def ask_roster(self):
|
def ask_roster(self):
|
||||||
|
|
|
@ -127,6 +127,9 @@ class OptionsParser:
|
||||||
for key in self.tab[account]:
|
for key in self.tab[account]:
|
||||||
gajim.config.set_per('accounts', account, key, \
|
gajim.config.set_per('accounts', account, key, \
|
||||||
self.tab[account][key])
|
self.tab[account][key])
|
||||||
|
if gajim.config.get_per('accounts', account, 'savepass'):
|
||||||
|
gajim.connections[account].password = gajim.config.get_per( \
|
||||||
|
'accounts', account, 'password')
|
||||||
|
|
||||||
def __getattr__(self, attr):
|
def __getattr__(self, attr):
|
||||||
if attr.startswith('__') and attr in self.__dict__.keys():
|
if attr.startswith('__') and attr in self.__dict__.keys():
|
||||||
|
|
|
@ -388,11 +388,8 @@ class Change_status_message_dialog:
|
||||||
self.message_buffer = message_textview.get_buffer()
|
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_msg'))
|
||||||
self.values = {'':''}
|
self.values = {'':''}
|
||||||
i = 0
|
for msg in gajim.config.get_per('statusmsg'):
|
||||||
while gajim.config.exist('msg%s_name' % i):
|
self.values[msg] = gajim.config.get_per('statusmsg', msg, 'message')
|
||||||
self.values[gajim.config.get('msg%s_name' % i)] = \
|
|
||||||
gajim.config.get('msg%s' % i)
|
|
||||||
i += 1
|
|
||||||
liststore = gtk.ListStore(str, str)
|
liststore = gtk.ListStore(str, str)
|
||||||
message_comboboxentry = self.xml.get_widget('message_comboboxentry')
|
message_comboboxentry = self.xml.get_widget('message_comboboxentry')
|
||||||
message_comboboxentry.set_model(liststore)
|
message_comboboxentry.set_model(liststore)
|
||||||
|
|
|
@ -206,7 +206,7 @@ class interface:
|
||||||
def play_sound(self, event):
|
def play_sound(self, event):
|
||||||
if not gajim.config.get('sounds_on'):
|
if not gajim.config.get('sounds_on'):
|
||||||
return
|
return
|
||||||
path_to_soundfile = gajim.config.get(event + '_file')
|
path_to_soundfile = gajim.config.get_per('soundevents', event, 'path')
|
||||||
if not os.path.exists(path_to_soundfile):
|
if not os.path.exists(path_to_soundfile):
|
||||||
return
|
return
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
|
@ -455,7 +455,7 @@ class interface:
|
||||||
self.roster.draw_roster()
|
self.roster.draw_roster()
|
||||||
|
|
||||||
def handle_event_quit(self, p1, p2):
|
def handle_event_quit(self, p1, p2):
|
||||||
self.roster.on_quit() # SUCH FUNCTION DOES NOT EXIST!!
|
self.roster.quit_gtkgui_plugin()
|
||||||
|
|
||||||
def handle_event_myvcard(self, account, array):
|
def handle_event_myvcard(self, account, array):
|
||||||
nick = ''
|
nick = ''
|
||||||
|
|
|
@ -968,14 +968,13 @@ class Roster_window:
|
||||||
def quit_gtkgui_plugin(self):
|
def quit_gtkgui_plugin(self):
|
||||||
"""When we quit the gtk plugin :
|
"""When we quit the gtk plugin :
|
||||||
tell that to the core and exit gtk"""
|
tell that to the core and exit gtk"""
|
||||||
if gajim.config.exist('saveposition'):
|
if gajim.config.get('saveposition'):
|
||||||
if gajim.config.get('saveposition'):
|
x, y = self.window.get_position()
|
||||||
x, y = self.window.get_position()
|
gajim.config.set('x-position', x)
|
||||||
gajim.config.set('x-position', x)
|
gajim.config.set('y-position', y)
|
||||||
gajim.config.set('y-position', y)
|
width, height = self.window.get_size()
|
||||||
width, height = self.window.get_size()
|
gajim.config.set('width', width)
|
||||||
gajim.config.set('width', width)
|
gajim.config.set('height', height)
|
||||||
gajim.config.set('height', height)
|
|
||||||
|
|
||||||
self.plugin.save_config()
|
self.plugin.save_config()
|
||||||
for account in gajim.connections:
|
for account in gajim.connections:
|
||||||
|
|
Loading…
Reference in New Issue