Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Switch to OPERATION_MODE_BROWSE when switching to volume or file shor…

…tcuts

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
  • Loading branch information...
commit 80d0efd94ab90bf866650e666d6ce26fa7ee0b6e 1 parent ff95a79
Federico Mena Quintero authored July 27, 2011

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  gtk/gtkfilechooserdefault.c
4  gtk/gtkfilechooserdefault.c
@@ -9811,6 +9811,8 @@ shortcuts_activate_iter (GtkFileChooserDefault *impl,
9811 9811
 
9812 9812
       volume = col_data;
9813 9813
 
  9814
+      operation_mode_set (impl, OPERATION_MODE_BROWSE);
  9815
+
9814 9816
       shortcuts_activate_volume (impl, volume);
9815 9817
     }
9816 9818
   else if (shortcut_type == SHORTCUT_TYPE_FILE)
@@ -9818,6 +9820,8 @@ shortcuts_activate_iter (GtkFileChooserDefault *impl,
9818 9820
       struct ShortcutsActivateData *data;
9819 9821
       GtkFileSystemVolume *volume;
9820 9822
 
  9823
+      operation_mode_set (impl, OPERATION_MODE_BROWSE);
  9824
+
9821 9825
       volume = _gtk_file_system_get_volume_for_file (impl->file_system, col_data);
9822 9826
 
9823 9827
       data = g_new0 (struct ShortcutsActivateData, 1);

0 notes on commit 80d0efd

Please sign in to comment.
Something went wrong with that request. Please try again.