GDK Reference ManualGeneral Name General -- library initialization and miscellaneous functions. Synopsis
Description This section describes the GDK initialization functions and miscellaneous utility functions. Details
Initializes the GDK library and connects to the X server. If initialization fails, a warning message is output and the application terminates with a call to exit(1). Any arguments used by GDK are removed from the array and argc and argv are updated accordingly. GTK+ initializes GDK in gtk_init() and so this function is not usually needed by GTK+ applications. argc : the number of command line arguments. argv : the array of command line arguments.
Initializes the GDK library and connects to the X server, returning TRUE on success. Any arguments used by GDK are removed from the array and argc and argv are updated accordingly. GTK+ initializes GDK in gtk_init() and so this function is not usually needed by GTK+ applications. argc : the number of command line arguments. argv : the array of command line arguments. Returns : TRUE if initialization succeeded.
Exits the application using the exit() system call. This routine is provided mainly for backwards compatability, since it used to perform tasks necessary to exit the application cleanly. Those tasks are now performed in a function which is automatically called on exit (via the use of g_atexit()). error_code : the error code to pass to the exit() call.
Initializes the support for internationalization by calling the setlocale() system call. This function is called by gtk_set_locale() and so GTK+ applications should use that instead. The locale to use is determined by the LANG environment variable, so to run an application in a certain locale you can do something like this:
If the locale is not supported by X then it is reset to the standard "C" locale. Returns : the resulting locale.
Sets the SM_CLIENT_ID property on the application's leader window so that the window manager can save the application's state using the X11R6 ICCCM session management protocol. The leader window is automatically created by GDK and never shown. It's only use is for session management. The WM_CLIENT_LEADER property is automatically set on all X windows created by the application to point to the leader window. See the X Session Management Library documentation for more information on session management and the Inter-Client Communication Conventions Manual (ICCCM) for information on the WM_CLIENT_LEADER property. (Both documents are part of the X Windows distribution.) 上一篇:GTK v1.2 Tutorial(英文) 下一篇:Java入门(12) 事件与错误处理 更多相关文章
|
推荐文章
精彩文章
|