X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-msg-edit-window-ui.h;h=269b3f6c98aca648ebec74b0b02811dd86daa160;hp=5b6a948968a5db1aed645dec99e63da874ac85ee;hb=HEAD;hpb=e374da56f67092cecb1572dd4bee2ca34e0bc04c diff --git a/src/widgets/modest-msg-edit-window-ui.h b/src/widgets/modest-msg-edit-window-ui.h index 5b6a948..269b3f6 100644 --- a/src/widgets/modest-msg-edit-window-ui.h +++ b/src/widgets/modest-msg-edit-window-ui.h @@ -34,6 +34,7 @@ #include #include "modest-icon-names.h" #include "modest-ui-actions.h" +#include "modest-defs.h" G_BEGIN_DECLS @@ -52,10 +53,19 @@ static const GtkActionEntry modest_msg_edit_action_entries [] = { { "Close", NULL, N_("mcen_me_inbox_close") }, /* ACTIONS */ + /* The logical id is different */ +#ifdef MODEST_TOOLKIT_HILDON2 + { "ActionsNewMessage", NULL, N_("mcen_me_new_message"), "N", NULL, G_CALLBACK (modest_ui_actions_on_new_msg) }, +#else { "ActionsNewMessage", NULL, N_("mcen_me_viewer_newemail"), "N", NULL, G_CALLBACK (modest_ui_actions_on_new_msg) }, { "ActionsSaveToDrafts", NULL, N_("mcen_me_editor_save_as_draft"), "S", NULL, G_CALLBACK (modest_ui_actions_on_save_to_drafts) }, +#endif +#ifdef MODEST_TOOLKIT_HILDON2 + { "ActionsDelete", NULL, N_("mcen_me_delete_messages"), NULL, NULL, G_CALLBACK (modest_ui_actions_on_delete_message) }, +#else { "ActionsDelete", NULL, N_("mcen_me_inbox_delete"), NULL, NULL, G_CALLBACK (modest_ui_actions_on_delete_message) }, - { "ActionsSend", NULL, N_("mcen_me_editor_send"), "KP_Enter", NULL, G_CALLBACK (modest_ui_actions_on_send) }, +#endif + { "ActionsSend", NULL, N_("mcen_me_editor_send"), NULL, NULL, G_CALLBACK (modest_ui_actions_on_send) }, #ifndef MODEST_TOOLKIT_HILDON2 { "ActionsFontColor", GTK_STOCK_SELECT_COLOR, N_("Color"), NULL, N_("Change text color"), G_CALLBACK (modest_ui_actions_on_select_editor_color)}, { "BackgroundColor", GTK_STOCK_SELECT_COLOR, N_("Background color"), NULL, N_("Change background color"), G_CALLBACK (modest_ui_actions_on_select_editor_background_color)}, @@ -87,12 +97,20 @@ static const GtkActionEntry modest_msg_edit_action_entries [] = { /* KEY ACCELERATOR ACTIONS */ { "ZoomPlus", NULL, N_("Zoom +"), "F7", NULL, G_CALLBACK (modest_ui_actions_on_zoom_plus) }, { "ZoomMinus", NULL, N_("Zoom -"), "F8", NULL, G_CALLBACK (modest_ui_actions_on_zoom_minus) }, + { "SendShortcut", NULL, N_("Send email"), "KP_Enter", NULL, G_CALLBACK (modest_ui_actions_on_send) }, + { "SendShortcut2", NULL, N_("Send email"), "Return", NULL, G_CALLBACK (modest_ui_actions_on_send) }, { "ToggleFullscreen", NULL, N_("Toggle fullscreen"), "F6", NULL, G_CALLBACK (modest_ui_actions_on_change_fullscreen) }, { "CloseWindowShortcut", NULL, NULL, "Escape", NULL, NULL }, /* TOOLBAR ACTIONS */ - { "ToolbarSend", MODEST_STOCK_MAIL_SEND, N_("qgn_toolb_messagin_send"), NULL, NULL, G_CALLBACK (modest_ui_actions_on_send) }, + { "ActionsInsertImage", MODEST_TOOLBAR_ICON_INSERT_IMAGES, NULL, NULL, NULL, G_CALLBACK (modest_ui_actions_on_insert_image) }, +#ifndef MODEST_TOOLKIT_HILDON2 + { "ToolbarSend", MODEST_TOOLBAR_ICON_MAIL_SEND, N_("mcen_me_editor_send"), "Return", NULL, G_CALLBACK (modest_ui_actions_on_send) }, +#endif +#ifdef MODEST_TOOLKIT_GTK + { "ToolbarAttach", "stock_attach", N_("mcen_me_editor_attachfile"), NULL, NULL, G_CALLBACK (modest_ui_actions_on_attach_file) }, +#endif }; static const GtkToggleActionEntry modest_msg_edit_toggle_action_entries [] = { @@ -121,7 +139,6 @@ static const GtkToggleActionEntry modest_msg_edit_toggle_action_entries [] = { /* Find in page */ { "FindInMessage", NULL, N_("mcen_me_viewer_find"), "F", NULL, G_CALLBACK (modest_ui_actions_on_toggle_find_in_page), FALSE }, - }; static const GtkRadioActionEntry modest_msg_edit_alignment_radio_action_entries [] = {