diff options
author | Fabrice Creuzot <[email protected]> | 2025-02-27 19:19:54 +0100 |
---|---|---|
committer | Luke from DC <[email protected]> | 2025-03-11 05:48:30 +0000 |
commit | c4497b9414a70050d89a0bdce52d42c77ee87adb (patch) | |
tree | b2ce2a8d96fcf5c60e4d66e63930955e4a35592e /src/themes/standard/theme.c | |
parent | b0a77161f8b601ecacf38fddae9264901765763b (diff) | |
download | mate-notification-daemon-c4497b9414a70050d89a0bdce52d42c77ee87adb.tar.bz2 mate-notification-daemon-c4497b9414a70050d89a0bdce52d42c77ee87adb.tar.xz |
Diffstat (limited to 'src/themes/standard/theme.c')
-rw-r--r-- | src/themes/standard/theme.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/themes/standard/theme.c b/src/themes/standard/theme.c index c21a61c..f21b3b3 100644 --- a/src/themes/standard/theme.c +++ b/src/themes/standard/theme.c @@ -1082,11 +1082,15 @@ void add_notification_action(GtkWindow* nw, const char* text, const char* key, A 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(on_countdown_draw), windata); + gtk_widget_set_size_request(windata->pie_countdown, PIE_WIDTH, PIE_HEIGHT); + g_signal_connect(G_OBJECT(windata->pie_countdown), "draw", G_CALLBACK (on_countdown_draw), windata); } } |