gdm r6556 - in trunk: . gui/simple-greeter



Author: halfline
Date: Wed Oct  1 14:38:20 2008
New Revision: 6556
URL: http://svn.gnome.org/viewvc/gdm?rev=6556&view=rev

Log:
2008-10-01  Ray Strode <rstrode redhat com>

	* gui/simple-greeter/gdm-option-widget.c
	(get_active_item_id): Don't crash if
	active_row is invalid


Modified:
   trunk/ChangeLog
   trunk/gui/simple-greeter/gdm-option-widget.c

Modified: trunk/gui/simple-greeter/gdm-option-widget.c
==============================================================================
--- trunk/gui/simple-greeter/gdm-option-widget.c	(original)
+++ trunk/gui/simple-greeter/gdm-option-widget.c	Wed Oct  1 14:38:20 2008
@@ -148,7 +148,8 @@
         model = GTK_TREE_MODEL (widget->priv->list_store);
         item_id = NULL;
 
-        if (widget->priv->active_row == NULL) {
+        if (widget->priv->active_row == NULL ||
+            !gtk_tree_row_reference_valid (widget->priv->active_row)) {
                 return NULL;
         }
 



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