Use 'const' instead G_CONST_RETURN

This commit is contained in:
Javier Jardón 2011-06-16 00:51:17 +01:00
parent 1516be6f69
commit ed9db7c3e5
2 changed files with 3 additions and 3 deletions

View File

@ -107,8 +107,8 @@ of #GObject so the same points apply, except that it has a "floating" state
</para>
<para>
For strings returned from functions, they will be declared "const" (using
#G_CONST_RETURN) if they should not be freed. Non-const strings should be
For strings returned from functions, they will be declared "const"
if they should not be freed. Non-const strings should be
freed with g_free(). Arrays follow the same rule. (If you find an exception
to the rules, please report a bug to <ulink
url="http://bugzilla.gnome.org">http://bugzilla.gnome.org</ulink>.)

View File

@ -193,7 +193,7 @@ _gdk_windowing_set_default_display (GdkDisplay *display)
_gdk_display = GDK_DISPLAY_DFB (display);
}
G_CONST_RETURN gchar *
const gchar *
gdk_display_get_name (GdkDisplay *display)
{
return gdk_get_display_arg_name ();