filechooserbutton: During unselect_all(), update the widgets in all situations

Not just if we thought we had a selection.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
This commit is contained in:
Federico Mena Quintero 2013-03-11 18:12:23 -06:00
parent 3a86af43fa
commit 1c796018d1
2 changed files with 3 additions and 16 deletions

View File

@ -716,10 +716,10 @@ gtk_file_chooser_button_unselect_all (GtkFileChooser *chooser)
{
g_object_unref (priv->selection_while_inactive);
priv->selection_while_inactive = NULL;
update_label_and_image (button);
update_combo_box (button);
}
update_label_and_image (button);
update_combo_box (button);
}
}

View File

@ -1441,19 +1441,6 @@ static FileChooserButtonTest button_tests[] =
NULL, /* final_current_folder */
NULL /* final_filename */
},
{
"unselect-all-4",
GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER,
FOLDER_NAME, /* initial_current_folder */
NULL, /* initial_filename */
FALSE, /* open_dialog */
NULL, /* tweak_current_folder */
NULL, /* tweak_filename */
0, /* dialog_response */
TRUE, /* unselect_all */
NULL, /* final_current_folder */
NULL /* final_filename */
},
{
"unselect-all-5",
GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER,