fixes
This commit is contained in:
parent
ac84e25dcb
commit
37e75cb84f
2 changed files with 317 additions and 647 deletions
|
@ -1267,6 +1267,7 @@ class Account_modification_window:
|
||||||
return
|
return
|
||||||
self.on_checkbutton_toggled_and_clear(widget, \
|
self.on_checkbutton_toggled_and_clear(widget, \
|
||||||
[self.xml.get_widget('password_entry')])
|
[self.xml.get_widget('password_entry')])
|
||||||
|
self.xml.get_widget('password_entry').grab_focus()
|
||||||
|
|
||||||
def on_new_account_checkbutton_toggled(self, widget):
|
def on_new_account_checkbutton_toggled(self, widget):
|
||||||
password_entry = self.xml.get_widget('password_entry')
|
password_entry = self.xml.get_widget('password_entry')
|
||||||
|
@ -1318,8 +1319,8 @@ class Accounts_window:
|
||||||
if self.plugin.accounts[account].has_key('active'):
|
if self.plugin.accounts[account].has_key('active'):
|
||||||
activ = self.plugin.accounts[account]['active']
|
activ = self.plugin.accounts[account]['active']
|
||||||
iter = model.append()
|
iter = model.append()
|
||||||
model.set(iter, 0, account, 1, \
|
model.set(iter, 0, account, 1,\
|
||||||
self.plugin.accounts[account]['hostname'], 2, activ)
|
self.plugin.accounts[account]['hostname'])
|
||||||
|
|
||||||
def on_accounts_treeview_cursor_changed(self, widget):
|
def on_accounts_treeview_cursor_changed(self, widget):
|
||||||
"""Activate delete and modify buttons when a row is selected"""
|
"""Activate delete and modify buttons when a row is selected"""
|
||||||
|
@ -1357,7 +1358,6 @@ class Accounts_window:
|
||||||
"""When modify button is clicked :
|
"""When modify button is clicked :
|
||||||
open the account information window for this account"""
|
open the account information window for this account"""
|
||||||
if not self.plugin.windows.has_key('account_modification_window'):
|
if not self.plugin.windows.has_key('account_modification_window'):
|
||||||
# infos = {}
|
|
||||||
sel = self.accounts_treeview.get_selection()
|
sel = self.accounts_treeview.get_selection()
|
||||||
(model, iter) = sel.get_selected()
|
(model, iter) = sel.get_selected()
|
||||||
account = model.get_value(iter, 0)
|
account = model.get_value(iter, 0)
|
||||||
|
@ -1368,11 +1368,8 @@ class Accounts_window:
|
||||||
self.plugin.windows['account_modification_window'] = \
|
self.plugin.windows['account_modification_window'] = \
|
||||||
Account_modification_window(self.plugin, infos)
|
Account_modification_window(self.plugin, infos)
|
||||||
|
|
||||||
def on_toggled(self, cell, path, model=None):
|
def on_sync_with_global_status_checkbutton_toggled(self, widget):
|
||||||
iter = model.get_iter(path)
|
if widget.get_active():
|
||||||
model.set_value(iter, 2, not cell.get_active())
|
|
||||||
account = model.get_value(iter, 0)
|
|
||||||
if cell.get_active():
|
|
||||||
self.plugin.accounts[account]['active'] = 0
|
self.plugin.accounts[account]['active'] = 0
|
||||||
else:
|
else:
|
||||||
self.plugin.accounts[account]['active'] = 1
|
self.plugin.accounts[account]['active'] = 1
|
||||||
|
@ -1392,11 +1389,6 @@ class Accounts_window:
|
||||||
renderer = gtk.CellRendererText()
|
renderer = gtk.CellRendererText()
|
||||||
self.accounts_treeview.insert_column_with_attributes(-1, _('Server'), \
|
self.accounts_treeview.insert_column_with_attributes(-1, _('Server'), \
|
||||||
renderer, text=1)
|
renderer, text=1)
|
||||||
renderer = gtk.CellRendererToggle()
|
|
||||||
renderer.set_property('activatable', True)
|
|
||||||
renderer.connect('toggled', self.on_toggled, model)
|
|
||||||
self.accounts_treeview.insert_column_with_attributes(-1, _('Sync with global status'), \
|
|
||||||
renderer, active=2)
|
|
||||||
self.xml.signal_autoconnect(self)
|
self.xml.signal_autoconnect(self)
|
||||||
self.init_accounts()
|
self.init_accounts()
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue