Commit 44229636 authored by Philipp Hörist's avatar Philipp Hörist

Remove duplicated code

ellipsize is set in MaxWidthComboBoxText
parent 3a845eb0
......@@ -523,8 +523,7 @@ class ComboSetting(GenericSetting):
self.combo = MaxWidthComboBoxText()
self.combo.set_valign(Gtk.Align.CENTER)
text_renderer = self.combo.get_cells()[0]
text_renderer.set_property('ellipsize', Pango.EllipsizeMode.END)
for index, value in enumerate(combo_items):
if isinstance(value, tuple):
value, label = value
......@@ -563,8 +562,6 @@ class ProxyComboSetting(GenericSetting):
self.combo = MaxWidthComboBoxText()
self.combo.set_valign(Gtk.Align.CENTER)
text_renderer = self.combo.get_cells()[0]
text_renderer.set_property('ellipsize', Pango.EllipsizeMode.END)
self._signal_id = None
self.update_values()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment