Fix spelling Add g_return_val_if_fail.

2004-12-15  Alexander Larsson  <alexl@redhat.com>

	* glib/gconvert.c: (g_filename_display_basename):
	Fix spelling
	Add g_return_val_if_fail.

	* glib/glib.symbols:
	Add g_filename_display_basename
This commit is contained in:
Alexander Larsson 2004-12-15 16:42:28 +00:00 committed by Alexander Larsson
parent aba9e78ec4
commit c839cdff0e
7 changed files with 49 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2004-12-15 Alexander Larsson <alexl@redhat.com>
* glib/gconvert.c: (g_filename_display_basename):
Fix spelling
Add g_return_val_if_fail.
* glib/glib.symbols:
Add g_filename_display_basename
2004-12-15 Alexander Larsson <alexl@redhat.com>
* glib/gconvert.[ch]:

View File

@ -1,3 +1,12 @@
2004-12-15 Alexander Larsson <alexl@redhat.com>
* glib/gconvert.c: (g_filename_display_basename):
Fix spelling
Add g_return_val_if_fail.
* glib/glib.symbols:
Add g_filename_display_basename
2004-12-15 Alexander Larsson <alexl@redhat.com>
* glib/gconvert.[ch]:

View File

@ -1,3 +1,12 @@
2004-12-15 Alexander Larsson <alexl@redhat.com>
* glib/gconvert.c: (g_filename_display_basename):
Fix spelling
Add g_return_val_if_fail.
* glib/glib.symbols:
Add g_filename_display_basename
2004-12-15 Alexander Larsson <alexl@redhat.com>
* glib/gconvert.[ch]:

View File

@ -1,3 +1,12 @@
2004-12-15 Alexander Larsson <alexl@redhat.com>
* glib/gconvert.c: (g_filename_display_basename):
Fix spelling
Add g_return_val_if_fail.
* glib/glib.symbols:
Add g_filename_display_basename
2004-12-15 Alexander Larsson <alexl@redhat.com>
* glib/gconvert.[ch]:

View File

@ -1,3 +1,12 @@
2004-12-15 Alexander Larsson <alexl@redhat.com>
* glib/gconvert.c: (g_filename_display_basename):
Fix spelling
Add g_return_val_if_fail.
* glib/glib.symbols:
Add g_filename_display_basename
2004-12-15 Alexander Larsson <alexl@redhat.com>
* glib/gconvert.[ch]:

View File

@ -1918,7 +1918,7 @@ make_valid_utf8 (const gchar *name)
* You must pass the whole absolute pathname to this functions so that
* translation of well known locations can be done.
*
* This function is prefered over g_filename_display_name() if you know the
* This function is preferred over g_filename_display_name() if you know the
* whole path, as it allows translation.
*
* Return value: a newly allocated string containing
@ -1932,6 +1932,8 @@ g_filename_display_basename (const gchar *filename)
char *basename;
char *display_name;
g_return_val_if_fail (filename != NULL, NULL);
basename = g_path_get_basename (filename);
display_name = g_filename_display_name (basename);
g_free (basename);

View File

@ -169,6 +169,7 @@ g_file_get_contents PRIVATE
g_file_get_contents_utf8
#endif
g_filename_display_name G_GNUC_MALLOC
g_filename_display_basename G_GNUC_MALLOC
g_filename_from_uri PRIVATE G_GNUC_MALLOC
#ifdef G_OS_WIN32
g_filename_from_uri_utf8 G_GNUC_MALLOC