[PATCH 3/4] clock: binary: get the color of the current state
Felipe Contreras <[email protected]> Wed, 3 Aug 2022 17:30:34 -0500
| Newsgroups | gmane.comp.desktop.xfce.devel.version4 |
|---|---|
| Message-ID | <[email protected]> |
The same way xfce_clock_binary_draw_binary() does it. Signed-off-by: Felipe Contreras <[email protected]> --- plugins/clock/clock-binary.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/clock/clock-binary.c b/plugins/clock/clock-binary.c index b7dd6a95..10d69d03 100644 --- a/plugins/clock/clock-binary.c +++ b/plugins/clock/clock-binary.c @@ -276,19 +276,19 @@ xfce_clock_binary_draw_true_binary (XfceClockBinary *binary, if (G_UNLIKELY (gtk_widget_get_state_flags (GTK_WIDGET (binary)) & GTK_STATE_FLAG_INSENSITIVE)) { - gtk_style_context_get_color (ctx, GTK_STATE_FLAG_INSENSITIVE, + gtk_style_context_get_color (ctx, gtk_widget_get_state_flags (GTK_WIDGET (binary)), &inactive_rgba); inactive_rgba.alpha = 0.2; - gtk_style_context_get_color (ctx, GTK_STATE_FLAG_INSENSITIVE, + gtk_style_context_get_color (ctx, gtk_widget_get_state_flags (GTK_WIDGET (binary)), &active_rgba); active_rgba.alpha = 1.0; } else { - gtk_style_context_get_color (ctx, GTK_STATE_FLAG_NORMAL, + gtk_style_context_get_color (ctx, gtk_widget_get_state_flags (GTK_WIDGET (binary)), &inactive_rgba); inactive_rgba.alpha = 0.2; - gtk_style_context_get_color (ctx, GTK_STATE_FLAG_ACTIVE, + gtk_style_context_get_color (ctx, gtk_widget_get_state_flags (GTK_WIDGET (binary)), &active_rgba); active_rgba.alpha = 1.0; } -- 2.37.1.313.g01a229ef5e _______________________________________________ Xfce4-dev mailing list [email protected] https://mail.xfce.org/mailman/listinfo/xfce4-dev