Commit e9cd59fc authored by Cédric Bellegarde's avatar Cédric Bellegarde

Be sure we keep pointing to an image. Fix #331

parent c9aa8015
Pipeline #60757 passed with stage
in 10 minutes and 54 seconds
......@@ -53,10 +53,11 @@ class PagesManagerChild(Gtk.FlowBoxChild):
self.__pin_button = builder.get_object("pin_button")
self.__pin_image = builder.get_object("pin_image")
self.__close_button = builder.get_object("close_button")
self.__close_button.get_image().set_from_icon_name(
self.__close_button_image = self.__close_button.get_image()
self.__close_button_image.set_from_icon_name(
"window-close-symbolic",
Gtk.IconSize.INVALID)
self.__close_button.get_image().set_property("pixel-size",
self.__close_button_image.set_property("pixel-size",
ArtSize.FAVICON)
self.__spinner = builder.get_object("spinner")
self.add(builder.get_object("widget"))
......@@ -162,7 +163,7 @@ class PagesManagerChild(Gtk.FlowBoxChild):
self.__pin_image.set_opacity(0.5)
self.__pin_button.set_tooltip_text(_("Pin this page"))
self.__pin_button.set_opacity(1)
self.__close_button.get_image().set_from_icon_name(
self.__close_button_image.set_from_icon_name(
"window-close-symbolic",
Gtk.IconSize.INVALID)
......
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