gnome-shell/src/st
Florian Müllner 6e629c0f10 st/icon: Only get resource-scale after peeking theme node
If an actor is not on any stage view, then it doesn't have a valid
resource scale, which will hit an assert later.

When that is the case (for example when running headless), we expect
that there is no valid theme node (yet) either, so simply moving
the clutter_actor_get_resource_scale() call after peeking at the
theme node is enough to avoid the crash.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4522

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1935>
2021-08-05 10:03:51 +00:00
..
croco *: Fix spelling mistakes found by codespell 2020-08-21 18:25:09 +00:00
meson.build Port to MetaContext 2021-07-15 12:42:17 +00:00
st-adjustment.c StAdjustment: note when 'changed' is not emitted 2020-09-07 15:58:14 -07:00
st-adjustment.h st/adjustment: Add ::actor property 2020-07-02 20:50:03 +00:00
st-bin.c st-bin: Disallow st_bin_set_child with already-parented children 2020-11-26 13:47:11 +01:00
st-bin.h st: Remove deprecated Bin properties 2020-05-21 14:36:59 +02:00
st-border-image.c St Documentation: add and improve documentation for public classes 2020-08-08 11:26:41 +00:00
st-border-image.h st: Use G_DECLARE_*_TYPE 2015-10-15 22:02:35 +02:00
st-box-layout.c St Documentation: add and improve documentation for public classes 2020-08-08 11:26:41 +00:00
st-box-layout.h st/box-layout: Reimplement as a StViewport subclass 2020-01-20 16:15:32 -03:00
st-button.c st/button: Consider touch sequences for ::pressed state 2021-05-11 16:13:49 +00:00
st-button.h St Documentation: add and improve documentation for public classes 2020-08-08 11:26:41 +00:00
st-clipboard.c *: Fix spelling mistakes found by codespell 2020-08-21 18:25:09 +00:00
st-clipboard.h st: Add st_clipboard_get_content() 2020-06-19 13:44:15 +02:00
st-drawing-area.c *: Fix spelling mistakes found by codespell 2020-08-21 18:25:09 +00:00
st-drawing-area.h st: Use G_DECLARE_*_TYPE 2015-10-15 22:02:35 +02:00
st-entry.c st/entry: Don't set font twice on style changes 2020-11-18 21:26:53 +01:00
st-entry.h st: Make StEntry rely entirely on ClutterInputMethod/Focus 2018-02-05 17:46:57 +01:00
st-focus-manager.c St Documentation: add and improve documentation for public classes 2020-08-08 11:26:41 +00:00
st-focus-manager.h st: Use G_DECLARE_*_TYPE 2015-10-15 22:02:35 +02:00
st-generic-accessible.c St Documentation: add and improve documentation for public classes 2020-08-08 11:26:41 +00:00
st-generic-accessible.h
st-icon-colors.c Stop using GSlice 2020-10-19 20:18:11 +02:00
st-icon-colors.h st: Add st_icon_colors_equal() 2019-07-07 21:01:33 +00:00
st-icon.c st/icon: Only get resource-scale after peeking theme node 2021-08-05 10:03:51 +00:00
st-icon.h st/icon: Add API to set the fallback GIcon 2020-01-13 14:44:08 +01:00
st-image-content.c St Documentation: add and improve documentation for public classes 2020-08-08 11:26:41 +00:00
st-image-content.h st-image-content: Wrap ClutterImage with explicit preferred size 2019-03-01 17:12:52 +00:00
st-label.c St Documentation: add and improve documentation for public classes 2020-08-08 11:26:41 +00:00
st-label.h st: Use G_DECLARE_*_TYPE 2015-10-15 22:02:35 +02:00
st-password-entry.c st/password-entry: Honor disable-show-password key 2021-07-30 14:17:07 +00:00
st-password-entry.h StPasswordEntry: Add the peek-password-icon for show/hide passwords 2019-12-17 23:08:43 +01:00
st-private.c st/private: Set sampling_radius to match the blur radius 2021-06-29 22:32:24 +00:00
st-private.h st: Cleanup ST_PARAM_* and add WRITABLE version 2019-07-30 13:58:44 +00:00
st-scroll-bar.c st/scroll-bar: Remove unneeded style-changed handler 2021-07-30 13:59:18 +00:00
st-scroll-bar.h st: Use G_DECLARE_*_TYPE 2015-10-15 22:02:35 +02:00
st-scroll-view-fade.c st/scroll-view-fade: Add :extend-fade-area property 2021-05-11 13:21:40 +00:00
st-scroll-view-fade.glsl st/scroll-view-fade: Add :extend-fade-area property 2021-05-11 13:21:40 +00:00
st-scroll-view-fade.h st: Use G_DECLARE_*_TYPE 2015-10-15 22:02:35 +02:00
st-scroll-view.c st/scroll-view: Don't emit superfluous style-changed events on children 2021-07-30 13:59:18 +00:00
st-scroll-view.h st/scroll-view: Make fade effect take ClutterMargin 2021-03-02 22:02:56 +00:00
st-scrollable.c *: Fix spelling mistakes found by codespell 2020-08-21 18:25:09 +00:00
st-scrollable.h st: Use G_DECLARE_*_TYPE 2015-10-15 22:02:35 +02:00
st-settings.c st/settings: Add new disable-show-password setting 2021-07-30 14:17:07 +00:00
st-settings.h st/settings: Add API to inhibit animations 2020-02-20 11:14:55 +00:00
st-shadow.c Stop using GSlice 2020-10-19 20:18:11 +02:00
st-shadow.h st-shadow: Remove unnecessary ';' 2019-03-04 22:29:33 +00:00
st-texture-cache.c st/texture-cache: Split out load_cairo_surface_to_gicon() method 2021-03-14 20:36:41 +00:00
st-texture-cache.h st/texture-cache: Split out load_cairo_surface_to_gicon() method 2021-03-14 20:36:41 +00:00
st-theme-context.c *: Fix spelling mistakes found by codespell 2020-08-21 18:25:09 +00:00
st-theme-context.h st/theme-context: Add a getter for the scale-factor property 2020-04-06 11:24:30 -03:00
st-theme-node-drawing.c st/theme-node-drawing: Render box-shadow independently of background-color 2021-06-30 12:28:08 +00:00
st-theme-node-private.h st/theme-context: Also remove theme nodes on stylesheet changes 2020-04-28 19:53:58 +00:00
st-theme-node-transition.c Adapt to CoglFramebuffers turning into GObjects 2020-10-16 16:18:48 +00:00
st-theme-node-transition.h st/theme-node-transition: Pass actor when constructing timeline 2020-07-02 20:50:03 +00:00
st-theme-node.c *: Fix spelling mistakes found by codespell 2020-08-21 18:25:09 +00:00
st-theme-node.h St Documentation: add and improve documentation for public classes 2020-08-08 11:26:41 +00:00
st-theme-private.h Include the libcroco sources directly under src/st/croco 2019-11-29 17:50:03 +00:00
st-theme.c *: Fix spelling mistakes found by codespell 2020-08-21 18:25:09 +00:00
st-theme.h st: Drop StWidget theme overriding API 2019-11-05 12:36:28 +00:00
st-types.h
st-viewport.c st: Only use clutter_actor_invalidate_paint_volume() if the API exists 2021-04-26 12:18:52 +00:00
st-viewport.h Introduce StViewport 2020-01-20 16:15:22 -03:00
st-widget-accessible.h
st-widget.c st/widget: Include the shadow in the paint volume 2021-06-29 22:32:24 +00:00
st-widget.h St Documentation: add and improve documentation for public classes 2020-08-08 11:26:41 +00:00
st.h.in build: Support the meson build system 2017-07-20 00:20:54 +02:00
test-theme.c Port to MetaContext 2021-07-15 12:42:17 +00:00
test-theme.css test-theme: Stop using ClutterCairoTexture 2019-02-26 03:04:00 +01:00