Don't assert that current_focus != NULL, just return FALSE.

2004-09-21  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
	Don't assert that current_focus != NULL, just return FALSE.
This commit is contained in:
Matthias Clasen 2004-09-21 20:36:31 +00:00 • committed by Matthias Clasen
commit 34059cf293
5 changed files with 15 additions and 2 deletions

View file

@ -1,5 +1,8 @@
2004-09-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
Don't assert that current_focus != NULL, just return FALSE.
* gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path
bar arrows some more space.

View file

@ -1,5 +1,8 @@
2004-09-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
Don't assert that current_focus != NULL, just return FALSE.
* gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path
bar arrows some more space.

View file

@ -1,5 +1,8 @@
2004-09-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
Don't assert that current_focus != NULL, just return FALSE.
* gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path
bar arrows some more space.

View file

@ -1,5 +1,8 @@
2004-09-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
Don't assert that current_focus != NULL, just return FALSE.
* gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path
bar arrows some more space.

View file

@ -4931,9 +4931,10 @@ gtk_file_chooser_default_should_respond (GtkFileChooserEmbed *chooser_embed)
g_assert (GTK_IS_WINDOW (toplevel));
current_focus = gtk_window_get_focus (GTK_WINDOW (toplevel));
g_assert (current_focus != NULL);
if (current_focus == impl->browse_files_tree_view)
if (current_focus == NULL)
return FALSE;
else if (current_focus == impl->browse_files_tree_view)
{
int num_selected;
gboolean all_files, all_folders;