[metacity] ui: Adapt to GtkStyleContext changes
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] ui: Adapt to GtkStyleContext changes
- Date: Wed, 7 Jan 2015 11:43:05 +0000 (UTC)
commit 1703f2aeba9bf6317196d9393a2c1515937858ae
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Oct 25 17:57:35 2014 +0200
ui: Adapt to GtkStyleContext changes
Since GTK+ commit 3a337156d11a86c7, save()/restore() may only be
used for subelements; in this particular case, the change broke
the backdrop state in decorations. Luckily we don't actually need
the save()/restore() pair anyway, as we only touch the context's
state and always set it explicitly.
src/ui/theme.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 61dee8d..9c405c2 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -3636,7 +3636,6 @@ meta_draw_op_draw_with_env (const MetaDrawOp *op,
GdkRGBA color;
cairo_save (cr);
- gtk_style_context_save (style_gtk);
cairo_set_line_width (cr, 1.0);
@@ -4112,7 +4111,6 @@ meta_draw_op_draw_with_env (const MetaDrawOp *op,
}
cairo_restore (cr);
- gtk_style_context_restore (style_gtk);
}
MetaDrawOpList*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]