From 876445f080a4f099d2b567078731a449cd1102f2 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 6 Aug 2024 14:56:27 -0400 Subject: [PATCH] inspector: Show color states of textures --- gtk/inspector/recorder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c index 3ba6f9d463..71aa73391c 100644 --- a/gtk/inspector/recorder.c +++ b/gtk/inspector/recorder.c @@ -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;