[Xfce4-commits] [xfce/xfdesktop] 01/02: Settings: Allow directories to be selected (Bug #12832)
noreply at xfce.org
noreply at xfce.org
Wed Jun 21 13:42:37 CEST 2017
This is an automated email from the git hooks/post-receive script.
s k u n n y k p u s h e d a c o m m i t t o b r a n c h x f c e - 4 . 1 2
in repository xfce/xfdesktop.
commit 157f5b55cfc3629d595ef38984278de5915aac27
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Mon Jun 13 15:08:11 2016 +0300
Settings: Allow directories to be selected (Bug #12832)
Gtk 2.24.31 imported some Gtk3 code that breaks directory
selection when using a file filter while in directory mode.
We need to add directories to the filter for the
GtkFileChooser, otherwise you can't select directories
while in directory mode...
Cherry-picked from:
https://git.xfce.org/users/eric/xfdesktop/commit/?h=the-long-road-to-gtk3&id=cc311b61b82b7510a3a6cb0952d3a331e3551e05
---
settings/main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/settings/main.c b/settings/main.c
index b37abad..7c85bc0 100644
--- a/settings/main.c
+++ b/settings/main.c
@@ -1857,6 +1857,9 @@ xfdesktop_settings_dialog_setup_tabs(GtkBuilder *main_gxml,
filter = gtk_file_filter_new();
gtk_file_filter_set_name(filter, _("Image files"));
gtk_file_filter_add_pixbuf_formats(filter);
+ gtk_file_filter_add_mime_type(filter, "inode/directory");
+ gtk_file_filter_add_mime_type(filter, "application/x-directory");
+ gtk_file_filter_add_mime_type(filter, "text/directory");
gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(panel->btn_folder), filter);
/* Get default wallpaper folder */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list