82 |
{ |
{ |
83 |
XmFileSelectionBoxCallbackStruct *call_pointer=call_data; |
XmFileSelectionBoxCallbackStruct *call_pointer=call_data; |
84 |
char *c_string; |
char *c_string; |
85 |
|
|
86 |
if(arshell.flags.file_open) |
if(arshell.flags.file_open) |
87 |
{ |
{ |
88 |
arshell_save_work_area(); |
arshell_save_work_area(); |
89 |
} |
} |
90 |
|
|
91 |
c_string=antiright_c_string(call_pointer->value); |
c_string=antiright_c_string(call_pointer->value); |
92 |
strncpy(arshell.edit.filename, c_string, ARSHELL_MAX_STRLEN); |
strncpy(arshell.edit.filename, c_string, ARSHELL_MAX_STRLEN); |
93 |
XtFree(c_string); |
XtFree(c_string); |
94 |
XtDestroyWidget(widget); |
XtDestroyWidget(widget); |
95 |
|
|
96 |
if(arshell.flags.saving) |
if(arshell.flags.saving) |
97 |
{ |
{ |
98 |
arshell.flags.file_open=True; |
arshell.flags.file_open=True; |
99 |
arshell_save_work_area(); |
arshell_save_work_area(); |
100 |
arshell.flags.saving=False; |
arshell.flags.saving=False; |
101 |
} |
} |
102 |
|
|
103 |
if(arshell.flags.opening) |
if(arshell.flags.opening) |
104 |
{ |
{ |
105 |
arshell.flags.file_open=True; |
arshell.flags.file_open=True; |
106 |
arshell_open_file(); |
arshell_open_file(); |
107 |
arshell.flags.opening=False; |
arshell.flags.opening=False; |
108 |
} |
} |
109 |
|
|
110 |
client_data=NULL; |
client_data=NULL; |
111 |
} |
} |
112 |
|
|
166 |
arshell_get_rid_of_modified_status(); |
arshell_get_rid_of_modified_status(); |
167 |
antiright_set_title(arshell.edit.filename); |
antiright_set_title(arshell.edit.filename); |
168 |
} |
} |
|
arshell.flags.saving=False; |
|
169 |
} |
} |
170 |
|
|
171 |
void |
void |