Made Document submenu an action, to desensitize it when no documents open
parent
c69d6c2705
commit
a564e9ec9f
|
@ -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"),
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
<separator/>
|
||||
<item action="LanguageMenu"/>
|
||||
<separator/>
|
||||
<item name="Document" _label="_Document">
|
||||
<item action="DocumentSubmenu">
|
||||
<item action="WrapText"/>
|
||||
<item action="LineNumbers"/>
|
||||
</item>
|
||||
|
|
Loading…
Reference in New Issue