summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserbutton.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2013-03-11 16:48:17 -0600
committerFederico Mena Quintero <federico@gnome.org>2013-03-11 18:16:29 -0600
commit45ad8a06ad511ad95a74172172b9fe459bc666ad (patch)
treeca1288cf499f7ca3eef9372a42f4889fe001af7b /gtk/gtkfilechooserbutton.c
parent1135958e98b510a2fc2db9b7b8ed28ddd4f64c93 (diff)
downloadgtk+-45ad8a06ad511ad95a74172172b9fe459bc666ad.tar.gz
filechooserbutton: When the combo box changes, set the *file*, not the current folder
The currently-selected file *is* the selection even in SELECT_FOLDER mode. Do not confuse this with the current folder. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Diffstat (limited to 'gtk/gtkfilechooserbutton.c')
-rw-r--r--gtk/gtkfilechooserbutton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c
index c69157d3b1..9fa5038bba 100644
--- a/gtk/gtkfilechooserbutton.c
+++ b/gtk/gtkfilechooserbutton.c
@@ -2804,7 +2804,7 @@ combo_box_changed_cb (GtkComboBox *combo_box,
case ROW_TYPE_BOOKMARK:
case ROW_TYPE_CURRENT_FOLDER:
if (data)
- gtk_file_chooser_button_set_current_folder (GTK_FILE_CHOOSER (button), data, NULL);
+ gtk_file_chooser_button_select_file (GTK_FILE_CHOOSER (button), data, NULL);
break;
case ROW_TYPE_VOLUME:
{
@@ -2813,7 +2813,7 @@ combo_box_changed_cb (GtkComboBox *combo_box,
base_file = _gtk_file_system_volume_get_root (data);
if (base_file)
{
- gtk_file_chooser_button_set_current_folder (GTK_FILE_CHOOSER (button), base_file, NULL);
+ gtk_file_chooser_button_select_file (GTK_FILE_CHOOSER (button), base_file, NULL);
g_object_unref (base_file);
}
}