/[antiright]/antiright/src/arshell/file.c
ViewVC logotype

Diff of /antiright/src/arshell/file.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by jefbed, Wed Aug 25 23:50:18 2004 UTC revision 1.5 by jefbed, Thu Dec 16 23:55:48 2004 UTC
# Line 82  arshell_file_select_ok_cb(Widget widget, Line 82  arshell_file_select_ok_cb(Widget widget,
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    
# Line 162  arshell_save_work_area() Line 166  arshell_save_work_area()
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

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26