Jonas Dreßler 2327fc9287 st/theme: Remove entry from files_by_stylesheet after emitting signal
Since e06109c23ce2a6dd53d32c26a89ab46a952d7373 we keep old theme nodes
valid during the emission of the "custom-stylesheets-changed" signal.

It turns out that we might still look up the file of a stylesheet using
the files_by_stylesheet hashtable during the emission of that signal,
causing a crash because the assertion in _st_theme_resolve_url() fails.

So fix that and remove the stylesheet entry from the files_by_stylesheet
hashtable after emitting the "custom-stylesheets-changed" signal. And to
be consistent, also remove the entry from the stylesheets_by_file
hashtable after emitting the signal.

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2757


(cherry picked from commit 0f947d4ff99e220fbc91e64a10511f5ebc69d06e)
2020-05-21 22:47:15 +00:00
..
2014-01-09 14:59:31 -05:00
2014-01-09 14:59:31 -05:00
2014-01-09 14:59:31 -05:00
2019-08-27 15:30:51 +03:00
2019-02-06 18:29:15 +01:00
2020-02-26 19:00:05 -08:00
2017-08-02 11:27:42 +01:00
2015-10-15 22:58:28 +02:00