gnome-software:wip/hughsie/cachekey2

Last commit made on 2019-11-20
Get this branch:
git clone -b wip/hughsie/cachekey2 https://git.launchpad.net/gnome-software

Branch merges

Branch information

Name:
wip/hughsie/cachekey2
Repository:
lp:gnome-software

Recent commits

d5d78df... by Richard Hughes on 2019-06-20

fwupd: Use custom GsApp GType

d81b8f1... by Richard Hughes on 2019-06-20

flatpak: Use a custom GsApp GType

5eb67c4... by Richard Hughes on 2019-06-20

Allow plugins to subclass GsApp

This allows us make the storing of metadata more efficient, and also allows us
to use custom _to_string() functions for the types.

NOTE: We have to be a bit careful when creating GsApp objects in modules outside
of the plugin -- for instance GsAppstream.c needs to use gs_plugin_app_new()
rather than gs_app_new() so the correct type gets used. Simlarly, plugins need
to implement gs_plugin_create_app() if they are defining a custom GType.

0ca6498... by Cédric VALMARY (Tot en òc) on 2019-11-19

Update Occitan translation

c53c670... by Philip Withnall <email address hidden> on 2019-11-19

gs-common: Stop storing GtkCssProvider redundantly

It’s already stored within the `GtkWidget` with a strong reference.
Nothing else refers to `GnomeSoftware::provider`, so we can safely drop
this.

Signed-off-by: Philip Withnall <email address hidden>

fed85f0... by Philip Withnall <email address hidden> on 2019-11-13

gs-common: Require a CSS class name for custom CSS

Rather than building one out of the pointer to the widget name, require
a hard-coded one. CSS class names are interned into the global `GQuark`
table by GTK, so constructing a different one for each widget means that
table grows without bound. That is bad — all those strings are
(deliberately) leaked, and every addition slows the quark table down a
bit.

In order to allow the same class name to be reused across multiple
widgets without interfering, install the custom `GtkCssProvider` only on
the given widget instance, rather than for the entire screen.

Signed-off-by: Philip Withnall <email address hidden>

5800e1e... by jimmac on 2019-11-19

banner: Transmission

avoid using app icon

107bbef... by jimmac on 2019-11-18

banners: Maps -- avoid using app icon

See https://gitlab.gnome.org/Teams/Design/software-mockups/issues/2 for discussion.

a014b3d... by Philip Withnall <email address hidden> on 2019-11-12

flatpak: Ensure use of the installed_refs cache is thread-safe

Just like the `broken_remotes` cache, the `installed_refs` cache is
shared between multiple threads. Previously, there was no mutex
protecting access to it, so one thread could replace it while another
was using it. Or, more typically (which is how I spotted this), two
threads would race to call `flatpak_installation_list_installed_refs()`
to populate it; one would win, and the other thread’s value would be
leaked.

This was resulting in 80KB of leaks after a few minutes of using
gnome-software.

Signed-off-by: Philip Withnall <email address hidden>

d35f942... by Philip Withnall <email address hidden> on 2019-11-12

gs-details-page: Fix a minor leak in a comparison function

Signed-off-by: Philip Withnall <email address hidden>