Patch from Havoc Pennington to add functions for setting and getting a

Thu Nov  7 19:32:26 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gutils.[ch] (g_set/get_application_name):
        Patch from Havoc Pennington to add functions for
        setting and getting a human readable application
        name.

        * configure.in: Up to version 2.1.3, since we'll
        need to depend on last addition for GTK+.
This commit is contained in:
Owen Taylor
2002-11-08 00:51:25 +00:00
committed by Owen Taylor
parent 6e00ee85b9
commit 10520a9228
11 changed files with 148 additions and 9 deletions

View File

@@ -16,7 +16,8 @@ These are portable utility functions.
<!-- ##### FUNCTION g_get_prgname ##### -->
<para>
Gets the name of the program.
Gets the name of the program. This name should NOT be localized,
contrast with g_get_application_name().
(If you are using GDK or GTK+ the program name is set in gdk_init(), which
is called by gtk_init(). The program name is found by taking the last
component of <literal>argv[0]</literal>.)
@@ -27,7 +28,9 @@ component of <literal>argv[0]</literal>.)
<!-- ##### FUNCTION g_set_prgname ##### -->
<para>
Sets the name of the program.
Sets the name of the program. This name should NOT be localized,
contrast with g_set_application_name(). Note that for thread-safety
reasons this function can only be called once.
</para>
@prgname: the name of the program.