[metacity/wip/gtk-theme] ui: Adapt to GtkStyleContext changes
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity/wip/gtk-theme] ui: Adapt to GtkStyleContext changes
- Date: Fri, 2 Jan 2015 15:00:36 +0000 (UTC)
commit 591d383beb8d0de90c24fafb5cfb657989572bbe
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 fcf094c..2eb4d4f 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -3761,7 +3761,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);
@@ -4237,7 +4236,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]