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:
parent
594cc47dbe
commit
34059cf293
5 changed files with 15 additions and 2 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue