The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Move menu entry for merge

These changes was commited to the Birdfont repository Sat, 15 Aug 2015 07:50:35 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Sat, 15 Aug 2015 07:50:35 +0000 (09:50 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sat, 15 Aug 2015 07:50:35 +0000 (09:50 +0200)
commit 9ebcf031ab7226bba4a595726adf31782b381c4a
tree 04716c685df5a08a4b5b1af13b377947dcc2ca6b
parent 32ea0753cf6b8b73efc660ad68c84f75584f72c9
Move menu entry for merge

libbirdfont/Menu.vala
--- a/libbirdfont/Menu.vala +++ b/libbirdfont/Menu.vala @@ -158,6 +158,16 @@ show_menu = false; }); edit_menu.items.add (simplify_path); + + MenuItem merge_paths = add_menu_item (t_("Merge Paths"), "merge_paths", "Glyph"); + merge_paths.action.connect (() => { + Task t = new Task (); + t.task.connect (merge_selected_paths); + MainWindow.native_window.run_background_thread (t); + + show_menu = false; + }); + edit_menu.items.add (merge_paths); MenuItem close_path = add_menu_item (t_("Close Path"), "close path", "Glyph"); close_path.action.connect (() => { @@ -228,16 +238,6 @@ show_menu = false; }); edit_menu.items.add (select_point_below); - - MenuItem merge_paths = add_menu_item (t_("Merge Paths"), "merge_paths", "Glyph"); - merge_paths.action.connect (() => { - Task t = new Task (); - t.task.connect (merge_selected_paths); - MainWindow.native_window.run_background_thread (t); - - show_menu = false; - }); - edit_menu.items.add (merge_paths); // layers MenuItem layers = add_menu_item (t_("Layers"));