[PATCH 2/4] clock: binary: fix state flag check

Felipe Contreras felipe.contreras at gmail.com
Thu Aug 4 00:30:33 CEST 2022


gtk_widget_get_state_flags() returns StateFlags, not State.

Signed-off-by: Felipe Contreras <felipe.contreras at gmail.com>
---
 plugins/clock/clock-binary.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/clock/clock-binary.c b/plugins/clock/clock-binary.c
index 2e96ff2e..b7dd6a95 100644
--- a/plugins/clock/clock-binary.c
+++ b/plugins/clock/clock-binary.c
@@ -371,7 +371,7 @@ xfce_clock_binary_draw_binary (XfceClockBinary *binary,
 
   ctx = gtk_widget_get_style_context (GTK_WIDGET (binary));
 
-  if (G_UNLIKELY (gtk_widget_get_state_flags (GTK_WIDGET (binary)) & GTK_STATE_INSENSITIVE))
+  if (G_UNLIKELY (gtk_widget_get_state_flags (GTK_WIDGET (binary)) & GTK_STATE_FLAG_INSENSITIVE))
     {
       gtk_style_context_get_color (ctx, gtk_widget_get_state_flags (GTK_WIDGET (binary)),
                                    &inactive_rgba);
-- 
2.37.1.313.g01a229ef5e



More information about the Xfce4-dev mailing list