Don't crash if the displayed row is gone.

2004-08-02  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcellview.c (gtk_cell_view_set_cell_data): Don't
	crash if the displayed row is gone.
This commit is contained in:
Matthias Clasen 2004-08-02 19:08:13 +00:00 committed by Matthias Clasen
parent e6429d9548
commit f6ba8909d6
5 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-08-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcellview.c (gtk_cell_view_set_cell_data): Don't
crash if the displayed row is gone.
2004-08-02 Morten Welinder <terra@gnome.org>
* gtk/gtkentry.c (gtk_entry_motion_notify): C99ism.

View File

@ -1,3 +1,8 @@
2004-08-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcellview.c (gtk_cell_view_set_cell_data): Don't
crash if the displayed row is gone.
2004-08-02 Morten Welinder <terra@gnome.org>
* gtk/gtkentry.c (gtk_entry_motion_notify): C99ism.

View File

@ -1,3 +1,8 @@
2004-08-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcellview.c (gtk_cell_view_set_cell_data): Don't
crash if the displayed row is gone.
2004-08-02 Morten Welinder <terra@gnome.org>
* gtk/gtkentry.c (gtk_entry_motion_notify): C99ism.

View File

@ -1,3 +1,8 @@
2004-08-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcellview.c (gtk_cell_view_set_cell_data): Don't
crash if the displayed row is gone.
2004-08-02 Morten Welinder <terra@gnome.org>
* gtk/gtkentry.c (gtk_entry_motion_notify): C99ism.

View File

@ -543,6 +543,9 @@ gtk_cell_view_set_cell_data (GtkCellView *cellview)
g_return_if_fail (cellview->priv->displayed_row != NULL);
path = gtk_tree_row_reference_get_path (cellview->priv->displayed_row);
if (!path)
return;
gtk_tree_model_get_iter (cellview->priv->model, &iter, path);
gtk_tree_path_free (path);