Commit c839cdff authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

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
parent aba9e78e
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]:
......
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]:
......
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]:
......
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]:
......
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]:
......
......@@ -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
......@@ -1931,6 +1931,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);
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment