summaryrefslogtreecommitdiff
path: root/src/themes/coco
diff options
context:
space:
mode:
authorFabrice Creuzot <[email protected]>2025-02-27 15:59:03 +0100
committerLuke from DC <[email protected]>2025-03-11 05:48:30 +0000
commit301c586d8ffefb525a8702eca4973a050043404a (patch)
tree264e973dac888ee4764d65d7bd394f0ba36e49bb /src/themes/coco
parent8ffe9fcff64d6a871946689515705778831350f4 (diff)
downloadmate-notification-daemon-301c586d8ffefb525a8702eca4973a050043404a.tar.bz2
mate-notification-daemon-301c586d8ffefb525a8702eca4973a050043404a.tar.xz
Add notification-box CSS class
Diffstat (limited to 'src/themes/coco')
-rw-r--r--src/themes/coco/coco-theme.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c
index dbed838..e95ff0a 100644
--- a/src/themes/coco/coco-theme.c
+++ b/src/themes/coco/coco-theme.c
@@ -418,6 +418,12 @@ create_notification(UrlClickedCb url_clicked)
gtk_widget_show(main_vbox);
gtk_container_add (GTK_CONTAINER (win), main_vbox);
+ #if GTK_CHECK_VERSION (4,0,0)
+ gtk_widget_add_css_class (main_vbox, "notification-box");
+ #else
+ gtk_style_context_add_class (gtk_widget_get_style_context (main_vbox), "notification-box");
+ #endif
+
g_signal_connect (G_OBJECT (main_vbox), "draw",
G_CALLBACK (on_draw), windata);