gtk.Builder.get_widget is now known as gtk.Builder.get_object. Fixes #5709

This commit is contained in:
Alexander Cherniuk 2010-04-19 12:37:08 +03:00
parent e6f6f65746
commit 6bf8a13a26
1 changed files with 3 additions and 3 deletions

View File

@ -1648,14 +1648,14 @@ class AccountsWindow:
self.dialog.destroy() self.dialog.destroy()
if not path_to_clientcert_file: if not path_to_clientcert_file:
return return
self.xml.get_widget('cert_entry1').set_text(path_to_clientcert_file) self.xml.get_object('cert_entry1').set_text(path_to_clientcert_file)
gajim.config.set_per('accounts', self.current_account, gajim.config.set_per('accounts', self.current_account,
'client_cert', path_to_clientcert_file) 'client_cert', path_to_clientcert_file)
def on_cancel(widget): def on_cancel(widget):
self.dialog.destroy() self.dialog.destroy()
path_to_clientcert_file = self.xml.get_widget('cert_entry1').get_text() path_to_clientcert_file = self.xml.get_object('cert_entry1').get_text()
self.dialog = dialogs.ClientCertChooserDialog(path_to_clientcert_file, self.dialog = dialogs.ClientCertChooserDialog(path_to_clientcert_file,
on_ok, on_cancel) on_ok, on_cancel)
@ -1817,7 +1817,7 @@ class AccountsWindow:
'accounts', account, 'resource')) 'accounts', account, 'resource'))
client_cert = gajim.config.get_per('accounts', account, 'client_cert') client_cert = gajim.config.get_per('accounts', account, 'client_cert')
self.xml.get_widget('cert_entry1').set_text(client_cert) self.xml.get_object('cert_entry1').set_text(client_cert)
self.xml.get_object('adjust_priority_with_status_checkbutton1').\ self.xml.get_object('adjust_priority_with_status_checkbutton1').\
set_active(gajim.config.get_per('accounts', account, set_active(gajim.config.get_per('accounts', account,