[gimp] app: disable double buffering on all offscreen widgets
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: disable double buffering on all offscreen widgets
- Date: Wed, 26 May 2010 14:33:07 +0000 (UTC)
commit 3a1c319c916c09f95be0dd0da2b3ca8308849b1e
Author: Michael Natterer <mitch gimp org>
Date: Wed May 26 11:47:52 2010 +0200
app: disable double buffering on all offscreen widgets
They are rendered only after being completely drawn anyway, so there
is no use in wasting an additional buffer for them.
app/widgets/gimpoverlaybox.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimpoverlaybox.c b/app/widgets/gimpoverlaybox.c
index ab68d04..98353a9 100644
--- a/app/widgets/gimpoverlaybox.c
+++ b/app/widgets/gimpoverlaybox.c
@@ -355,6 +355,8 @@ gimp_overlay_box_add_child (GimpOverlayBox *box,
g_return_if_fail (GIMP_IS_OVERLAY_BOX (box));
g_return_if_fail (GTK_IS_WIDGET (widget));
+ gtk_widget_set_double_buffered (widget, FALSE);
+
child = gimp_overlay_child_new (box, widget, xalign, yalign, 0.0, 0.7);
box->children = g_list_append (box->children, child);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]