Bail out if the model is empty. Fixes #143536.

2004-06-02  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtktreeview.c (gtk_tree_view_search_init): Bail out if the
	model is empty.  Fixes #143536.
This commit is contained in:
Federico Mena Quintero 2004-06-02 19:21:06 +00:00 committed by Federico Mena Quintero
parent a3d5971960
commit aff289b83a
5 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-06-02 Federico Mena Quintero <federico@ximian.com>
* gtk/gtktreeview.c (gtk_tree_view_search_init): Bail out if the
model is empty. Fixes #143536.
2004-06-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_size_focus_out): Don't

View File

@ -1,3 +1,8 @@
2004-06-02 Federico Mena Quintero <federico@ximian.com>
* gtk/gtktreeview.c (gtk_tree_view_search_init): Bail out if the
model is empty. Fixes #143536.
2004-06-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_size_focus_out): Don't

View File

@ -1,3 +1,8 @@
2004-06-02 Federico Mena Quintero <federico@ximian.com>
* gtk/gtktreeview.c (gtk_tree_view_search_init): Bail out if the
model is empty. Fixes #143536.
2004-06-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_size_focus_out): Don't

View File

@ -1,3 +1,8 @@
2004-06-02 Federico Mena Quintero <federico@ximian.com>
* gtk/gtktreeview.c (gtk_tree_view_search_init): Bail out if the
model is empty. Fixes #143536.
2004-06-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_size_focus_out): Don't

View File

@ -12109,7 +12109,8 @@ gtk_tree_view_search_init (GtkWidget *entry,
if (len < 1)
return;
gtk_tree_model_get_iter_first (model, &iter);
if (!gtk_tree_model_get_iter_first (model, &iter))
return;
ret = gtk_tree_view_search_iter (model, selection,
&iter, text,