diff options
author | Fabrice Creuzot <[email protected]> | 2025-02-27 15:59:03 +0100 |
---|---|---|
committer | Luke from DC <[email protected]> | 2025-03-11 05:48:30 +0000 |
commit | 301c586d8ffefb525a8702eca4973a050043404a (patch) | |
tree | 264e973dac888ee4764d65d7bd394f0ba36e49bb | |
parent | 8ffe9fcff64d6a871946689515705778831350f4 (diff) | |
download | mate-notification-daemon-301c586d8ffefb525a8702eca4973a050043404a.tar.bz2 mate-notification-daemon-301c586d8ffefb525a8702eca4973a050043404a.tar.xz |
Add notification-box CSS class
-rw-r--r-- | src/themes/coco/coco-theme.c | 6 | ||||
-rw-r--r-- | src/themes/nodoka/nodoka-theme.c | 6 | ||||
-rw-r--r-- | src/themes/slider/theme.c | 6 | ||||
-rw-r--r-- | src/themes/standard/theme.c | 6 |
4 files changed, 24 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); diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c index bb3cee7..052623a 100644 --- a/src/themes/nodoka/nodoka-theme.c +++ b/src/themes/nodoka/nodoka-theme.c @@ -773,6 +773,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); windata->top_spacer = gtk_image_new(); diff --git a/src/themes/slider/theme.c b/src/themes/slider/theme.c index 6839d64..bc03d23 100644 --- a/src/themes/slider/theme.c +++ b/src/themes/slider/theme.c @@ -364,6 +364,12 @@ GtkWindow* create_notification(UrlClickedCb url_clicked) gtk_container_add(GTK_CONTAINER(win), main_vbox); gtk_container_set_border_width(GTK_CONTAINER(main_vbox), 12); + #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 + windata->main_hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); gtk_widget_show(windata->main_hbox); gtk_box_pack_start(GTK_BOX(main_vbox), windata->main_hbox, FALSE, FALSE, 0); diff --git a/src/themes/standard/theme.c b/src/themes/standard/theme.c index 54fc24f..7b4f267 100644 --- a/src/themes/standard/theme.c +++ b/src/themes/standard/theme.c @@ -696,6 +696,12 @@ GtkWindow* create_notification(UrlClickedCb url_clicked) gtk_container_add (GTK_CONTAINER (win), main_vbox); gtk_container_set_border_width(GTK_CONTAINER(main_vbox), 1); + #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); windata->top_spacer = gtk_image_new(); |