Mercurial > geeqie.yaz
comparison src/view_file_list.c @ 702:e07895754e65
Drop concat_dir_and_file() and use g_build_filename() instead.
author | zas_ |
---|---|
date | Tue, 20 May 2008 22:09:04 +0000 |
parents | 8268cbe682f1 |
children | a1dcef8cd1ae |
comparison
equal
deleted
inserted
replaced
701:28af4b6dd9ef | 702:e07895754e65 |
---|---|
379 gchar *old_path; | 379 gchar *old_path; |
380 gchar *new_path; | 380 gchar *new_path; |
381 | 381 |
382 if (strlen(new) == 0) return FALSE; | 382 if (strlen(new) == 0) return FALSE; |
383 | 383 |
384 old_path = concat_dir_and_file(vf->path, old); | 384 old_path = g_build_filename(vf->path, old, NULL); |
385 new_path = concat_dir_and_file(vf->path, new); | 385 new_path = g_build_filename(vf->path, new, NULL); |
386 | 386 |
387 if (strchr(new, '/') != NULL) | 387 if (strchr(new, '/') != NULL) |
388 { | 388 { |
389 gchar *text = g_strdup_printf(_("Invalid file name:\n%s"), new); | 389 gchar *text = g_strdup_printf(_("Invalid file name:\n%s"), new); |
390 file_util_warning_dialog(_("Error renaming file"), text, GTK_STOCK_DIALOG_ERROR, vf->listview); | 390 file_util_warning_dialog(_("Error renaming file"), text, GTK_STOCK_DIALOG_ERROR, vf->listview); |