[PATCH 1/4] clock: binary: don't get style of the parent

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


We want the style of the clock, not the clock button.

xfce_clock_binary_draw_binary() is already doing this correctly.

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 e9b2882d..2e96ff2e 100644
--- a/plugins/clock/clock-binary.c
+++ b/plugins/clock/clock-binary.c
@@ -272,7 +272,7 @@ xfce_clock_binary_draw_true_binary (XfceClockBinary *binary,
   GtkStyleContext  *ctx;
   GdkRGBA           active_rgba, inactive_rgba;
 
-  ctx = gtk_widget_get_style_context (GTK_WIDGET (gtk_widget_get_parent (GTK_WIDGET (binary))));
+  ctx = gtk_widget_get_style_context (GTK_WIDGET (binary));
 
   if (G_UNLIKELY (gtk_widget_get_state_flags (GTK_WIDGET (binary)) & GTK_STATE_FLAG_INSENSITIVE))
     {
-- 
2.37.1.313.g01a229ef5e



More information about the Xfce4-dev mailing list