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.
This commit is contained in:
Michael Natterer 2014-12-01 21:50:57 +01:00
parent 3a6962e0bd
commit 16d2031136
1 changed files with 0 additions and 21 deletions

View File

@ -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);