/[beaver]/beaver/src/filesops.c
ViewVC logotype

Diff of /beaver/src/filesops.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by mikix, Fri May 16 06:01:50 2003 UTC revision 1.13 by mikix, Thu May 22 00:54:51 2003 UTC
# Line 109  gchar *get_absolute_path (const gchar *F Line 109  gchar *get_absolute_path (const gchar *F
109    
110    if (g_path_is_absolute (FileName))    if (g_path_is_absolute (FileName))
111      return (strdup (FileName));      return (strdup (FileName));
112    TempFileName = g_strconcat (g_get_current_dir (),    TempFileName = g_build_filename (g_get_current_dir (), FileName, NULL);
113                                PATH_SEP_STRING, FileName, NULL);    Tab = g_strsplit (TempFileName, G_DIR_SEPARATOR_S, 0);
   Tab = g_strsplit (TempFileName, PATH_SEP_STRING, 0);  
114    g_free (TempFileName);    g_free (TempFileName);
115    while (Tab[i] != NULL)    while (Tab[i] != NULL)
116      {      {
# Line 127  gchar *get_absolute_path (const gchar *F Line 126  gchar *get_absolute_path (const gchar *F
126          }          }
127        else i++;        else i++;
128      }      }
129    AbsolutePath = g_strjoinv (PATH_SEP_STRING, Tab);    AbsolutePath = g_strjoinv (G_DIR_SEPARATOR_S, Tab);
130    g_strfreev (Tab);    g_strfreev (Tab);
131    return (AbsolutePath);    return (AbsolutePath);
132  }  }
# Line 611  void open_filename (const gchar *filenam Line 610  void open_filename (const gchar *filenam
610        
611    g_free (DIRECTORY);    g_free (DIRECTORY);
612    dir = g_path_get_dirname (filename);    dir = g_path_get_dirname (filename);
613    DIRECTORY = g_strconcat (dir, PATH_SEP_STRING, NULL);    DIRECTORY = g_strconcat (dir, G_DIR_SEPARATOR_S, NULL);
614    g_free (dir);    g_free (dir);
615    set_string_conf ("General/RecentFiles/Directory", DIRECTORY);    set_string_conf ("General/RecentFiles/Directory", DIRECTORY);
616        

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26