[gtk+] entry: Guard clipping with a save/restore
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] entry: Guard clipping with a save/restore
- Date: Tue, 19 Apr 2011 20:26:58 +0000 (UTC)
commit 033d204b9ee20cb8a20b816e946cbc57f3a0a4f3
Author: Benjamin Otte <otte redhat com>
Date: Tue Apr 19 01:10:23 2011 +0200
entry: Guard clipping with a save/restore
Just t be sure, so people don't get bugs later when they refactor code.
gtk/gtkentry.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index bb85ead..beb91c6 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -5753,6 +5753,8 @@ gtk_entry_draw_text (GtkEntry *entry,
&progress_x, &progress_y,
&progress_width, &progress_height);
+ cairo_save (cr);
+
clip_width = gdk_window_get_width (priv->text_area);
clip_height = gdk_window_get_height (priv->text_area);
cairo_rectangle (cr, 0, 0, clip_width, clip_height);
@@ -5799,6 +5801,8 @@ gtk_entry_draw_text (GtkEntry *entry,
cairo_restore (cr);
}
+
+ cairo_restore (cr);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]