Commit 40e322c1 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Don't crash if the tree is empty. (#164669, Priit Laes)

2005-01-20  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash
	if the tree is empty.  (#164669, Priit Laes)
parent b37e0373
2005-01-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash
if the tree is empty. (#164669, Priit Laes)
Wed Jan 19 18:57:02 2005 Manish Singh <yosh@gimp.org> Wed Jan 19 18:57:02 2005 Manish Singh <yosh@gimp.org>
* gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
......
2005-01-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash
if the tree is empty. (#164669, Priit Laes)
Wed Jan 19 18:57:02 2005 Manish Singh <yosh@gimp.org> Wed Jan 19 18:57:02 2005 Manish Singh <yosh@gimp.org>
* gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
......
2005-01-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash
if the tree is empty. (#164669, Priit Laes)
Wed Jan 19 18:57:02 2005 Manish Singh <yosh@gimp.org> Wed Jan 19 18:57:02 2005 Manish Singh <yosh@gimp.org>
* gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
......
...@@ -12497,7 +12497,8 @@ gtk_tree_view_search_move (GtkWidget *window, ...@@ -12497,7 +12497,8 @@ gtk_tree_view_search_move (GtkWidget *window,
/* search */ /* search */
gtk_tree_selection_unselect_all (selection); gtk_tree_selection_unselect_all (selection);
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, ret = gtk_tree_view_search_iter (model, selection, &iter, text,
&count, up?((tree_view->priv->selected_iter) - 1):((tree_view->priv->selected_iter + 1))); &count, up?((tree_view->priv->selected_iter) - 1):((tree_view->priv->selected_iter + 1)));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment