summaryrefslogtreecommitdiff
path: root/src/themes/nodoka
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-07-22 17:11:44 +0200
committerinfirit <[email protected]>2015-07-22 17:58:34 +0200
commitf964e1d5114fef3259cf420e57687838d7fad976 (patch)
tree294896fa0eec6e3caba042f0a6f6538008da8787 /src/themes/nodoka
parenta0870e4657598a0056d43a29292d1249fc23c7a2 (diff)
downloadmate-notification-daemon-f964e1d5114fef3259cf420e57687838d7fad976.tar.bz2
mate-notification-daemon-f964e1d5114fef3259cf420e57687838d7fad976.tar.xz
nodoka: Fix whitespace in paint_window
Diffstat (limited to 'src/themes/nodoka')
-rw-r--r--src/themes/nodoka/nodoka-theme.c80
1 files changed, 42 insertions, 38 deletions
diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c
index 9bd96ab..07774d1 100644
--- a/src/themes/nodoka/nodoka-theme.c
+++ b/src/themes/nodoka/nodoka-theme.c
@@ -529,46 +529,50 @@ paint_window(GtkWidget *widget,
if (!(windata->enable_transparency))
{
#if GTK_CHECK_VERSION (3, 0, 0)
- surface = cairo_surface_create_similar (cairo_get_target (cr),
- CAIRO_CONTENT_COLOR_ALPHA,
- windata->width,
- windata->height);
+ surface = cairo_surface_create_similar (cairo_get_target (cr),
+ CAIRO_CONTENT_COLOR_ALPHA,
+ windata->width,
+ windata->height);
/*
- cr2 = cairo_create (surface);
- / * transparent background * /
- cairo_rectangle (cr2, 0, 0, windata->width, windata->height);
- cairo_set_source_rgba (cr2, 0.0, 0.0, 0.0, 0.0);
- cairo_fill (cr2);
- cairo_destroy (cr2);
+ cr2 = cairo_create (surface);
+ / * transparent background * /
+ cairo_rectangle (cr2, 0, 0, windata->width, windata->height);
+ cairo_set_source_rgba (cr2, 0.0, 0.0, 0.0, 0.0);
+ cairo_fill (cr2);
+ cairo_destroy (cr2);
*/
- cairo_save (cr);
- cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
- cairo_set_source_surface (cr, surface, 0, 0);
- cairo_paint (cr);
- cairo_restore (cr);
- cairo_surface_destroy(surface);
+ cairo_save (cr);
+ cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
+ cairo_set_source_surface (cr, surface, 0, 0);
+ cairo_paint (cr);
+ cairo_restore (cr);
+ cairo_surface_destroy(surface);
#else
- GdkPixmap *mask;
- cairo_t *mask_cr;
- mask = gdk_pixmap_new (NULL, windata->width,
- windata->height, 1);
- mask_cr = gdk_cairo_create ((GdkDrawable *) mask);
- cairo_set_operator (mask_cr, CAIRO_OPERATOR_CLEAR);
- cairo_paint (mask_cr);
-
- cairo_set_operator (mask_cr, CAIRO_OPERATOR_OVER);
- cairo_set_source_rgba (mask_cr, 1, 1, 1, 1);
- if (windata->arrow.has_arrow)
- {
- nodoka_rounded_rectangle_with_arrow (mask_cr, 0,
- 0, windata->width, windata->height, 6,
- & (windata->arrow));
- }
- else
- nodoka_rounded_rectangle (mask_cr, 0, 0,
- windata->width, windata->height, 6);
+ GdkPixmap *mask;
+ cairo_t *mask_cr;
+ mask = gdk_pixmap_new (NULL, windata->width,
+ windata->height, 1);
+ mask_cr = gdk_cairo_create ((GdkDrawable *) mask);
+ cairo_set_operator (mask_cr, CAIRO_OPERATOR_CLEAR);
+ cairo_paint (mask_cr);
+
+ cairo_set_operator (mask_cr, CAIRO_OPERATOR_OVER);
+ cairo_set_source_rgba (mask_cr, 1, 1, 1, 1);
+ if (windata->arrow.has_arrow)
+ {
+ nodoka_rounded_rectangle_with_arrow (mask_cr, 0, 0,
+ windata->width,
+ windata->height,
+ 6,
+ & (windata->arrow));
+ }
+ else
+ nodoka_rounded_rectangle (mask_cr, 0, 0,
+ windata->width,
+ windata->height,
+ 6);
cairo_fill (mask_cr);
gdk_window_shape_combine_mask (windata->win->window,
(GdkBitmap *) mask, 0,0);
@@ -582,9 +586,9 @@ paint_window(GtkWidget *widget,
cairo_set_operator(context, CAIRO_OPERATOR_SOURCE);
surface = cairo_surface_create_similar(cairo_get_target(context),
- CAIRO_CONTENT_COLOR_ALPHA,
- alloc.width,
- alloc.height);
+ CAIRO_CONTENT_COLOR_ALPHA,
+ alloc.width,
+ alloc.height);
#if GTK_CHECK_VERSION(3, 0, 0)
cairo_set_source_surface (cr, surface, 0, 0);
#else