Commit 2cbf6ca5 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

when looking for the file extension, only look at the part after the last

2005-08-20  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_proc_changed):
	when looking for the file extension, only look at the part after
	the last directory separator.
parent eb69eb49
2005-08-20 Sven Neumann <sven@gimp.org>
* app/widgets/gimpfiledialog.c (gimp_file_dialog_proc_changed):
when looking for the file extension, only look at the part after
the last directory separator.
2005-08-20 Michael Natterer <mitch@gimp.org> 2005-08-20 Michael Natterer <mitch@gimp.org>
* app/base/boundary.[ch]: even more cleanup, replaced informal * app/base/boundary.[ch]: even more cleanup, replaced informal
......
...@@ -711,6 +711,10 @@ gimp_file_dialog_proc_changed (GimpFileProcView *view, ...@@ -711,6 +711,10 @@ gimp_file_dialog_proc_changed (GimpFileProcView *view,
{ {
const gchar *last_dot = strrchr (uri, '.'); const gchar *last_dot = strrchr (uri, '.');
/* if the dot is before the last slash, ignore it */
if (last_dot && strrchr (uri, '/') > last_dot)
last_dot = NULL;
/* check if the uri has a "meta extension" (e.g. foo.bar.gz) /* check if the uri has a "meta extension" (e.g. foo.bar.gz)
* and try to truncate both extensions away. * and try to truncate both extensions away.
*/ */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment