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



Author: mccann
Date: Fri Aug 22 19:07:10 2008
New Revision: 6416
URL: http://svn.gnome.org/viewvc/gdm?rev=6416&view=rev

Log:
2008-08-22  William Jon McCann  <jmccann redhat com>

	* gui/simple-greeter/gdm-chooser-widget.c
	(gdm_chooser_widget_activate_selected_item):
	Check that we have a selected path before
	using it.  Fixes #549040



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

Modified: trunk/gui/simple-greeter/gdm-chooser-widget.c
==============================================================================
--- trunk/gui/simple-greeter/gdm-chooser-widget.c	(original)
+++ trunk/gui/simple-greeter/gdm-chooser-widget.c	Fri Aug 22 19:07:10 2008
@@ -2,6 +2,7 @@
  *
  * Copyright (C) 2007 Ray Strode <rstrode redhat com>
  * Copyright (C) 2007 William Jon McCann <mccann jhu edu>
+ * Copyright (C) 2008 Red Hat, Inc.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -951,8 +952,15 @@
         model = GTK_TREE_MODEL (widget->priv->list_store);
         is_already_active = FALSE;
 
+        path = NULL;
+
         get_selected_path (widget, &path);
 
+        if (path == NULL) {
+                g_debug ("GdmChooserWidget: no row selected");
+                return;
+        }
+
         if (widget->priv->active_row != NULL) {
                 GtkTreePath *active_path;
 



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