Don't crash if search_window is NULL. (#304914, Victor Osadci, testcase by

2005-06-08  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
	Don't crash if search_window is NULL.  (#304914, Victor Osadci,
	testcase by Olaf Vitters)
This commit is contained in:
Matthias Clasen 2005-06-08 20:14:03 +00:00 committed by Matthias Clasen
parent e413007784
commit d53bffc04d
4 changed files with 14 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2005-06-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
Don't crash if search_window is NULL. (#304914, Victor Osadci,
testcase by Olaf Vitters)
* gtk/gtkimage.c: Make the file property readable.
(#170674, Lorenzo Gil Sanchez)

View File

@ -1,5 +1,9 @@
2005-06-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
Don't crash if search_window is NULL. (#304914, Victor Osadci,
testcase by Olaf Vitters)
* gtk/gtkimage.c: Make the file property readable.
(#170674, Lorenzo Gil Sanchez)

View File

@ -1,5 +1,9 @@
2005-06-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
Don't crash if search_window is NULL. (#304914, Victor Osadci,
testcase by Olaf Vitters)
* gtk/gtkimage.c: Make the file property readable.
(#170674, Lorenzo Gil Sanchez)

View File

@ -9011,7 +9011,8 @@ gtk_tree_view_real_start_interactive_search (GtkTreeView *tree_view,
if (!tree_view->priv->enable_search && !keybinding)
return FALSE;
if (GTK_WIDGET_VISIBLE (tree_view->priv->search_window))
if (tree_view->priv->search_window != NULL &&
GTK_WIDGET_VISIBLE (tree_view->priv->search_window))
return TRUE;
for (list = tree_view->priv->columns; list; list = list->next)