A tiny bit more:

master
Allen Webster 2019-04-04 01:28:18 -07:00
parent bdf1d57eb5
commit 4d2afeaeca
3 changed files with 4 additions and 4 deletions

View File

@ -67,7 +67,7 @@ struct Named_Mapping{
//////////////////////////////// ////////////////////////////////
static void static void
do_gui_sure_to_kill(Application_Links *app, Buffer_Summary *buffer, View_Summary *view); do_gui_sure_to_kill(Application_Links *app, Buffer_ID buffer, View_Summary *view);
static void static void
do_gui_sure_to_close_4coder(Application_Links *app, View_Summary *view); do_gui_sure_to_close_4coder(Application_Links *app, View_Summary *view);

View File

@ -735,7 +735,7 @@ kill_buffer(Application_Links *app, Buffer_Identifier identifier, View_ID gui_vi
if (result == BufferKillResult_Dirty){ if (result == BufferKillResult_Dirty){
Buffer_Summary buffer = buffer_identifier_to_buffer_summary(app, identifier, AccessAll); Buffer_Summary buffer = buffer_identifier_to_buffer_summary(app, identifier, AccessAll);
View_Summary view = get_view(app, gui_view_id, AccessAll); View_Summary view = get_view(app, gui_view_id, AccessAll);
do_gui_sure_to_kill(app, &buffer, &view); do_gui_sure_to_kill(app, buffer.buffer_id, &view);
} }
return(result); return(result);
} }

View File

@ -683,7 +683,7 @@ activate_confirm_kill(Application_Links *app, Partition *scratch, Heap *heap, Vi
} }
static void static void
do_gui_sure_to_kill(Application_Links *app, Buffer_Summary *buffer, View_Summary *view){ do_gui_sure_to_kill(Application_Links *app, Buffer_ID buffer, View_Summary *view){
Lister_Fixed_Option options[] = { Lister_Fixed_Option options[] = {
{"(N)o" , "", "Nn", IntAsPtr(SureToKill_No) }, {"(N)o" , "", "Nn", IntAsPtr(SureToKill_No) },
{"(Y)es" , "", "Yy", IntAsPtr(SureToKill_Yes) }, {"(Y)es" , "", "Yy", IntAsPtr(SureToKill_Yes) },
@ -692,7 +692,7 @@ do_gui_sure_to_kill(Application_Links *app, Buffer_Summary *buffer, View_Summary
i32 option_count = sizeof(options)/sizeof(options[0]); i32 option_count = sizeof(options)/sizeof(options[0]);
begin_integrated_lister__with_fixed_options(app, "There are unsaved changes, close anyway?", begin_integrated_lister__with_fixed_options(app, "There are unsaved changes, close anyway?",
activate_confirm_kill, activate_confirm_kill,
&buffer->buffer_id, sizeof(buffer->buffer_id), &buffer, sizeof(buffer),
options, option_count, default_string_size_estimation, options, option_count, default_string_size_estimation,
view); view);
} }