gimp r24568 - in trunk: . plug-ins/script-fu/ftx
- From: kcozens svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r24568 - in trunk: . plug-ins/script-fu/ftx
- Date: Tue, 8 Jan 2008 06:58:40 +0000 (GMT)
Author: kcozens
Date: Tue Jan 8 06:58:39 2008
New Revision: 24568
URL: http://svn.gnome.org/viewvc/gimp?rev=24568&view=rev
Log:
2008-01-08 Kevin Cozens <kcozens cvs gnome org>
* plug-ins/script-fu/ftx/ftx.c (foreign_filetype): Test for symlink
before testing for other file types. Spotted by David Martin.
Modified:
trunk/ChangeLog
trunk/plug-ins/script-fu/ftx/ftx.c
Modified: trunk/plug-ins/script-fu/ftx/ftx.c
==============================================================================
--- trunk/plug-ins/script-fu/ftx/ftx.c (original)
+++ trunk/plug-ins/script-fu/ftx/ftx.c Tue Jan 8 06:58:39 2008
@@ -90,12 +90,12 @@
filename = sc->vptr->string_value(first_arg);
filename = g_filename_from_utf8 (filename, -1, NULL, NULL, NULL);
- if (g_file_test(filename, G_FILE_TEST_IS_REGULAR))
+ if (g_file_test(filename, G_FILE_TEST_IS_SYMLINK))
+ retcode = FILE_TYPE_LINK;
+ else if (g_file_test(filename, G_FILE_TEST_IS_REGULAR))
retcode = FILE_TYPE_FILE;
else if (g_file_test(filename, G_FILE_TEST_IS_DIR))
retcode = FILE_TYPE_DIR;
- else if (g_file_test(filename, G_FILE_TEST_IS_SYMLINK))
- retcode = FILE_TYPE_LINK;
else
retcode = FILE_TYPE_UNKNOWN;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]