mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
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:
parent
3a86af43fa
commit
1c796018d1
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user