GNOME Bugzilla – Bug 764141
grl_paging_translate() doesn't handle multiple pages
Last modified: 2018-09-24 09:42:23 UTC
In grilo-lua-sources, the grl-guardian-eyewitness source cannot change the page_size or page_skip, only the page number to get. grl_paging_translate() doesn't handle this. We should review the various lua sources, and try to simplify this so that we can reduce the amount of maths one needs to do to grab the data we need.
Implementing a grl.paging_translate on lua-library would be enough? page_size, page_number, offset = grl.paging_translate () <snip> /* based on */ grl_paging_translate (guint skip, guint count, guint max_page_size, guint *page_size, guint *page_number, guint *internal_offset); </snip>
(In reply to Victor Toso from comment #1) > Implementing a grl.paging_translate on lua-library would be enough? > grl_paging_translate() doesn't handle this. No. This helper doesn't handle the page_size or the page_skip not being changeable.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/grilo/issues/84.