API: Constify g_get_prgname()

Found by Mike Gorse while via pygobject freeing the value.

Should have been const according to original commit message.
This commit is contained in:
Benjamin Otte 2013-01-13 18:14:11 +01:00
parent 52bfa084c4
commit 120834db5b
2 changed files with 2 additions and 2 deletions

View File

@ -1071,7 +1071,7 @@ static gchar *g_prgname = NULL;
* Returns: the name of the program. The returned string belongs
* to GLib and must not be modified or freed.
*/
gchar*
const gchar*
g_get_prgname (void)
{
gchar* retval;

View File

@ -89,7 +89,7 @@ const gchar * g_get_real_name (void);
const gchar * g_get_home_dir (void);
const gchar * g_get_tmp_dir (void);
const gchar * g_get_host_name (void);
gchar * g_get_prgname (void);
const gchar * g_get_prgname (void);
void g_set_prgname (const gchar *prgname);
const gchar * g_get_application_name (void);
void g_set_application_name (const gchar *application_name);