diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-04-19 05:15:34 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-04-19 05:15:34 +0000 |
commit | 2902d75dc20e2cc4f94335d7dab0db9915bbc554 (patch) | |
tree | 46bc88c9e28e101cffb88b8901891d844427a959 /src/compose.c | |
parent | 46b76d1d53192b66b2041ce3352549c3bb95281d (diff) |
removed '/Edit/Advanced' menu.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@220 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/compose.c')
-rw-r--r-- | src/compose.c | 161 |
1 files changed, 0 insertions, 161 deletions
diff --git a/src/compose.c b/src/compose.c index 1e864ddd..2be9056f 100644 --- a/src/compose.c +++ b/src/compose.c @@ -381,9 +381,6 @@ static void compose_paste_cb (Compose *compose); static void compose_paste_as_quote_cb (Compose *compose); static void compose_allsel_cb (Compose *compose); -static void compose_action_cb (Compose *compose, - ComposeAction action); - static void compose_grab_focus_cb (GtkWidget *widget, Compose *compose); @@ -502,77 +499,6 @@ static GtkItemFactoryEntry compose_entries[] = {N_("/_Edit/Paste as _quotation"), NULL, compose_paste_as_quote_cb, 0, NULL}, {N_("/_Edit/Select _all"), "<control>A", compose_allsel_cb, 0, NULL}, - {N_("/_Edit/A_dvanced"), NULL, NULL, 0, "<Branch>"}, - {N_("/_Edit/A_dvanced/Move a character backward"), - "<control>B", - compose_action_cb, - COMPOSE_ACTION_MOVE_BACKWARD_CHARACTER, - NULL}, - {N_("/_Edit/A_dvanced/Move a character forward"), - "<control>F", - compose_action_cb, - COMPOSE_ACTION_MOVE_FORWARD_CHARACTER, - NULL}, - {N_("/_Edit/A_dvanced/Move a word backward"), - NULL, /* "<alt>B" */ - compose_action_cb, - COMPOSE_ACTION_MOVE_BACKWARD_WORD, - NULL}, - {N_("/_Edit/A_dvanced/Move a word forward"), - NULL, /* "<alt>F" */ - compose_action_cb, - COMPOSE_ACTION_MOVE_FORWARD_WORD, - NULL}, - {N_("/_Edit/A_dvanced/Move to beginning of line"), - NULL, /* "<control>A" */ - compose_action_cb, - COMPOSE_ACTION_MOVE_BEGINNING_OF_LINE, - NULL}, - {N_("/_Edit/A_dvanced/Move to end of line"), - "<control>E", - compose_action_cb, - COMPOSE_ACTION_MOVE_END_OF_LINE, - NULL}, - {N_("/_Edit/A_dvanced/Move to previous line"), - "<control>P", - compose_action_cb, - COMPOSE_ACTION_MOVE_PREVIOUS_LINE, - NULL}, - {N_("/_Edit/A_dvanced/Move to next line"), - "<control>N", - compose_action_cb, - COMPOSE_ACTION_MOVE_NEXT_LINE, - NULL}, - {N_("/_Edit/A_dvanced/Delete a character backward"), - "<control>H", - compose_action_cb, - COMPOSE_ACTION_DELETE_BACKWARD_CHARACTER, - NULL}, - {N_("/_Edit/A_dvanced/Delete a character forward"), - "<control>D", - compose_action_cb, - COMPOSE_ACTION_DELETE_FORWARD_CHARACTER, - NULL}, - {N_("/_Edit/A_dvanced/Delete a word backward"), - NULL, /* "<control>W" */ - compose_action_cb, - COMPOSE_ACTION_DELETE_BACKWARD_WORD, - NULL}, - {N_("/_Edit/A_dvanced/Delete a word forward"), - NULL, /* "<alt>D", */ - compose_action_cb, - COMPOSE_ACTION_DELETE_FORWARD_WORD, - NULL}, - {N_("/_Edit/A_dvanced/Delete line"), - "<control>U", - compose_action_cb, - COMPOSE_ACTION_DELETE_LINE, - NULL}, - {N_("/_Edit/A_dvanced/Delete to end of line"), - "<control>K", - compose_action_cb, - COMPOSE_ACTION_DELETE_TO_LINE_END, - NULL}, {N_("/_Edit/---"), NULL, NULL, 0, "<Separator>"}, {N_("/_Edit/_Wrap current paragraph"), "<control>L", compose_wrap_cb, 0, NULL}, @@ -4191,7 +4117,6 @@ static Compose *compose_create(PrefsAccount *account, ComposeMode mode) menu_set_sensitive(ifactory, "/Edit/Wrap current paragraph", FALSE); menu_set_sensitive(ifactory, "/Edit/Wrap all long lines", FALSE); menu_set_sensitive(ifactory, "/Edit/Auto wrapping", FALSE); - menu_set_sensitive(ifactory, "/Edit/Advanced", FALSE); menu_set_sensitive(ifactory, "/View/Attachment", FALSE); menu_set_sensitive(ifactory, "/Tools/Template", FALSE); menu_set_sensitive(ifactory, "/Tools/Actions", FALSE); @@ -5739,92 +5664,6 @@ static void compose_allsel_cb(Compose *compose) } } -static void textview_move_beginning_of_line(GtkTextView *text) -{ -} - -static void textview_move_forward_character(GtkTextView *text) -{ -} - -static void textview_move_backward_character(GtkTextView *text) -{ -} - -static void textview_move_forward_word(GtkTextView *text) -{ -} - -static void textview_move_backward_word(GtkTextView *text) -{ -} - -static void textview_move_end_of_line(GtkTextView *text) -{ -} - -static void textview_move_next_line(GtkTextView *text) -{ -} - -static void textview_move_previous_line(GtkTextView *text) -{ -} - -static void textview_delete_forward_character(GtkTextView *text) -{ -} - -static void textview_delete_backward_character(GtkTextView *text) -{ -} - -static void textview_delete_forward_word(GtkTextView *text) -{ -} - -static void textview_delete_backward_word(GtkTextView *text) -{ -} - -static void textview_delete_line(GtkTextView *text) -{ -} - -static void textview_delete_to_line_end(GtkTextView *text) -{ -} - -static void compose_action_cb(Compose *compose, ComposeAction action) -{ - GtkTextView *text = GTK_TEXT_VIEW(compose->text); - static struct { - void (*do_action) (GtkTextView *text); - } action_table[] = { - {textview_move_beginning_of_line}, - {textview_move_forward_character}, - {textview_move_backward_character}, - {textview_move_forward_word}, - {textview_move_backward_word}, - {textview_move_end_of_line}, - {textview_move_next_line}, - {textview_move_previous_line}, - {textview_delete_forward_character}, - {textview_delete_backward_character}, - {textview_delete_forward_word}, - {textview_delete_backward_word}, - {textview_delete_line}, - {NULL}, /* textview_delete_line_n */ - {textview_delete_to_line_end} - }; - - if (!GTK_WIDGET_HAS_FOCUS(text)) return; - - if (action >= COMPOSE_ACTION_MOVE_BEGINNING_OF_LINE && - action <= COMPOSE_ACTION_DELETE_TO_LINE_END) - action_table[action].do_action(text); -} - static void compose_grab_focus_cb(GtkWidget *widget, Compose *compose) { if (GTK_IS_EDITABLE(widget) || GTK_IS_TEXT_VIEW(widget)) |