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:
committed by
Matthias Clasen
parent
ea747c393d
commit
fd83f1c36d
@@ -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 arrow buttons some more room.
|
||||
|
||||
|
||||
@@ -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 arrow buttons some more room.
|
||||
|
||||
|
||||
@@ -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 arrow buttons some more room.
|
||||
|
||||
|
||||
@@ -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 arrow buttons some more room.
|
||||
|
||||
|
||||
@@ -4760,9 +4760,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 NULL;
|
||||
else if (current_focus == impl->browse_files_tree_view)
|
||||
{
|
||||
int num_selected;
|
||||
gboolean all_files, all_folders;
|
||||
|
||||
Reference in New Issue
Block a user