File: html.c

package info (click to toggle)
xmhtml 1.1.10-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,296 kB
  • sloc: ansic: 70,372; makefile: 480; sh: 176; perl: 36
file content (24 lines) | stat: -rw-r--r-- 562 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* simple_html.c -- Create a minimally configured XmHTML widget */
#include <XmHTML/XmHTML.h>

int
main(int argc, char **argv)
{
	Widget toplevel, html;
	XtAppContext app;

	toplevel = XtVaAppInitialize(&app, "Demos", NULL, 0,
		&argc, argv, NULL, NULL);

	html = XmCreateHTML(toplevel, "html", NULL, 0);

	/* All widgets returned by any XmCreateXXX function is unmanaged */
	XtManageChild(html);

	XmHTMLTextSetString(html, "<html><body>A minimally configured XmHTML "
		"widget.</body></html>");

	XtRealizeWidget(toplevel);
	XtAppMainLoop(app);
	return(0);
}