From 2a6d1a988ceac50bf477f00f58464ea70d52dea4 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 20 Jun 2023 15:35:00 -0700 Subject: [PATCH] libsysprof-gtk: redraw layer if properties change --- src/libsysprof-gtk/sysprof-column-layer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libsysprof-gtk/sysprof-column-layer.c b/src/libsysprof-gtk/sysprof-column-layer.c index be9f924b..b83f6153 100644 --- a/src/libsysprof-gtk/sysprof-column-layer.c +++ b/src/libsysprof-gtk/sysprof-column-layer.c @@ -311,6 +311,7 @@ sysprof_column_layer_set_color (SysprofColumnLayer *self, { self->color = *color; g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_COLOR]); + gtk_widget_queue_draw (GTK_WIDGET (self)); } } @@ -337,6 +338,7 @@ sysprof_column_layer_set_hover_color (SysprofColumnLayer *self, { self->hover_color = *hover_color; g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_HOVER_COLOR]); + gtk_widget_queue_draw (GTK_WIDGET (self)); } }