From 2b9a7f2c89ebaf411e23af40dd18ad84d48019e8 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 17 Feb 2019 18:33:24 -0800 Subject: specs: suggest XtOpenApplication instead of XtAppInitialize Fixes https://bugs.freedesktop.org/show_bug.cgi?id=37552 "libXaw.html promotes obsolete XtAppInitialize" Signed-off-by: Alan Coopersmith --- specs/CH2.xml | 57 +++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 37 insertions(+), 20 deletions(-) diff --git a/specs/CH2.xml b/specs/CH2.xml index 98ac97e..acb5515 100644 --- a/specs/CH2.xml +++ b/specs/CH2.xml @@ -35,8 +35,13 @@ description of the programming interface is provided in the document If it is desirable that the application take advantage of internationalization (i18n), you must establish locale with XtSetLanguageProc -before XtDisplayInitialize or -is called. For full details, please refer to the document +prior to calling +, +XtOpenDisplay, +XtDisplayInitialize, +or +XtAppInitialize. +For full details, please refer to the document X Toolkit Intrinsics - C Language Interface, section 2.2. However, the following simplest-case call is sufficient in many or most applications. @@ -69,33 +74,34 @@ of programs in the default "C" locale. You must call a toolkit initialization function before invoking any other toolkit routines (besides locale setting, above). - +, opens the X server connection, parses the command line, and creates an initial widget that will serve as the root of a tree of widgets created by this application. - + - + - Widget XtAppInitialize - XtAppContext app_context_return - String application_class - XrmOptionDescRec options - Cardinal num_options - int *argc_in_out - String *argv_in_out - String *fallback_resources - ArgList args - Cardinal num_args +Widget XtOpenApplication + XtAppContext *app_context_return + String application_class + XrmOptionDescList options + Cardinal num_options + int *argc_in_out + String *argv_in_out + String *fallback_resources + WidgetClass widget_class + ArgList args + Cardinal num_args - app_con_return + app_context_return @@ -173,6 +179,17 @@ defaults file cannot be opened, or NULL. + + + widget_class + + + +Specifies the class of the widget to be created. Must be shellWidgetClass +or a subclass. + + + args @@ -725,7 +742,7 @@ events is . Specifies the application context of this application. The value is -normally returned by . +normally returned by . @@ -1310,8 +1327,8 @@ and Call the - - + + function before invoking any other toolkit or Xlib functions. For further information, see Section 2.1 and the X Toolkit Intrinsics - C Language Interface. @@ -1591,7 +1608,7 @@ This matches any widget in the Foo application that is named The root of all application widget trees is the widget returned by -. Even though this is actually an +. Even though this is actually an ApplicationShell widget, the toolkit replaces its widget class with the class name of the application. The name of this widget is either the name used to invoke the application (argv[0]) or the name of -- cgit v1.2.1