[gtk+/gtk-2-22] gtknotebook: Fix critical warnings on scroll events



commit 8f42a13ce79232fa17f1caf2a75fab4947e439af
Author: Christian Persch <chpe gnome org>
Date:   Tue Mar 23 14:45:07 2010 +0100

    gtknotebook: Fix critical warnings on scroll events
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=604391

 gtk/gtknotebook.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 7326673..0e17997 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -2590,7 +2590,8 @@ gtk_notebook_scroll (GtkWidget      *widget,
   for (i = 0; i < 2; i++)
     {
       if (event_widget == priv->action_widget[i] ||
-          gtk_widget_is_ancestor (event_widget, priv->action_widget[i]))
+          (priv->action_widget[i] &&
+           gtk_widget_is_ancestor (event_widget, priv->action_widget[i])))
         return FALSE;
     }
 



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