forked from AuroraMiddleware/gtk
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)
This commit is contained in:
parent
b37e0373ef
commit
40e322c122
@ -1,3 +1,8 @@
|
||||
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>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
|
||||
|
@ -1,3 +1,8 @@
|
||||
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>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
|
||||
|
@ -1,3 +1,8 @@
|
||||
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>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
|
||||
|
@ -12497,7 +12497,8 @@ gtk_tree_view_search_move (GtkWidget *window,
|
||||
|
||||
/* search */
|
||||
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,
|
||||
&count, up?((tree_view->priv->selected_iter) - 1):((tree_view->priv->selected_iter + 1)));
|
||||
|
Loading…
Reference in New Issue
Block a user