summary refs log tree commit diff stats
path: root/src/fe-gtk/setup.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-08-31 15:38:29 -0400
committerTingPing <tingping@tingping.se>2013-08-31 15:38:29 -0400
commitbf269d2e0386a54650b3b9e860eeb2e2f05a3fde (patch)
tree62a460fe9ce6eae37812e35e0a3d8ba627e40987 /src/fe-gtk/setup.c
parent755932c3bc976d9a95e0b1b330efed31f7e48d9b (diff)
Of course mimetype doesn't work on Windows..
Diffstat (limited to 'src/fe-gtk/setup.c')
-rw-r--r--src/fe-gtk/setup.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c
index f86c1eaa..4abc584f 100644
--- a/src/fe-gtk/setup.c
+++ b/src/fe-gtk/setup.c
@@ -1060,8 +1060,18 @@ static void
 setup_browsefile_cb (GtkWidget *button, GtkWidget *entry)
 {
 	/* used for background image only */
+	char *filter;
+	int filter_type;
+
+#ifdef WIN32
+	filter = "*png;*.tiff;*.gif;*.jpeg;*.jpg";
+	filter_type = FRF_EXTENSIONS;
+#else
+	filter = "image/*";
+	filter_type = FRF_MIMETYPES;
+#endif
 	gtkutil_file_req (_("Select an Image File"), setup_filereq_cb,
-					entry, NULL, "image/*", FRF_MIMETYPES|FRF_RECENTLYUSED);
+					entry, NULL, filter, filter_type|FRF_RECENTLYUSED);
 }
 
 static void