File:
[local] /
rpl /
modules /
motif /
TODO
Revision
1.4:
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Aug 22 12:13:54 2017 UTC (7 years, 8 months ago) by
bertrand
Branches:
MAIN
CVS tags:
rpl-4_1_35,
rpl-4_1_34,
rpl-4_1_33,
rpl-4_1_32,
rpl-4_1_31,
rpl-4_1_30,
rpl-4_1_29,
rpl-4_1_28,
HEAD
Initialisation des locales.
1: XmCreateMainWindow
2:
3: #include <Xm/Xm.h>
4: #include <X11/bitmaps/mailfull>
5:
6: XpmReadFileToPixmap (P18 doc libxmp)
7:
8: main (int argc, char *argv[])
9: {
10: Widget toplevel;
11: XtAppContext app;
12: Pixmap bitmap;
13:
14: XtSetLanguageProc (NULL, NULL, NULL);
15:
16: /* size is irrelevant -- toplevel is iconified */
17: /* it just can't be 0, or Xt complains */
18: toplevel = XtVaOpenApplication (&app, "Demos", NULL, 0, &argc, argv, NULL,
19: sessionShellWidgetClass,
20: XmNwidth, 100,
21: XmNheight, 100,
22: XmNiconic, True,
23: NULL);
24: bitmap = XCreatePixmapFromBitmapData (XtDisplay (toplevel)
25: RootWindowOfScreen (XtScreen (toplevel)),
26: (char *) mailfull_bits,
27: mailfull_width
28: mailfull_height,
29: 1, 0, 1);
30: XtVaSetValues (toplevel, XmNiconPixmap, bitmap, NULL);
31: XtRealizeWidget (toplevel);
32: XtAppMainLoop (app);
33: }
34:
CVSweb interface <joel.bertrand@systella.fr>