widget: ensure boolean before comparing

Ensure boolean value like done elsewhere.
This commit is contained in:
Stefan Kost 2010-02-11 10:40:13 +02:00 committed by Tristan Van Berkom
parent 100c6dc513
commit 4b8a91bb85

View File

@ -6146,6 +6146,8 @@ gtk_widget_set_double_buffered (GtkWidget *widget,
{
g_return_if_fail (GTK_IS_WIDGET (widget));
double_buffered = (double_buffered != FALSE);
if (double_buffered != gtk_widget_get_double_buffered (widget))
{
if (double_buffered)