Made Document submenu an action, to desensitize it when no documents open

master
Yevgen Muntyan 2006-11-26 01:09:47 -06:00
parent c69d6c2705
commit a564e9ec9f
2 changed files with 7 additions and 1 deletions

View File

@ -606,6 +606,12 @@ moo_edit_window_class_init (MooEditWindowClass *klass)
"condition::sensitive", "has-open-document",
NULL);
moo_window_class_new_action (window_class, "DocumentSubmenu", NULL,
"label", _("_Document"),
"no-accel", TRUE,
"condition::sensitive", "has-open-document",
NULL);
moo_window_class_new_action (window_class, "WrapText", NULL,
"action-type::", MOO_TYPE_TOGGLE_ACTION,
"display-name", _("Toggle Text Wrapping"),

View File

@ -81,7 +81,7 @@
<separator/>
<item action="LanguageMenu"/>
<separator/>
<item name="Document" _label="_Document">
<item action="DocumentSubmenu">
<item action="WrapText"/>
<item action="LineNumbers"/>
</item>