mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 00:11:29 +00:00
inspector: Show more detail for border nodes
Show the color state, and create textures with the full color information.
This commit is contained in:
parent
3002591d08
commit
161c0f0963
@ -1221,7 +1221,7 @@ populate_render_node_properties (GListStore *store,
|
||||
{
|
||||
const char *name[4] = { "Top", "Right", "Bottom", "Left" };
|
||||
const float *widths = gsk_border_node_get_widths (node);
|
||||
const GdkRGBA *colors = gsk_border_node_get_colors (node);
|
||||
const GdkColor *colors = gsk_border_node_get_colors2 (node);
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 4; i++)
|
||||
@ -1229,9 +1229,9 @@ populate_render_node_properties (GListStore *store,
|
||||
GdkTexture *texture;
|
||||
char *text, *tmp;
|
||||
|
||||
text = gdk_rgba_to_string (&colors[i]);
|
||||
text = gdk_color_to_string (&colors[i]);
|
||||
tmp = g_strdup_printf ("%.2f, %s", widths[i], text);
|
||||
texture = get_color_texture (&colors[i]);
|
||||
texture = get_color2_texture (&colors[i]);
|
||||
list_store_add_object_property (store, name[i], tmp, texture);
|
||||
g_object_unref (texture);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user