[gtk+] filechooserbutton: During unselect_all(), update the widgets in all situations
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] filechooserbutton: During unselect_all(), update the widgets in all situations
- Date: Tue, 12 Mar 2013 00:23:51 +0000 (UTC)
commit 1c796018d1dcba002766673c4070c9d98e95fadb
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Mar 11 18:12:23 2013 -0600
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>
gtk/gtkfilechooserbutton.c | 6 +++---
gtk/tests/filechooser.c | 13 -------------
2 files changed, 3 insertions(+), 16 deletions(-)
---
diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c
index 9fa5038..d561a8b 100644
--- a/gtk/gtkfilechooserbutton.c
+++ b/gtk/gtkfilechooserbutton.c
@@ -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);
}
}
diff --git a/gtk/tests/filechooser.c b/gtk/tests/filechooser.c
index eb38213..ac5c899 100644
--- a/gtk/tests/filechooser.c
+++ b/gtk/tests/filechooser.c
@@ -1442,19 +1442,6 @@ static FileChooserButtonTest button_tests[] =
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,
NULL, /* initial_current_folder */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]