* editcmd.c (edit_save_as_cmd): Add hotkey to dialog.
(edit_save_confirm_cmd): Likewise. (edit_new_cmd): Likewise. (edit_load_cmd): Likewise. (edit_block_move_cmd): Likewise. (edit_block_delete): Likewise. (edit_ok_to_exit): Likewise.
Этот коммит содержится в:
родитель
f27d0e157f
Коммит
f379b30232
@ -1,8 +1,15 @@
|
|||||||
|
2004-09-02 Pavel S. Shirshov <pavelsh@mail.ru>
|
||||||
|
|
||||||
|
* editcmd.c (edit_save_as_cmd): Add hotkey to dialog.
|
||||||
|
(edit_save_confirm_cmd): Likewise. (edit_new_cmd): Likewise.
|
||||||
|
(edit_load_cmd): Likewise. (edit_block_move_cmd): Likewise.
|
||||||
|
(edit_block_delete): Likewise. (edit_ok_to_exit): Likewise.
|
||||||
|
|
||||||
2004-09-01 Pavel S. Shirshov <pavelsh@mail.ru>
|
2004-09-01 Pavel S. Shirshov <pavelsh@mail.ru>
|
||||||
|
|
||||||
* syntax.c(this_try_alloc_color_pair): Use g_strlcpy instead
|
* syntax.c (this_try_alloc_color_pair): Use g_strlcpy instead
|
||||||
sequence strncpy(), name[len] = '\0'
|
sequence strncpy(), name[len] = '\0'
|
||||||
(edit_read_syntax_rules):Likewise.
|
(edit_read_syntax_rules): Likewise.
|
||||||
|
|
||||||
2004-08-29 Roland Illig <roland.illig@gmx.de>
|
2004-08-29 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
|
@ -483,7 +483,7 @@ edit_save_as_cmd (WEdit *edit)
|
|||||||
if (edit_query_dialog2
|
if (edit_query_dialog2
|
||||||
(_("Warning"),
|
(_("Warning"),
|
||||||
_(" A file already exists with this name. "),
|
_(" A file already exists with this name. "),
|
||||||
_("Overwrite"), _("Cancel"))) {
|
_("&Overwrite"), _("&Cancel"))) {
|
||||||
edit->force |= REDRAW_COMPLETELY;
|
edit->force |= REDRAW_COMPLETELY;
|
||||||
g_free (exp);
|
g_free (exp);
|
||||||
return 0;
|
return 0;
|
||||||
@ -767,7 +767,7 @@ int edit_save_confirm_cmd (WEdit * edit)
|
|||||||
if (edit_confirm_save) {
|
if (edit_confirm_save) {
|
||||||
f = catstrs (_(" Confirm save file? : "), edit->filename, " ", 0);
|
f = catstrs (_(" Confirm save file? : "), edit->filename, " ", 0);
|
||||||
/* Buttons to 'Confirm save file' query */
|
/* Buttons to 'Confirm save file' query */
|
||||||
if (edit_query_dialog2 (_(" Save file "), f, _("Save"), _("Cancel")))
|
if (edit_query_dialog2 (_(" Save file "), f, _("&Save"), _("&Cancel")))
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return edit_save_cmd (edit);
|
return edit_save_cmd (edit);
|
||||||
@ -803,7 +803,7 @@ edit_save_cmd (WEdit *edit)
|
|||||||
int edit_new_cmd (WEdit * edit)
|
int edit_new_cmd (WEdit * edit)
|
||||||
{
|
{
|
||||||
if (edit->modified) {
|
if (edit->modified) {
|
||||||
if (edit_query_dialog2 (_ ("Warning"), _ (" Current text was modified without a file save. \n Continue discards these changes. "), _ ("Continue"), _ ("Cancel"))) {
|
if (edit_query_dialog2 (_ ("Warning"), _ (" Current text was modified without a file save. \n Continue discards these changes. "), _ ("C&ontinue"), _ ("&Cancel"))) {
|
||||||
edit->force |= REDRAW_COMPLETELY;
|
edit->force |= REDRAW_COMPLETELY;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -842,8 +842,8 @@ edit_load_cmd (WEdit *edit)
|
|||||||
if (edit_query_dialog2
|
if (edit_query_dialog2
|
||||||
(_("Warning"),
|
(_("Warning"),
|
||||||
_(" Current text was modified without a file save. \n"
|
_(" Current text was modified without a file save. \n"
|
||||||
" Continue discards these changes. "), _("Continue"),
|
" Continue discards these changes. "), _("C&ontinue"),
|
||||||
_("Cancel"))) {
|
_("&Cancel"))) {
|
||||||
edit->force |= REDRAW_COMPLETELY;
|
edit->force |= REDRAW_COMPLETELY;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -1002,7 +1002,7 @@ edit_block_move_cmd (WEdit *edit)
|
|||||||
(_("Warning"),
|
(_("Warning"),
|
||||||
_
|
_
|
||||||
(" Block is large, you may not be able to undo this action. "),
|
(" Block is large, you may not be able to undo this action. "),
|
||||||
_("Continue"), _("Cancel")))
|
_("C&ontinue"), _("&Cancel")))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
edit_push_markers (edit);
|
edit_push_markers (edit);
|
||||||
@ -1115,7 +1115,7 @@ edit_block_delete (WEdit *edit)
|
|||||||
(_("Warning"),
|
(_("Warning"),
|
||||||
_
|
_
|
||||||
(" Block is large, you may not be able to undo this action. "),
|
(" Block is large, you may not be able to undo this action. "),
|
||||||
_("Continue"), _("Cancel"))) {
|
_("C&ontinue"), _("&Cancel"))) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2116,7 +2116,7 @@ edit_ok_to_exit (WEdit *edit)
|
|||||||
|
|
||||||
switch (edit_query_dialog3
|
switch (edit_query_dialog3
|
||||||
(_("Quit"), _(" File was modified, Save with exit? "),
|
(_("Quit"), _(" File was modified, Save with exit? "),
|
||||||
_("Cancel quit"), _("&Yes"), _("&No"))) {
|
_("&Cancel quit"), _("&Yes"), _("&No"))) {
|
||||||
case 1:
|
case 1:
|
||||||
edit_push_markers (edit);
|
edit_push_markers (edit);
|
||||||
edit_set_markers (edit, 0, 0, 0, 0);
|
edit_set_markers (edit, 0, 0, 0, 0);
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user