]> Pileus Git - ~andy/gtk/commitdiff
filechooserbutton: When the combo box changes, set the *file*, not the current folder
authorFederico Mena Quintero <federico@gnome.org>
Mon, 11 Mar 2013 22:48:17 +0000 (16:48 -0600)
committerFederico Mena Quintero <federico@gnome.org>
Tue, 12 Mar 2013 00:16:29 +0000 (18:16 -0600)
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

index c69157d3b1fb1367867a235cd9072a3199fedb7b..9fa5038bba5b77ef87ea72bf7846731e5569339a 100644 (file)
@@ -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);
              }
          }