diff options
author | luigifab <[email protected]> | 2025-03-13 21:09:31 +0100 |
---|---|---|
committer | Luke from DC <[email protected]> | 2025-04-06 07:08:05 +0000 |
commit | 07cb2272c6ddbdcfbdfa99dc3a5a76a4fa5e3540 (patch) | |
tree | 8d24bd0c17c63636a3640011748b838d9293fe47 | |
parent | 0a653c1a5bf3de9a2ba36d7c4225846332a1921e (diff) | |
download | mate-notification-daemon-07cb2272c6ddbdcfbdfa99dc3a5a76a4fa5e3540.tar.bz2 mate-notification-daemon-07cb2272c6ddbdcfbdfa99dc3a5a76a4fa5e3540.tar.xz |
Use transparent background for the coutdown
-rw-r--r-- | src/themes/coco/coco-theme.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c index f18e9a5..82b74bd 100644 --- a/src/themes/coco/coco-theme.c +++ b/src/themes/coco/coco-theme.c @@ -292,16 +292,13 @@ configure_event_cb(GtkWidget *nw, } static gboolean -countdown_expose_cb(GtkWidget *pie, - cairo_t *cr, - WindowData *windata) +countdown_expose_cb(GtkWidget *pie, cairo_t *cr, WindowData *windata) { cairo_t *cr2; cairo_surface_t *surface; GtkAllocation alloc; - cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE); - + cairo_set_operator (cr, CAIRO_OPERATOR_OVER); gtk_widget_get_allocation (pie, &alloc); surface = cairo_surface_create_similar (cairo_get_target (cr), @@ -310,13 +307,10 @@ countdown_expose_cb(GtkWidget *pie, alloc.height); cr2 = cairo_create (surface); - - cairo_translate (cr2, -alloc.x, -alloc.y); - fill_background (pie, windata, cr2); - cairo_translate (cr2, alloc.x, alloc.y); - draw_pie (pie, windata, cr2); + cairo_set_source_rgba (cr2, 0.0, 0.0, 0.0, 0.0); // transparent background color + cairo_paint (cr2); + draw_pie (pie, windata, cr2); // countdown cairo_fill (cr2); - cairo_destroy (cr2); cairo_save (cr); |