[gimp] Bug 739369 - Rendering artifacts in the tool in-canvas UI with opacity
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 739369 - Rendering artifacts in the tool in-canvas UI with opacity
- Date: Mon, 1 Dec 2014 20:52:01 +0000 (UTC)
commit 16d20311366e98acec140bbf2867e0d8f3f8dde8
Author: Michael Natterer <mitch gimp org>
Date: Mon Dec 1 21:50:57 2014 +0100
Bug 739369 - Rendering artifacts in the tool in-canvas UI with opacity
Don't disable double buffering in GimpOverlayBox, we don't do it for
the canvas any longer, and removing that code fixes the artifacts.
app/widgets/gimpoverlaybox.c | 21 ---------------------
1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/app/widgets/gimpoverlaybox.c b/app/widgets/gimpoverlaybox.c
index dda04c0..01f5fce 100644
--- a/app/widgets/gimpoverlaybox.c
+++ b/app/widgets/gimpoverlaybox.c
@@ -344,25 +344,6 @@ gimp_overlay_box_new (void)
return g_object_new (GIMP_TYPE_OVERLAY_BOX, NULL);
}
-static void
-unset_double_buffered (GtkWidget *widget)
-{
- gtk_widget_set_double_buffered (widget, FALSE);
-
- if (GTK_IS_CONTAINER (widget))
- {
- GList *children = gtk_container_get_children (GTK_CONTAINER (widget));
- GList *list;
-
- for (list = children; list; list = g_list_next (list))
- {
- unset_double_buffered (list->data);
- }
-
- g_list_free (children);
- }
-}
-
void
gimp_overlay_box_add_child (GimpOverlayBox *box,
GtkWidget *widget,
@@ -374,8 +355,6 @@ gimp_overlay_box_add_child (GimpOverlayBox *box,
g_return_if_fail (GIMP_IS_OVERLAY_BOX (box));
g_return_if_fail (GTK_IS_WIDGET (widget));
- unset_double_buffered (widget);
-
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]