Make sure we check for a NULL model first.

2004-07-02  Anders Carlsson  <andersca@gnome.org>

	* gtk/gtktreeview.c (gtk_tree_view_set_model):
	Make sure we check for a NULL model first.
This commit is contained in:
Anders Carlsson 2004-07-02 11:32:03 +00:00 committed by Anders Carlsson
parent f7e3b1ecd4
commit ee15a7b948
5 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-07-02 Anders Carlsson <andersca@gnome.org>
* gtk/gtktreeview.c (gtk_tree_view_set_model):
Make sure we check for a NULL model first.
2004-07-01 J. Ali Harlow <ali@juiblex.co.uk>
* gdk/win32/gdkinput-win32.c (_gdk_input_ungrab_pointer): Fix

View File

@ -1,3 +1,8 @@
2004-07-02 Anders Carlsson <andersca@gnome.org>
* gtk/gtktreeview.c (gtk_tree_view_set_model):
Make sure we check for a NULL model first.
2004-07-01 J. Ali Harlow <ali@juiblex.co.uk>
* gdk/win32/gdkinput-win32.c (_gdk_input_ungrab_pointer): Fix

View File

@ -1,3 +1,8 @@
2004-07-02 Anders Carlsson <andersca@gnome.org>
* gtk/gtktreeview.c (gtk_tree_view_set_model):
Make sure we check for a NULL model first.
2004-07-01 J. Ali Harlow <ali@juiblex.co.uk>
* gdk/win32/gdkinput-win32.c (_gdk_input_ungrab_pointer): Fix

View File

@ -1,3 +1,8 @@
2004-07-02 Anders Carlsson <andersca@gnome.org>
* gtk/gtktreeview.c (gtk_tree_view_set_model):
Make sure we check for a NULL model first.
2004-07-01 J. Ali Harlow <ali@juiblex.co.uk>
* gdk/win32/gdkinput-win32.c (_gdk_input_ungrab_pointer): Fix

View File

@ -8747,7 +8747,9 @@ gtk_tree_view_set_model (GtkTreeView *tree_view,
GtkTreeModel *model)
{
g_return_if_fail (GTK_IS_TREE_VIEW (tree_view));
g_return_if_fail (GTK_IS_TREE_MODEL (model));
if (model != NULL)
g_return_if_fail (GTK_IS_TREE_MODEL (model));
if (model == tree_view->priv->model)
return;