remove some FIXME
This commit is contained in:
parent
572857cf06
commit
b6ba2b1727
|
@ -2273,8 +2273,6 @@ class AdvancedNotificationsWindow:
|
||||||
|
|
||||||
# No rule selected at init time
|
# No rule selected at init time
|
||||||
self.conditions_treeview.get_selection().unselect_all()
|
self.conditions_treeview.get_selection().unselect_all()
|
||||||
#TODO
|
|
||||||
# self.conditions_treeview.set_cursor(None)
|
|
||||||
self.active_num = -1
|
self.active_num = -1
|
||||||
self.config_vbox.set_sensitive(False)
|
self.config_vbox.set_sensitive(False)
|
||||||
self.delete_button.set_sensitive(False)
|
self.delete_button.set_sensitive(False)
|
||||||
|
@ -2293,11 +2291,11 @@ class AdvancedNotificationsWindow:
|
||||||
# event
|
# event
|
||||||
value = gajim.config.get_per('notifications', str(self.active_num),
|
value = gajim.config.get_per('notifications', str(self.active_num),
|
||||||
'event')
|
'event')
|
||||||
|
print value
|
||||||
if value:
|
if value:
|
||||||
self.event_combobox.set_active(self.events_list.index(value))
|
self.event_combobox.set_active(self.events_list.index(value))
|
||||||
else:
|
else:
|
||||||
#TODO: unselect all
|
self.event_combobox.set_active(-1)
|
||||||
pass
|
|
||||||
# recipient_type
|
# recipient_type
|
||||||
value = gajim.config.get_per('notifications', str(self.active_num),
|
value = gajim.config.get_per('notifications', str(self.active_num),
|
||||||
'recipient_type')
|
'recipient_type')
|
||||||
|
@ -2305,8 +2303,7 @@ class AdvancedNotificationsWindow:
|
||||||
self.recipient_type_combobox.set_active(
|
self.recipient_type_combobox.set_active(
|
||||||
self.recipient_types_list.index(value))
|
self.recipient_types_list.index(value))
|
||||||
else:
|
else:
|
||||||
#TODO: unselect all
|
self.recipient_type_combobox.set_active(-1)
|
||||||
pass
|
|
||||||
# recipient
|
# recipient
|
||||||
value = gajim.config.get_per('notifications', str(self.active_num),
|
value = gajim.config.get_per('notifications', str(self.active_num),
|
||||||
'recipients')
|
'recipients')
|
||||||
|
@ -2476,7 +2473,11 @@ class AdvancedNotificationsWindow:
|
||||||
def on_event_combobox_changed(self, widget):
|
def on_event_combobox_changed(self, widget):
|
||||||
if self.active_num < 0:
|
if self.active_num < 0:
|
||||||
return
|
return
|
||||||
event = self.events_list[self.event_combobox.get_active()]
|
active = self.event_combobox.get_active()
|
||||||
|
if active == -1:
|
||||||
|
event = ''
|
||||||
|
else:
|
||||||
|
event = self.events_list[active]
|
||||||
gajim.config.set_per('notifications', str(self.active_num), 'event',
|
gajim.config.set_per('notifications', str(self.active_num), 'event',
|
||||||
event)
|
event)
|
||||||
self.set_treeview_string()
|
self.set_treeview_string()
|
||||||
|
|
Loading…
Reference in New Issue