[gnome-themes-standard] Fix a save/restore mismatch
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] Fix a save/restore mismatch
- Date: Fri, 4 Mar 2011 16:47:16 +0000 (UTC)
commit 22629bc19e0b3208a49e3b953e595717617ce9c0
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Mar 4 11:46:10 2011 -0500
Fix a save/restore mismatch
...early exits are evil.
This was causing treeview headers to not be drawn, sometimes.
src/adwaita_engine.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/adwaita_engine.c b/src/adwaita_engine.c
index 02c2ffd..c6ac7d3 100644
--- a/src/adwaita_engine.c
+++ b/src/adwaita_engine.c
@@ -821,7 +821,7 @@ adwaita_engine_render_frame (GtkThemingEngine *engine,
GdkRGBA color;
if ((flags & GTK_REGION_LAST) != 0)
- return;
+ goto out;
/* Column header */
if (gtk_theming_engine_get_direction (engine) == GTK_TEXT_DIR_RTL)
@@ -886,6 +886,7 @@ adwaita_engine_render_frame (GtkThemingEngine *engine,
width, height);
}
+out:
cairo_restore (cr);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]