inspector: Show color states of textures

This commit is contained in:
Matthias Clasen
2024-08-06 14:56:27 -04:00
parent c419d0bdf6
commit 20cb024cdb

View File

@@ -990,6 +990,8 @@ add_texture_rows (GListStore *store,
add_text_row (store, "Type", "%s", G_OBJECT_TYPE_NAME (texture));
add_text_row (store, "Size", "%u x %u", gdk_texture_get_width (texture), gdk_texture_get_height (texture));
add_text_row (store, "Format", "%s", enum_to_nick (GDK_TYPE_MEMORY_FORMAT, gdk_texture_get_format (texture)));
add_text_row (store, "Color State", "%s", gdk_color_state_get_name (gdk_texture_get_color_state (texture)));
if (GDK_IS_MEMORY_TEXTURE (texture))
{
GBytes *bytes;