summaryrefslogtreecommitdiff
path: root/cad/mars/files/patch-XMotif_options.c
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2014-01-31 09:12:58 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2014-01-31 09:12:58 +0000
commit30fb1088d302933bcf6db87b2b1dd22a66e7e9fe (patch)
tree276e7d09a0f7aa28a07c30d9f2d13be03551429e /cad/mars/files/patch-XMotif_options.c
parentUpdate to 9.8.7. (diff)
- Remove cad/mars -- does not build, no releases in the past 20 years
Diffstat (limited to '')
-rw-r--r--cad/mars/files/patch-XMotif_options.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/cad/mars/files/patch-XMotif_options.c b/cad/mars/files/patch-XMotif_options.c
deleted file mode 100644
index ff2b4e952589..000000000000
--- a/cad/mars/files/patch-XMotif_options.c
+++ /dev/null
@@ -1,54 +0,0 @@
---- XMotif/options.c.orig 2007-11-23 22:02:50.000000000 +0100
-+++ XMotif/options.c 2007-11-23 22:04:08.000000000 +0100
-@@ -70,17 +70,17 @@
- Widget delay_button;
-
- MenuItem opmodes_radiobox[] = {
-- {"Continuous", &xmToggleButtonGadgetClass, NULL, NULL, NULL, XmNvalueChangedCallback, opmodes_cb, (XtPointer)CONTINUOUS_BUTTON, (MenuItem*)NULL, initialize_continuous_button},
-- {"Event Step", &xmToggleButtonGadgetClass, NULL, NULL ,NULL, XmNvalueChangedCallback, opmodes_cb, (XtPointer)EVENT_STEP_BUTTON, (MenuItem*)NULL, initialize_event_step_button},
-- {"Time Step", &xmToggleButtonGadgetClass, NULL, NULL, NULL, XmNvalueChangedCallback, opmodes_cb, (XtPointer)TIME_STEP_BUTTON, (MenuItem*)NULL, initialize_time_step_button},
-+ {"Continuous", &xmToggleButtonGadgetClass, '\0', NULL, NULL, XmNvalueChangedCallback, opmodes_cb, (XtPointer)CONTINUOUS_BUTTON, (MenuItem*)NULL, initialize_continuous_button},
-+ {"Event Step", &xmToggleButtonGadgetClass, '\0', NULL ,NULL, XmNvalueChangedCallback, opmodes_cb, (XtPointer)EVENT_STEP_BUTTON, (MenuItem*)NULL, initialize_event_step_button},
-+ {"Time Step", &xmToggleButtonGadgetClass, '\0', NULL, NULL, XmNvalueChangedCallback, opmodes_cb, (XtPointer)TIME_STEP_BUTTON, (MenuItem*)NULL, initialize_time_step_button},
- NULL
- };
-
- MenuItem options_items[] = {
-- {"Delay", &xmPushButtonGadgetClass, NULL, NULL, NULL, XmNactivateCallback, delay_cb, (XtPointer)O_DELAY, (MenuItem *)NULL, initialize_delay_button},
-- {"", &xmSeparatorGadgetClass, NULL, NULL, NULL, NULL, NULL, NULL, (MenuItem *)NULL, NULL},
-- {"Operating Mode", &xmCascadeButtonGadgetClass, NULL, NULL, NULL, XmNactivateCallback, NULL, (XtPointer)O_OPERATING_MODE,opmodes_radiobox, NULL},
-- {"Resize Network", &xmPushButtonGadgetClass, NULL, NULL, NULL, XmNactivateCallback, resize_dialog_cb, (XtPointer)O_RESIZE, (MenuItem *)NULL, NULL},
-+ {"Delay", &xmPushButtonGadgetClass, '\0', NULL, NULL, XmNactivateCallback, delay_cb, (XtPointer)O_DELAY, (MenuItem *)NULL, initialize_delay_button},
-+ {"", &xmSeparatorGadgetClass, '\0', NULL, NULL, NULL, NULL, NULL, (MenuItem *)NULL, NULL},
-+ {"Operating Mode", &xmCascadeButtonGadgetClass, '\0', NULL, NULL, XmNactivateCallback, NULL, (XtPointer)O_OPERATING_MODE,opmodes_radiobox, NULL},
-+ {"Resize Network", &xmPushButtonGadgetClass, '\0', NULL, NULL, XmNactivateCallback, resize_dialog_cb, (XtPointer)O_RESIZE, (MenuItem *)NULL, NULL},
- NULL
- };
-
-@@ -241,7 +241,7 @@
- /* Width Textfield */
- sprintf(buf,"%d",the_environment.network_width);
- width_input=CreateTextInput(resize_dialog,"width",buf,&textfields[0]);
-- XtAddCallback(textfields[0],XmNactivateCallback,resize_check_input,&resize_max_w);
-+ XtAddCallback(textfields[0],XmNactivateCallback,(XtCallbackProc)resize_check_input,&resize_max_w);
- XtVaSetValues(width_input,
- XmNleftAttachment, XmATTACH_FORM,
- XmNrightAttachment, XmATTACH_FORM,
-@@ -252,7 +252,7 @@
- /* Height Textfield */
- sprintf(buf,"%d",the_environment.network_height);
- height_input=CreateTextInput(resize_dialog,"height",buf,&textfields[1]);
-- XtAddCallback(textfields[1],XmNactivateCallback,resize_check_input,&resize_max_h);
-+ XtAddCallback(textfields[1],XmNactivateCallback,(XtCallbackProc)resize_check_input,&resize_max_h);
- XtVaSetValues(height_input,
- XmNleftAttachment, XmATTACH_FORM,
- XmNrightAttachment, XmATTACH_FORM,
-@@ -262,7 +262,7 @@
-
- /* Minimize Button */
- minimize_button=XtVaCreateManagedWidget("minimize_button", xmPushButtonWidgetClass, resize_dialog, NULL);
-- XtAddCallback(minimize_button, XmNactivateCallback, resize_minimize, textfields);
-+ XtAddCallback(minimize_button, XmNactivateCallback, (XtCallbackProc)resize_minimize, textfields);
- XtVaSetValues(minimize_button,
- XmNleftAttachment, XmATTACH_FORM,
- XmNrightAttachment, XmATTACH_FORM,