parent
7392883607
commit
042d8aa687
|
@ -313,7 +313,7 @@ class AddAccount(Gtk.Box):
|
||||||
|
|
||||||
self.account = None
|
self.account = None
|
||||||
|
|
||||||
self.label = Gtk.Label(_('Add Account…'))
|
self.label = Gtk.Label(label=_('Add Account…'))
|
||||||
self.label.set_halign(Gtk.Align.START)
|
self.label.set_halign(Gtk.Align.START)
|
||||||
self.label.set_hexpand(True)
|
self.label.set_hexpand(True)
|
||||||
|
|
||||||
|
@ -342,7 +342,7 @@ class Preferences(Gtk.Box):
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
self.account = None
|
self.account = None
|
||||||
|
|
||||||
self.label = Gtk.Label(_('Preferences'))
|
self.label = Gtk.Label(label=_('Preferences'))
|
||||||
self.label.set_halign(Gtk.Align.START)
|
self.label.set_halign(Gtk.Align.START)
|
||||||
self.label.set_hexpand(True)
|
self.label.set_hexpand(True)
|
||||||
|
|
||||||
|
|
|
@ -1071,7 +1071,7 @@ class FileRow(Gtk.ListBoxRow):
|
||||||
def __init__(self, path):
|
def __init__(self, path):
|
||||||
Gtk.ListBoxRow.__init__(self)
|
Gtk.ListBoxRow.__init__(self)
|
||||||
self.path = Path(path)
|
self.path = Path(path)
|
||||||
label = Gtk.Label(self.path.name)
|
label = Gtk.Label(label=self.path.name)
|
||||||
label.set_ellipsize(Pango.EllipsizeMode.END)
|
label.set_ellipsize(Pango.EllipsizeMode.END)
|
||||||
label.set_xalign(0)
|
label.set_xalign(0)
|
||||||
self.add(label)
|
self.add(label)
|
||||||
|
|
|
@ -297,7 +297,7 @@ class ContactRow(Gtk.Grid):
|
||||||
else:
|
else:
|
||||||
self.name = _('New Contact')
|
self.name = _('New Contact')
|
||||||
|
|
||||||
self.name_label = Gtk.Label(self.name)
|
self.name_label = Gtk.Label(label=self.name)
|
||||||
self.name_label.set_ellipsize(Pango.EllipsizeMode.END)
|
self.name_label.set_ellipsize(Pango.EllipsizeMode.END)
|
||||||
self.name_label.set_xalign(0)
|
self.name_label.set_xalign(0)
|
||||||
self.name_label.set_width_chars(25)
|
self.name_label.set_width_chars(25)
|
||||||
|
@ -310,7 +310,7 @@ class ContactRow(Gtk.Grid):
|
||||||
self.name_label.get_style_context().add_class(css_class)
|
self.name_label.get_style_context().add_class(css_class)
|
||||||
middle_box.add(self.name_label)
|
middle_box.add(self.name_label)
|
||||||
|
|
||||||
self.jid_label = Gtk.Label(jid)
|
self.jid_label = Gtk.Label(label=jid)
|
||||||
self.jid_label.set_ellipsize(Pango.EllipsizeMode.END)
|
self.jid_label.set_ellipsize(Pango.EllipsizeMode.END)
|
||||||
self.jid_label.set_xalign(0)
|
self.jid_label.set_xalign(0)
|
||||||
self.jid_label.set_width_chars(25)
|
self.jid_label.set_width_chars(25)
|
||||||
|
@ -320,7 +320,7 @@ class ContactRow(Gtk.Grid):
|
||||||
self.add(middle_box)
|
self.add(middle_box)
|
||||||
|
|
||||||
if show_account:
|
if show_account:
|
||||||
account_label = Gtk.Label(self.account_label)
|
account_label = Gtk.Label(label=self.account_label)
|
||||||
account_label.set_halign(Gtk.Align.START)
|
account_label.set_halign(Gtk.Align.START)
|
||||||
account_label.set_valign(Gtk.Align.START)
|
account_label.set_valign(Gtk.Align.START)
|
||||||
|
|
||||||
|
|
|
@ -409,7 +409,7 @@ class ChooseOption(Gtk.ListBoxRow):
|
||||||
def __init__(self, option):
|
def __init__(self, option):
|
||||||
Gtk.ListBoxRow.__init__(self)
|
Gtk.ListBoxRow.__init__(self)
|
||||||
self.option = option
|
self.option = option
|
||||||
label = Gtk.Label(option.label)
|
label = Gtk.Label(label=option.label)
|
||||||
label.set_xalign(0)
|
label.set_xalign(0)
|
||||||
self.add(label)
|
self.add(label)
|
||||||
self.show_all()
|
self.show_all()
|
||||||
|
|
Loading…
Reference in New Issue