[gtk+/gtk-2-24] filechooserbutton: When the combo box changes, set the *file*, not the current folder
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] filechooserbutton: When the combo box changes, set the *file*, not the current folder
- Date: Wed, 13 Mar 2013 02:22:27 +0000 (UTC)
commit 82a5a0240c3c59f4a7e0babe24a65f195580928a
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Mar 11 16:48:17 2013 -0600
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>
gtk/gtkfilechooserbutton.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c
index c02964b..b0d2842 100644
--- a/gtk/gtkfilechooserbutton.c
+++ b/gtk/gtkfilechooserbutton.c
@@ -2781,7 +2781,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:
{
@@ -2790,7 +2790,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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]