[gtk+/native-layout] widget: ensure boolean before comparing



commit 4b8a91bb85fdc31318f316f3a3928f8277534839
Author: Stefan Kost <ensonic users sf net>
Date:   Thu Feb 11 10:40:13 2010 +0200

    widget: ensure boolean before comparing
    
    Ensure boolean value like done elsewhere.

 gtk/gtkwidget.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 1efc668..f969d47 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]