make configure button sensitive only when a service is selected in pep window. fixes #3750
This commit is contained in:
parent
d0aa21eb24
commit
93f76ce6ee
|
@ -3671,10 +3671,13 @@ class ManagePEPServicesWindow:
|
||||||
self.xml = gtkgui_helpers.get_glade('manage_pep_services_window.glade')
|
self.xml = gtkgui_helpers.get_glade('manage_pep_services_window.glade')
|
||||||
self.window = self.xml.get_widget('manage_pep_services_window')
|
self.window = self.xml.get_widget('manage_pep_services_window')
|
||||||
self.window.set_transient_for(gajim.interface.roster.window)
|
self.window.set_transient_for(gajim.interface.roster.window)
|
||||||
|
self.xml.get_widget('configure_button').set_sensitive(False)
|
||||||
self.xml.signal_autoconnect(self)
|
self.xml.signal_autoconnect(self)
|
||||||
self.account = account
|
self.account = account
|
||||||
|
|
||||||
self.init_services()
|
self.init_services()
|
||||||
|
self.xml.get_widget('services_treeview').get_selection().connect(
|
||||||
|
'changed', self.on_services_selection_changed)
|
||||||
self.window.show_all()
|
self.window.show_all()
|
||||||
|
|
||||||
def on_manage_pep_services_window_destroy(self, widget):
|
def on_manage_pep_services_window_destroy(self, widget):
|
||||||
|
@ -3684,6 +3687,9 @@ class ManagePEPServicesWindow:
|
||||||
def on_close_button_clicked(self, widget):
|
def on_close_button_clicked(self, widget):
|
||||||
self.window.destroy()
|
self.window.destroy()
|
||||||
|
|
||||||
|
def on_services_selection_changed(self, sel):
|
||||||
|
self.xml.get_widget('configure_button').set_sensitive(True)
|
||||||
|
|
||||||
def init_services(self):
|
def init_services(self):
|
||||||
self.treeview = self.xml.get_widget('services_treeview')
|
self.treeview = self.xml.get_widget('services_treeview')
|
||||||
# service, access_model, group
|
# service, access_model, group
|
||||||
|
|
Loading…
Reference in New Issue