Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
877:d3693ceec9b1 | 878:4f1228efbdca |
---|---|
10918 gtk_file_chooser_add_filter( GTK_FILE_CHOOSER( filew ), filter2 ); | 10918 gtk_file_chooser_add_filter( GTK_FILE_CHOOSER( filew ), filter2 ); |
10919 } | 10919 } |
10920 | 10920 |
10921 if ( defpath ) | 10921 if ( defpath ) |
10922 { | 10922 { |
10923 if ( g_path_is_absolute( defpath ) ) | 10923 if ( g_path_is_absolute( defpath ) || !realpath(defpath, mypath)) |
10924 { | 10924 { |
10925 strcpy( mypath, defpath ); | 10925 strcpy( mypath, defpath ); |
10926 } | |
10927 else | |
10928 { | |
10929 if ( !getcwd(cwd, PATH_MAX ) ) | |
10930 { | |
10931 } | |
10932 else | |
10933 { | |
10934 if ( rel2abs( defpath, cwd, mypath, PATH_MAX ) ) | |
10935 { | |
10936 } | |
10937 } | |
10938 } | 10926 } |
10939 gtk_file_chooser_set_current_folder( GTK_FILE_CHOOSER( filew ), mypath ); | 10927 gtk_file_chooser_set_current_folder( GTK_FILE_CHOOSER( filew ), mypath ); |
10940 } | 10928 } |
10941 | 10929 |
10942 if ( gtk_dialog_run( GTK_DIALOG( filew ) ) == GTK_RESPONSE_ACCEPT ) | 10930 if ( gtk_dialog_run( GTK_DIALOG( filew ) ) == GTK_RESPONSE_ACCEPT ) |