From 6d83120d2f51c1e130ba89e0924c44884aa2c7dd Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Wed, 13 Jun 2001 07:49:39 +0000 Subject: [PATCH] * edit.c (edit_execute_cmd) [GTK]: Disable user menu - it doesn't work. (user_menu) [GTK]: Disable. * gtkedit.c (tb_items): Use complete words. Disable pull-down menu. --- gtkedit/ChangeLog | 8 ++++++++ gtkedit/edit.c | 4 ++++ gtkedit/gtkedit.c | 6 ++++-- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/gtkedit/ChangeLog b/gtkedit/ChangeLog index 89f9a413a..03ff087aa 100644 --- a/gtkedit/ChangeLog +++ b/gtkedit/ChangeLog @@ -1,3 +1,11 @@ +2001-06-13 Pavel Roskin + + * edit.c (edit_execute_cmd) [GTK]: Disable user menu - it + doesn't work. + (user_menu) [GTK]: Disable. + * gtkedit.c (tb_items): Use complete words. Disable pull-down + menu. + 2001-06-09 Pavel Roskin * editcmd.c (catstrs): Use interactive_display() without diff --git a/gtkedit/edit.c b/gtkedit/edit.c index c0edce94e..28b86e133 100644 --- a/gtkedit/edit.c +++ b/gtkedit/edit.c @@ -2594,6 +2594,7 @@ int edit_execute_cmd (WEdit * edit, int command, int char_for_insertion) case CK_Match_Bracket: edit_goto_matching_bracket (edit); break; +#ifndef GTK case CK_User_Menu: if (edit_one_file) { message (1, MSG_ERROR, _("User menu available only in mcedit invoked from mc")); @@ -2602,6 +2603,7 @@ int edit_execute_cmd (WEdit * edit, int command, int char_for_insertion) else user_menu (edit); break; +#endif /* !GTK */ #ifdef MIDNIGHT case CK_Sort: edit_sort_cmd (edit); @@ -2754,6 +2756,7 @@ void edit_execute_macro (WEdit * edit, struct macro macro[], int n) edit_update_screen (edit); } +#ifndef GTK /* User edit menu, like user menu (F2) but only in editor. */ void user_menu (WEdit *edit) { @@ -2802,3 +2805,4 @@ void user_menu (WEdit *edit) edit->force |= REDRAW_COMPLETELY; return; } +#endif /* !GTK */ diff --git a/gtkedit/gtkedit.c b/gtkedit/gtkedit.c index a0964ebcd..75f7f5649 100644 --- a/gtkedit/gtkedit.c +++ b/gtkedit/gtkedit.c @@ -1248,13 +1248,15 @@ static TbItems tb_items[] = {"F1", N_("Help"), N_("Interactive help browser"), GNOME_STOCK_MENU_BLANK, 0, NULL}, {"F2", N_("Save"), N_("Save to current file name"), GNOME_STOCK_MENU_SAVE, gtk_edit_save_file, NULL}, {"F3", N_("Mark"), N_("Toggle In/Off invisible marker to highlight text"), GNOME_STOCK_MENU_BLANK, gtk_edit_toggle_mark, NULL}, - {"F4", N_("Replc"), N_("Find and replace strings/regular expressions"), GNOME_STOCK_MENU_SRCHRPL, gtk_edit_replace, NULL}, + {"F4", N_("Replace"), N_("Find and replace strings/regular expressions"), GNOME_STOCK_MENU_SRCHRPL, gtk_edit_replace, NULL}, {"F5", N_("Copy"), N_("Copy highlighted block to cursor position"), GNOME_STOCK_MENU_COPY, gtk_edit_copy, NULL}, {"F6", N_("Move"), N_("Move highlighted block to cursor position"), GNOME_STOCK_MENU_BLANK, gtk_edit_move, NULL}, {"F7", N_("Find"), N_("Find strings/regular expressions"), GNOME_STOCK_MENU_SEARCH, gtk_edit_search, NULL}, - {"F8", N_("Dlete"), N_("Delete highlighted text"), GNOME_STOCK_MENU_BLANK, gtk_edit_delete, NULL}, + {"F8", N_("Delete"), N_("Delete highlighted text"), GNOME_STOCK_MENU_BLANK, gtk_edit_delete, NULL}, +#if 0 {"F9", N_("Menu"), N_("Pull down menu"), GNOME_STOCK_MENU_BLANK, /* gtk_edit_menu*/ 0, NULL}, +#endif {"F10", N_("Quit"), N_("Exit editor"), GNOME_STOCK_MENU_QUIT, gtk_edit_quit, NULL}, {0, 0, 0, 0, 0, 0} };