Commit a43c6f87 authored by Alexander's avatar Alexander

[stickers] Fix more get_object uses

parent 614edb2b
Pipeline #6902 passed with stage
in 1 minute and 49 seconds
......@@ -722,9 +722,8 @@ class StickersButton(Gtk.Button):
def _create_listitem(self, sticker_pack):
item = get_builder(self._local_file_path('gtk/popover_listitem.ui'))
item.get_object('pack_name').set_markup(f'<big>{sticker_pack.name}</big>')
flow = item.get_object('stickers')
flow.set_filter_func(self._flowbox_filter_func, None)
item.pack_name.set_markup(f'<big>{sticker_pack.name}</big>')
item.stickers.set_filter_func(self._flowbox_filter_func, None)
stickers_strings = []
for sticker in sticker_pack.stickers:
img = image_from_pixbuf(sticker.pixbuf)
......@@ -744,10 +743,10 @@ class StickersButton(Gtk.Button):
wrapper.sticker_strings = [sticker.desc] + sticker.suggests
stickers_strings += wrapper.sticker_strings
flow.add(wrapper)
item.stickers.add(wrapper)
row_item = Gtk.ListBoxRow.new()
row_item.add(item.get_object('sticker_pack_row'))
row_item.add(item.sticker_pack_row)
# NOTE: See above NOTE
row_item.stickers_strings = stickers_strings
......
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