Ledger Nano X - The secure hardware wallet
SHARE
TWEET

deselect_recently_used.patch

calamari Mar 10th, 2013 378 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- gtk+2.0-2.24.10/gtk/gtkfilechooserdefault.c 2011-11-08 10:20:20.000000000 -0700
  2. +++ Downloads/gtk/gtk+2.0-2.24.10/gtk/gtkfilechooserdefault.c   2012-07-10 17:20:38.000000000 -0700
  3. @@ -5971,10 +5971,18 @@ gtk_file_chooser_default_map (GtkWidget
  4.  
  5.    if (impl->operation_mode == OPERATION_MODE_BROWSE)
  6.      {
  7. +      GFile *folder;
  8. +
  9.        switch (impl->reload_state)
  10.          {
  11.          case RELOAD_EMPTY:
  12. -         recent_shortcut_handler (impl);
  13. +          /* The user didn't explicitly give us a folder to display, so we'll
  14. +           * use the saved one from the last invocation of the file chooser
  15. +           */
  16. +          folder = get_file_for_last_folder_opened (impl);
  17. +          gtk_file_chooser_set_current_folder_file (GTK_FILE_CHOOSER (impl), folder, NULL);
  18. +          g_object_unref (folder);
  19. +         /* recent_shortcut_handler (impl); */
  20.            break;
  21.          
  22.          case RELOAD_HAS_FOLDER:
  23. @@ -6005,8 +6013,8 @@ gtk_file_chooser_default_unmap (GtkWidge
  24.  
  25.    settings_save (impl);
  26.  
  27. -  cancel_all_operations (impl);
  28. -  impl->reload_state = RELOAD_EMPTY;
  29. +  /* cancel_all_operations (impl);
  30. +  impl->reload_state = RELOAD_EMPTY; */
  31.  
  32.    GTK_WIDGET_CLASS (_gtk_file_chooser_default_parent_class)->unmap (widget);
  33.  }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top