Mercurial > dwindows
diff gtk/dw.c @ 878:4f1228efbdca
Switched to realpath() instead of rel2abs() for GTK1/2 for now also.
Removed rel2abs.c and references in Makefile.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 06 Apr 2011 08:14:01 +0000 |
parents | d51e958aad95 |
children | 1006f10040ef |
line wrap: on
line diff
--- a/gtk/dw.c Wed Apr 06 07:32:28 2011 +0000 +++ b/gtk/dw.c Wed Apr 06 08:14:01 2011 +0000 @@ -10920,22 +10920,10 @@ if ( defpath ) { - if ( g_path_is_absolute( defpath ) ) + if ( g_path_is_absolute( defpath ) || !realpath(defpath, mypath)) { strcpy( mypath, defpath ); } - else - { - if ( !getcwd(cwd, PATH_MAX ) ) - { - } - else - { - if ( rel2abs( defpath, cwd, mypath, PATH_MAX ) ) - { - } - } - } gtk_file_chooser_set_current_folder( GTK_FILE_CHOOSER( filew ), mypath ); }