summaryrefslogtreecommitdiff
path: root/src/themes/coco
diff options
context:
space:
mode:
authorFabrice Creuzot <[email protected]>2025-02-27 19:19:54 +0100
committerLuke from DC <[email protected]>2025-03-11 05:48:30 +0000
commitc4497b9414a70050d89a0bdce52d42c77ee87adb (patch)
treeb2ce2a8d96fcf5c60e4d66e63930955e4a35592e /src/themes/coco
parentb0a77161f8b601ecacf38fddae9264901765763b (diff)
downloadmate-notification-daemon-master.tar.bz2
mate-notification-daemon-master.tar.xz
Add countdown CSS classHEADmaster
Diffstat (limited to 'src/themes/coco')
-rw-r--r--src/themes/coco/coco-theme.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c
index 90f95cd..b96c52f 100644
--- a/src/themes/coco/coco-theme.c
+++ b/src/themes/coco/coco-theme.c
@@ -640,11 +640,15 @@ add_notification_action(GtkWindow *nw, const char *text, const char *key,
gtk_widget_set_halign (windata->pie_countdown, GTK_ALIGN_END);
gtk_widget_show(windata->pie_countdown);
+ #if GTK_CHECK_VERSION (4,0,0)
+ gtk_widget_add_css_class (windata->pie_countdown, "countdown");
+ #else
+ gtk_style_context_add_class (gtk_widget_get_style_context (windata->pie_countdown), "countdown");
+ #endif
+
gtk_box_pack_end (GTK_BOX (windata->actions_box), windata->pie_countdown, FALSE, TRUE, 0);
- gtk_widget_set_size_request(windata->pie_countdown,
- PIE_WIDTH, PIE_HEIGHT);
- g_signal_connect(G_OBJECT(windata->pie_countdown), "draw",
- G_CALLBACK(countdown_expose_cb), windata);
+ gtk_widget_set_size_request(windata->pie_countdown, PIE_WIDTH, PIE_HEIGHT);
+ g_signal_connect(G_OBJECT(windata->pie_countdown), "draw", G_CALLBACK (countdown_expose_cb), windata);
}
}