ftp://ftp.uni-heidelberg.de/pub/X11/contrib/applications/xscreensaver-1.25.tar.Z
[xscreensaver] / driver / dialogs.c
old mode 100755 (executable)
new mode 100644 (file)
index a1184e1..b4612b5
 #include <Xm/TextF.h>
 #include <Xm/ToggleB.h>
 
+/* #### Hacked by hand, not generated by XDesigner */
+extern Visual *visual;
+extern int visual_depth;
+extern Colormap cmap;
+
 
 Widget passwd_dialog;
 Widget passwd_form;
@@ -84,6 +89,14 @@ Widget parent;
        Widget widget4;
        Widget widget7;
 
+
+       /* #### Hacked by hand, not generated by XDesigner */
+       ac = 0;
+       XtSetArg (al[ac], XmNvisual, visual); ac++;
+       XtSetArg (al[ac], XmNcolormap, cmap); ac++;
+       XtSetArg (al[ac], XmNdepth, visual_depth); ac++;
+
+
        passwd_dialog = XmCreateDialogShell ( parent, "passwdDialog", al, ac );
        passwd_form = XmCreateForm ( passwd_dialog, "passwdForm", al, ac );
        roger_label = XmCreateDrawnButton ( passwd_form, "rogerLabel", al, ac );
@@ -95,6 +108,10 @@ Widget parent;
        passwd_done = XmCreatePushButton ( passwd_form, "passwdDone", al, ac );
        passwd_cancel = XmCreatePushButton ( passwd_form, "passwdCancel", al, ac );
 
+       /* #### Hacked by hand, not generated by XDesigner */
+       ac = 0;
+
+
        XtSetArg(al[ac], XmNtopAttachment, XmATTACH_FORM); ac++;
        XtSetArg(al[ac], XmNtopOffset, 4); ac++;
        XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_FORM); ac++;
@@ -222,8 +239,20 @@ Widget parent;
        Widget widget48;
        Widget widget29;
 
+
+       /* #### Hacked by hand, not generated by XDesigner */
+       ac = 0;
+       XtSetArg (al[ac], XmNvisual, visual); ac++;
+       XtSetArg (al[ac], XmNcolormap, cmap); ac++;
+       XtSetArg (al[ac], XmNdepth, visual_depth); ac++;
+
+
        resources_dialog = XmCreateDialogShell ( parent, "resourcesDialog", al, ac );
        resources_form = XmCreateForm ( resources_dialog, "resourcesForm", al, ac );
+
+       /* #### Hacked by hand, not generated by XDesigner */
+       ac = 0;
+
        widget12 = XmCreateLabel ( resources_form, "resourcesLabel", al, ac );
        widget13 = XmCreateSeparator ( resources_form, "widget13", al, ac );
        XtSetArg(al[ac], XmNalignment, XmALIGNMENT_END); ac++;
@@ -578,6 +607,14 @@ Widget parent;
        int list_item;        /* Index for list_items */
        XmString xmstrings[15];    /* temporary storage for XmStrings */
 
+
+       /* #### Hacked by hand, not generated by XDesigner */
+       ac = 0;
+       XtSetArg (al[ac], XmNvisual, visual); ac++;
+       XtSetArg (al[ac], XmNcolormap, cmap); ac++;
+       XtSetArg (al[ac], XmNdepth, visual_depth); ac++;
+
+
        demo_dialog = XmCreateDialogShell ( parent, "demoDialog", al, ac );
        demo_form = XmCreateForm ( demo_dialog, "demoForm", al, ac );
        label1 = XmCreateLabel ( demo_form, "label1", al, ac );
@@ -585,6 +622,10 @@ Widget parent;
        demo_list = XmCreateScrolledList ( demo_form, "demoList", al, ac );
        text_area = XtParent ( demo_list );
 
+       /* #### Hacked by hand, not generated by XDesigner */
+       ac = 0;
+
+
        text_line = XmCreateTextField ( demo_form, "textLine", al, ac );
        vline = XmCreateSeparator ( demo_form, "vline", al, ac );
        next = XmCreatePushButton ( demo_form, "next", al, ac );