From b0a77161f8b601ecacf38fddae9264901765763b Mon Sep 17 00:00:00 2001 From: Fabrice Creuzot Date: Thu, 27 Feb 2025 19:10:05 +0100 Subject: Add actions-box CSS class --- src/themes/coco/coco-theme.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/themes/coco/coco-theme.c') diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c index 01ded85..90f95cd 100644 --- a/src/themes/coco/coco-theme.c +++ b/src/themes/coco/coco-theme.c @@ -486,6 +486,13 @@ create_notification(UrlClickedCb url_clicked) windata->actions_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); gtk_widget_set_halign(windata->actions_box, GTK_ALIGN_END); + + #if GTK_CHECK_VERSION (4,0,0) + gtk_widget_add_css_class (windata->actions_box, "actions-box"); + #else + gtk_style_context_add_class (gtk_widget_get_style_context (windata->actions_box), "actions-box"); + #endif + gtk_widget_show(windata->actions_box); gtk_box_pack_start(GTK_BOX(vbox), windata->actions_box, FALSE, TRUE, 0); -- cgit v1.2.1