[evolution-patches] emacs keybindings
- From: Larry Ewing <lewing ximian com>
- To: patches <evolution-patches ximian com>
- Subject: [evolution-patches] emacs keybindings
- Date: Wed, 03 Sep 2003 12:57:17 -0500
This is a quick hack to make emacs keybindings work a little better in
the editor.
--Larry
cvs diff -r . -r menubar.c
? GNOME_GtkHTML_Editor-emacs.xml
? test_editor
<Root>
<commands>
<cmd name="EditUndo" _label="_Undo" pixtype="stock" pixname="gtk-undo" _tip="Undo the last action"/>
<cmd name="EditRedo" _label="_Redo" pixtype="stock" pixname="gtk-redo" _tip="Redo the undone action"/>
<cmd name="EditCut" _label="Cu_t" pixtype="stock" pixname="gtk-cut" _tip="Cut the selection"/>
<cmd name="EditCopy" _label="_Copy" pixtype="stock" pixname="gtk-copy" _tip="Copy the selection"/>
<cmd name="EditPaste" _label="_Paste" pixtype="stock" pixname="gtk-paste" _tip="Paste the clipboard"/>
<cmd name="EditPasteQuotation" _label="Paste _Quotation" _tip="Paste the clipboard as a quotation"/>
<cmd name="EditFind" _label="_Find..." pixtype="stock" pixname="Find" _tip="Find"/>
<cmd name="EditFindRegex" _label="Find Regular E_xpression..." _tip="Find A Regular Expression"/>
<cmd name="EditFindAgain" _label="Find _Again" _tip="Find again"/>
<cmd name="EditReplace" _label="_Replace..." _tip="Find and Replace"
pixtype="stock" pixname="gtk-find-and-replace"/>
<cmd name="EditSelectAll" _label="Select _All"
_tip="Select the entire contents of the document"/>
<cmd name="EditSpellCheck" _label="_Spell Check Document..."
_tip="Check spelling of the document" accel="*Ctrl**Shift*l"
pixtype="stock" pixname="gtk-spell-check"/>
<cmd name="InsertImage" _label="_Image..." _tip="Insert image into document..."/>
<cmd name="InsertLink" _label="_Link..." _tip="Insert HTML link into document..."/>
<cmd name="InsertRule" _label="_Rule..." _tip="Insert rule into document..."/>
<cmd name="InsertTable" _label="_Table..." _tip="Insert table into document..."/>
<cmd name="InsertTemplate" _label="Te_mplate..." _tip="Insert HTML template into document..."/>
<cmd name="InsertTextFile" _label="Te_xt file..." _tip="Insert text file into document..."/>
<cmd name="InsertHTMLFile" _label="_HTML file..." _tip="Insert HTML file into document..."/>
<cmd name="InsertSmiley3" _label="_Smile" _tip="Insert Smile smiley into document..."/>
<cmd name="InsertSmiley4" _label="_Wink" _tip="Insert Wink smiley into document..."/>
<cmd name="InsertSmiley5" _label="Su_rprised" _tip="Insert Surprised smiley into document..."/>
<cmd name="InsertSmiley1" _label="_Laughing" _tip="Insert Laughing smiley into document..."/>
<cmd name="InsertSmiley2" _label="Oh _no!" _tip="Insert Oh no! smiley into document..."/>
<cmd name="InsertSmiley6" _label="_Frown" _tip="Insert Frown smiley into document..."/>
<cmd name="InsertSmiley8" _label="_Indifferent" _tip="Insert Indifferent smiley into document..."/>
<cmd name="InsertSmiley9" _label="_Undecided" _tip="Insert Undecided smiley into document..."/>
<cmd name="InsertSmiley10" _label="Li_ck" _tip="Insert Lick smiley into document..."/>
<cmd name="InsertSmiley11" _label="Cr_ying" _tip="Insert Crying smiley into document..."/>
<cmd name="HeadingNormal" _label="Normal"
_tip="Make the current Paragraph style Normal"
accel="*Ctrl*0"/>
<cmd name="HeadingPreformat" _label="Preformat"
_tip="Make the current Paragraph style Preformat"
accel="*Ctrl*7"/>
<cmd name="HeadingH1" _label="Header _1"
_tip="Make the current paragraph an H1 header"
accel="*Ctrl*1"/>
<cmd name="HeadingH2" _label="Header _2"
_tip="Make the current paragraph an H2 header"
accel="*Ctrl*2"/>
<cmd name="HeadingH3" _label="Header _3"
_tip="Make the current paragraph an H3 header"
accel="*Ctrl*3"/>
<cmd name="HeadingH4" _label="Header _4"
_tip="Make the current paragraph an H4 header"
accel="*Ctrl*4"/>
<cmd name="HeadingH5" _label="Header _5"
_tip="Make the current paragraph an H5 header"
accel="*Ctrl*5"/>
<cmd name="HeadingH6" _label="Header _6"
_tip="Make the current paragraph an H6 header"
accel="*Ctrl*6"/>
<cmd name="HeadingAddress" _label="A_ddress"
_tip="Make the current paragraph an address"
accel="*Ctrl*8"/>
<cmd name="HeadingBulletedList"
_label="Bulleted List"
_tip="Make the current paragraph a bulleted list"
accel="*Ctrl**Alt*1"/>
<cmd name="HeadingRomanList"
_label="Roman Numeral List"
_tip="Make the current paragraph a list with roman numerals"
accel="*Ctrl**Alt*2"/>
<cmd name="HeadingNumberedList"
_label="Numbered List"
_tip="Make the current paragraph a numbered list"
accel="*Ctrl**Alt*3"/>
<cmd name="HeadingAlphabeticalList"
_label="Alphabetical List"
_tip="Make the current paragraph an alphabetical list"
accel="*Ctrl**Alt*4"/>
<cmd name="AlignLeft" _label="_Left"
_tip="Left justifies the paragraphs"
pixtype="stock" pixname="gtk-justify-left"/>
<cmd name="AlignCenter" _label="_Center"
_tip="Center justifies the paragraphs"
pixtype="stock" pixname="gtk-justify-center"/>
<cmd name="AlignRight" _label="_Right"
_tip="Right justifies the paragraphs"
pixtype="stock" pixname="gtk-justify-right"/>
<cmd name="FormatBold" _label="_Bold" accel=""
pixtype="stock" pixname="gtk-bold"/>
<cmd name="FormatItalic" _label="_Italic" accel="*Ctrl*i"
pixtype="stock" pixname="gtk-italic"/>
<cmd name="FormatUnderline" _label="_Underline" accel="*Ctrl*u"
pixtype="stock" pixname="gtk-underline"/>
<cmd name="FormatStrikeout" _label="Strikeout"
pixtype="stock" pixname="gtk-strikethrough"/>
<cmd name="FormatFixed" _label="Typewriter" accel="*Ctrl*t"
pixtype="filename" pixname="@ICONSDIR@/font-tt-16.png"/>
<cmd name="FormatSubscript" _label="Subscript"/>
<cmd name="FormatSuperscript" _label="Superscript"/>
<cmd name="FontSizeNegTwo"/>
<cmd name="FontSizeNegOne"/>
<cmd name="FontSizeZero"/>
<cmd name="FontSizeOne"/>
<cmd name="FontSizeTwo"/>
<cmd name="FontSizeThree"/>
<cmd name="IndentMore"
pixtype="stock" pixname="gnome-stock-text-indent"/>
<cmd name="IndentLess"
pixtype="stock" pixname="gnome-stock-text-unindent"/>
</commands>
<menu>
<submenu name="Edit" _label="_Edit">
<placeholder name="EditUndoRedo">
<menuitem name="EditUndo" verb="" accel="*Ctrl*Z"/>
<menuitem name="EditRedo" verb="" accel="*Ctrl*R"/>
</placeholder>
<placeholder name="EditCutCopyPaste">
<menuitem name="EditCut" verb="" accel="*Ctrl*X"/>
<menuitem name="EditCopy" verb="" accel="*Ctrl*C"
pixtype="filename" pixname="@ICONSDIR@/16_copy.png"/>
<menuitem name="EditPaste" verb="" accel="*Ctrl*V"
pixtype="filename" pixname="@ICONSDIR@/16_paste.png"/>
<menuitem name="EditPasteQuotation" verb="" accel="*Ctrl**Shift*V"/>
<separator/>
<menuitem name="EditSelectAll" verb="" accel=""/>
</placeholder>
<placeholder name="EditFindReplace">
<menuitem name="EditFind" verb="" accel=""
pixtype="filename" pixname="@ICONSDIR@/search-16.png"/>
<menuitem name="EditFindRegex" verb="" accel=""/>
<menuitem name="EditFindAgain" verb="" accel="*Ctrl*G"/>
<menuitem name="EditReplace" verb="" accel="*Ctrl**Shift*F"
pixtype="filename" pixname="@ICONSDIR@/search-and-replace-16.png"/>
</placeholder>
<placeholder name="EditMisc">
<menuitem name="EditSpellCheck" verb=""/>
<placeholder name="EditSpellLanguages">
</placeholder>
</placeholder>
</submenu>
<submenu name="Insert" _label="_Insert">
<placeholder name="Component">
<menuitem name="InsertImage" verb=""
pixtype="filename" pixname="@ICONSDIR@/insert-image-16.png"/>
<menuitem name="InsertLink" verb=""
pixtype="filename" pixname="@ICONSDIR@/insert-link-16.png"/>
<menuitem name="InsertRule" verb=""
pixtype="filename" pixname="@ICONSDIR@/insert-rule-16.png"/>
<menuitem name="InsertTable" verb=""
pixtype="filename" pixname="@ICONSDIR@/insert-table-16.png"/>
<menuitem name="InsertTemplate" verb=""
pixtype="filename" pixname="@ICONSDIR@/insert-object-16.png"/>
<menuitem name="InsertTextFile" verb=""/>
<menuitem name="InsertHTMLFile" verb=""/>
<submenu name="Smiley" _label="_Smiley"
pixtype="filename" pixname="@ICONSDIR@/smiley-3.png">
<menuitem name="InsertSmiley3" verb=""
pixtype="filename" pixname="@ICONSDIR@/smiley-3.png"/>
<menuitem name="InsertSmiley4" verb=""
pixtype="filename" pixname="@ICONSDIR@/smiley-4.png"/>
<menuitem name="InsertSmiley5" verb=""
pixtype="filename" pixname="@ICONSDIR@/smiley-5.png"/>
<menuitem name="InsertSmiley1" verb=""
pixtype="filename" pixname="@ICONSDIR@/smiley-1.png"/>
<menuitem name="InsertSmiley2" verb=""
pixtype="filename" pixname="@ICONSDIR@/smiley-2.png"/>
<menuitem name="InsertSmiley6" verb=""
pixtype="filename" pixname="@ICONSDIR@/smiley-6.png"/>
<menuitem name="InsertSmiley8" verb=""
pixtype="filename" pixname="@ICONSDIR@/smiley-8.png"/>
<menuitem name="InsertSmiley9" verb=""
pixtype="filename" pixname="@ICONSDIR@/smiley-9.png"/>
<menuitem name="InsertSmiley10" verb=""
pixtype="filename" pixname="@ICONSDIR@/smiley-10.png"/>
<menuitem name="InsertSmiley11" verb=""
pixtype="filename" pixname="@ICONSDIR@/smiley-11.png"/>
</submenu>
</placeholder>
</submenu>
<submenu name="Format" _label="For_mat">
<separator/>
<placeholder name="FormatParagaph">
<submenu name="FontStyle" _label="_Style">
<menuitem name="FormatFixed" verb="" _label="_Plain text"/>
<separator/>
<menuitem name="FormatBold" verb="" _label="_Bold"/>
<menuitem name="FormatItalic" verb="" _label="_Italic"/>
<menuitem name="FormatUnderline" verb="" _label="_Underline"/>
<menuitem name="FormatStrikeout" verb="" _label="_Strikeout"/>
<!--
<separator/>
<menuitem name="FormatSubscript" verb="" _label="Subs_cript"/>
<menuitem name="FormatSuperscript" verb="" _label="Su_perscript"/>
-->
</submenu>
<submenu name="FontSize" _label="_Font Size">
<menuitem name="-2" verb="FontSizeNegTwo" _label="-2"/>
<menuitem name="-1" verb="FontSizeNegOne" _label="-1"/>
<menuitem name="+0" verb="FontSizeZero" _label="+0"/>
<menuitem name="+1" verb="FontSizeOne" _label="+1"/>
<menuitem name="+2" verb="FontSizeTwo" _label="+2"/>
<menuitem name="+3" verb="FontSizeThree" _label="+3"/>
</submenu>
<!--
<submenu name="BackgroundColor" _label="Background Color">
<menuitem name="ColorRed" verb="" _label="Red"/>
<menuitem name="ColorOrange" verb="" _label="Orange"/>
<menuitem name="ColorYellow" verb="" _label="Yellow"/>
<menuitem name="ColorGreen" verb="" _label="Green"/>
<menuitem name="ColorBlue" verb="" _label="Blue"/>
<menuitem name="ColorPurple" verb="" _label="Purple"/>
<menuitem name="etc" verb="" _label="etc..."/>
<separator/>
<menuitem name="Other" verb="" _label="Other..."/>
</submenu>
-->
<menuitem name="FormatText" verb="" _label="_Text..."/>
<separator/>
<submenu name="Heading" _label="_Heading">
<menuitem name="HeadingNormal" verb="" _label="_Normal"/>
<menuitem name="HeadingPreformat" verb="" _label="_Preformat"/>
<menuitem name="HeadingBulletedList" verb="" _label="_Bulleted List"/>
<menuitem name="HeadingRomanList" verb="" _label="_Roman Numeral List"/>
<menuitem name="HeadingNumberedList" verb="" _label="Numbered _List"/>
<menuitem name="HeadingAlphabeticalList" verb="" _label="_Alphabetical List"/>
<menuitem name="HeadingH1" verb="" _label="Header _1"/>
<menuitem name="HeadingH2" verb="" _label="Header _2"/>
<menuitem name="HeadingH3" verb="" _label="Header _3"/>
<menuitem name="HeadingH4" verb="" _label="Header _4"/>
<menuitem name="HeadingH5" verb="" _label="Header _5"/>
<menuitem name="HeadingH6" verb="" _label="Header _6"/>
<menuitem name="HeadingAddress" verb="" _label="A_ddress"/>
</submenu>
<submenu name="Alignment" _label="_Alignment">
<menuitem name="AlignLeft" verb="" _label="_Left"/>
<menuitem name="AlignCenter" verb="" _label="_Center"/>
<menuitem name="AlignRight" verb="" _label="_Right"/>
</submenu>
<menuitem name="FormatParagraph" verb="" _label="_Paragraph..."/>
<separator/>
<menuitem name="IndentMore" verb="" _label="_Increase Indent" accel="*Ctrl*TAB"/>
<menuitem name="IndentLess" verb="" _label="_Decrease Indent" accel="*Shift**Ctrl*TAB"/>
<separator/>
<menuitem name="FormatPage" verb="" _label="_Page..."/>
</placeholder>
</submenu>
</menu>
<dockitem name="Toolbar">
<toolitem name="EditUndo" verb="" _label="Undo" _tip="Undo previous changes"/>
<toolitem name="EditRedo" verb="" _label="Redo" _tip="Redo previously undone change"/>
<separator/>
<toolitem name="EditCut" verb="" _label="Cut" _tip="Cut selection to clipboard"/>
<toolitem name="EditCopy" verb="" _label="Copy" _tip="Copy selection to clipboard"/>
<toolitem name="EditPaste" verb="" _label="Paste" _tip="Paste from clipboard"/>
<separator/>
<toolitem name="EditFind" verb="" _label="Find" _tip="Find"/>
<toolitem name="EditReplace" verb="" _label="Replace" _tip="Find And Replace"/>
<separator/>
<toolitem name="InsertImage" verb="" _label="Image"
pixtype="filename" pixname="@ICONSDIR@/insert-image-24.png"/>
<toolitem name="InsertLink" verb="" _label="Link"
pixtype="filename" pixname="@ICONSDIR@/insert-link-24.png"/>
<toolitem name="InsertRule" verb="" _label="Rule"
pixtype="filename" pixname="@ICONSDIR@/insert-rule-24.png"/>
<toolitem name="InsertTable" verb="" _label="Table"
pixtype="filename" pixname="@ICONSDIR@/insert-table-24.png"/>
<toolitem name="InsertTemplate" verb="" _label="Template"
pixtype="filename" pixname="@ICONSDIR@/insert-object-24.png"/>
</dockitem>
</Root>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]