[#3058|GTKUI] Fix unable to add user to daemon

This commit is contained in:
Calum Lind 2017-06-16 01:18:34 +01:00
parent 3330e97d05
commit 89e245e2d3
1 changed files with 2 additions and 1 deletions

View File

@ -270,7 +270,8 @@ class AccountDialog(BaseDialog):
self.authlevel_label.set_alignment(1.0, 0.5)
self.authlevel_label.set_padding(5, 5)
self.authlevel_combo = gtk.ComboBoxText()
# combo_box_new_text is deprecated but no other pygtk alternative.
self.authlevel_combo = gtk.combo_box_new_text()
active_idx = None
for idx, level in enumerate(levels_mapping):
self.authlevel_combo.append_text(level)