648638f898156476fa494565fea56d7f229aa0ae
[modest] / src / maemo / modest-msg-edit-window-ui-dimming.h
1 #ifndef __MODEST_MSG_EDIT_WINDOW_UI_DIMMING_PRIV_H__
2 #define __MODEST_MSG_EDIT_WINDOW_UI_DIMMING_PRIV_H__
3
4 #include "modest-dimming-rules-group.h"
5 #include "modest-ui-dimming-rules.h"
6
7 G_BEGIN_DECLS
8
9
10 /* Menu Dimming rules entries */
11 static const ModestDimmingEntry modest_msg_edit_window_menu_dimming_entries [] = {
12
13         /* Format Menu */
14         { "/MenuBar/FormatMenu/SelectFontMenu", G_CALLBACK (modest_ui_dimming_rules_on_set_style) },
15         { "/MenuBar/FormatMenu/AlignmentMenu", G_CALLBACK (modest_ui_dimming_rules_on_set_style) },
16         { "/MenuBar/FormatMenu/AlignmentLeftMenu", G_CALLBACK (modest_ui_dimming_rules_on_set_style) },
17         { "/MenuBar/FormatMenu/AlignmentRightMenu", G_CALLBACK (modest_ui_dimming_rules_on_set_style) },
18         { "/MenuBar/FormatMenu/AlignmentCenterMenu", G_CALLBACK (modest_ui_dimming_rules_on_set_style) },
19         { "/MenuBar/FormatMenu/InsertImageMenu", G_CALLBACK (modest_ui_dimming_rules_on_set_style) },   
20         { "/MenuBar/ViewMenu/ZoomMenu", G_CALLBACK (modest_ui_dimming_rules_on_zoom) }, 
21         { "/MenuBar/EditMenu/SelectAllMenu", G_CALLBACK (modest_ui_dimming_rules_on_select_all) },      
22         { "/MenuBar/EditMenu/UndoMenu", G_CALLBACK (modest_ui_dimming_rules_on_undo) }, 
23         { "/MenuBar/EditMenu/RedoMenu", G_CALLBACK (modest_ui_dimming_rules_on_redo) }, 
24         { "/MenuBar/EditMenu/PasteMenu", G_CALLBACK (modest_ui_dimming_rules_on_editor_paste) },        
25         { "/MenuBar/AttachmentsMenu/RemoveAttachmentsMenu", G_CALLBACK (modest_ui_dimming_rules_on_editor_remove_attachment) }, 
26
27 };
28
29 /* Menu Dimming rules entries */
30 static const ModestDimmingEntry modest_msg_edit_window_toolbar_dimming_entries [] = {
31
32         /* Toolbar */
33         { "/ToolBar/ToolbarSend", G_CALLBACK(modest_ui_dimming_rules_on_send) },
34         { "/ToolBar/ActionsBold", G_CALLBACK(modest_ui_dimming_rules_on_set_style) },
35         { "/ToolBar/ActionsItalics", G_CALLBACK(modest_ui_dimming_rules_on_set_style) },
36 };
37
38 /* Clipboard Dimming rules entries */
39 static const ModestDimmingEntry modest_msg_edit_window_clipboard_dimming_entries [] = {
40
41         /* Toolbar */
42         { "/MenuBar/EditMenu/CutMenu", G_CALLBACK(modest_ui_dimming_rules_on_cut) },
43         { "/MenuBar/EditMenu/CopyMenu", G_CALLBACK(modest_ui_dimming_rules_on_copy) },
44         { "/MenuBar/EditMenu/PasteMenu", G_CALLBACK(modest_ui_dimming_rules_on_editor_paste) },
45 };
46
47 G_END_DECLS
48 #endif /* __MODEST_MSG_VIEW_WINDOW_UI_PRIV_H__ */