mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-05 18:40:58 +01:00
Don't hardcode '/' (#502727)
2007-12-10 Alexander Larsson <alexl@redhat.com> * gfile.c (g_file_set_display_name): Don't hardcode '/' (#502727) svn path=/trunk/; revision=6084
This commit is contained in:
parent
3a44f82b82
commit
51eb9d19bd
@ -1,3 +1,8 @@
|
|||||||
|
2007-12-10 Alexander Larsson <alexl@redhat.com>
|
||||||
|
|
||||||
|
* gfile.c (g_file_set_display_name):
|
||||||
|
Don't hardcode '/' (#502727)
|
||||||
|
|
||||||
2007-12-09 Hans Breuer <hans@breuer.org>
|
2007-12-09 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
* makefile.msc : follow lib naming convention
|
* makefile.msc : follow lib naming convention
|
||||||
|
@ -2318,12 +2318,12 @@ g_file_set_display_name (GFile *file,
|
|||||||
g_return_val_if_fail (G_IS_FILE (file), NULL);
|
g_return_val_if_fail (G_IS_FILE (file), NULL);
|
||||||
g_return_val_if_fail (display_name != NULL, NULL);
|
g_return_val_if_fail (display_name != NULL, NULL);
|
||||||
|
|
||||||
if (strchr (display_name, '/') != NULL)
|
if (strchr (display_name, G_DIR_SEPARATOR) != NULL)
|
||||||
{
|
{
|
||||||
g_set_error (error,
|
g_set_error (error,
|
||||||
G_IO_ERROR,
|
G_IO_ERROR,
|
||||||
G_IO_ERROR_INVALID_ARGUMENT,
|
G_IO_ERROR_INVALID_ARGUMENT,
|
||||||
_("File names cannot contain '/'"));
|
_("File names cannot contain '%c'"), G_DIR_SEPARATOR);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user