[gnome-control-center/gnome-42] background: Restore support for multiple file selection



commit 7d884a6e9bdd5ca9745348bbfc9d3ffce43a6e95
Author: grumpey <grumpey0 gmail com>
Date:   Tue Jul 12 09:27:24 2022 +0000

    background: Restore support for multiple file selection
    
    This was previously implemented under !715 but we regressed during the port to GTK4.
    
    Fixes #889

 panels/background/cc-background-chooser.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/panels/background/cc-background-chooser.c b/panels/background/cc-background-chooser.c
index 62ea48dcc..ff9edfafc 100644
--- a/panels/background/cc-background-chooser.c
+++ b/panels/background/cc-background-chooser.c
@@ -315,6 +315,7 @@ cc_background_chooser_select_file (CcBackgroundChooser *self)
   filter = gtk_file_filter_new ();
   gtk_file_filter_add_pixbuf_formats (filter);
   gtk_file_chooser_set_filter (GTK_FILE_CHOOSER (filechooser), filter);
+  gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (filechooser), TRUE);
 
   pictures_folder = g_file_new_for_path (g_get_user_special_dir (G_USER_DIRECTORY_PICTURES));
   gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (filechooser),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]