Commit 24acfc0d authored by Cédric Bellegarde's avatar Cédric Bellegarde

Deprecated in last GNOME

parent 5166932d
Pipeline #57725 passed with stage
in 15 minutes and 53 seconds
......@@ -58,7 +58,7 @@ class Row(Gtk.ListBoxRow):
self.__item = item
value = GLib.uri_escape_string(item.get_property("value"), None, True)
markup = "%s <b>%s</b>" % (item.get_property("name"), value)
self.__label = Gtk.Label()
self.__label = Gtk.Label.new()
self.__label.set_markup(markup)
self.__label.set_max_width_chars(20)
self.__label.set_property("halign", Gtk.Align.START)
......
......@@ -96,7 +96,7 @@ class ToolbarEnd(Gtk.Bin):
Notify user about download
@param download as WebKit2.Download
"""
header = Gtk.Label()
header = Gtk.Label.new()
header.set_markup("<b>" + _("Downloading:") + "</b>")
header.set_ellipsize(Pango.EllipsizeMode.END)
header.show()
......
......@@ -61,7 +61,7 @@ class FindWidget(Gtk.SearchBar):
GLib.Variant("s", "next")))
forward_button.show()
self.__label = Gtk.Label()
self.__label = Gtk.Label.new()
self.__label.set_property("halign", Gtk.Align.START)
self.__label.show()
......
......@@ -23,7 +23,7 @@ class UriLabelWidget(Gtk.EventBox):
Init label
"""
Gtk.EventBox.__init__(self)
self.__label = Gtk.Label()
self.__label = Gtk.Label.new()
self.__label.set_ellipsize(Pango.EllipsizeMode.END)
self.__label.get_style_context().add_class("urilabel")
self.__label.show()
......
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