Annotation of rpl/modules/motif/TODO, revision 1.4

1.1       bertrand    1: XmCreateMainWindow
1.3       bertrand    2: 
                      3: #include <Xm/Xm.h>
                      4: #include <X11/bitmaps/mailfull>
                      5: 
1.4     ! bertrand    6: XpmReadFileToPixmap (P18 doc libxmp)
        !             7: 
1.3       bertrand    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>