/usr/share/doc/xviewg/examples/frames/subframe.c is in xview-examples 3.2p1.4-28.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | /*
* subframe.c -- display a subframe from a base frame.
*/
#include <xview/xview.h>
main(argc, argv)
int argc;
char *argv[];
{
Frame frame, subframe;
xv_init(XV_INIT_ARGC_PTR_ARGV, &argc, argv, NULL);
frame = (Frame)xv_create(NULL, FRAME,
XV_WIDTH, 100,
XV_HEIGHT, 100,
FRAME_LABEL, "Base Frame",
NULL);
subframe = (Frame)xv_create(frame, FRAME_CMD,
XV_WIDTH, 100,
XV_HEIGHT, 100,
FRAME_LABEL, "Popup",
NULL);
xv_set(subframe, XV_SHOW, TRUE, NULL);
xv_main_loop(frame);
}
|