[gtk+] widget: Fix SEGV when no focus widget exists



commit 6624da6393bb466d7101cb1f8ce3b4b6bc1a221e
Author: Benjamin Otte <otte redhat com>
Date:   Thu Sep 9 18:10:04 2010 +0200

    widget: Fix SEGV when no focus widget exists

 gtk/gtkwidget.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 9a032c5..2a1c980 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -5292,7 +5292,6 @@ gtk_widget_real_grab_focus (GtkWidget *focus_widget)
 {
   if (gtk_widget_get_can_focus (focus_widget))
     {
-      GtkWidgetPrivate *priv;
       GtkWidget *toplevel;
       GtkWidget *widget;
       
@@ -5304,7 +5303,6 @@ gtk_widget_real_grab_focus (GtkWidget *focus_widget)
       if (gtk_widget_is_toplevel (toplevel) && GTK_IS_WINDOW (toplevel))
 	{
           widget = gtk_window_get_focus (GTK_WINDOW (toplevel));
-          priv = widget->priv;
 
 	  if (widget == focus_widget)
 	    {



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