diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2012-09-17 02:23:02 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-09-18 07:20:13 -0400 |
commit | 16bff5265e58c9708cd2d28cc0d7d7c7ca569fe1 (patch) | |
tree | 365043481851a19a94bbeb1ea28d466249d7101a | |
parent | fc250493ca7a4397ec0908c3c93e519c165a3141 (diff) | |
download | subsurface-16bff5265e58c9708cd2d28cc0d7d7c7ca569fe1.tar.gz |
Added an entry "New" in the "File" menu
Currently doubles the functionality of "Close" (file_close).
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | gtk-gui.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -869,6 +869,7 @@ static GtkActionEntry menu_items[] = { { "ViewMenuAction", NULL, "View", NULL, NULL, NULL}, { "FilterMenuAction", NULL, "Filter", NULL, NULL, NULL}, { "HelpMenuAction", NULL, "Help", NULL, NULL, NULL}, + { "NewFile", GTK_STOCK_NEW, NULL, CTRLCHAR "N", NULL, G_CALLBACK(file_close) }, { "OpenFile", GTK_STOCK_OPEN, NULL, CTRLCHAR "O", NULL, G_CALLBACK(file_open) }, { "SaveFile", GTK_STOCK_SAVE, NULL, CTRLCHAR "S", NULL, G_CALLBACK(file_save) }, { "SaveAsFile", GTK_STOCK_SAVE_AS, NULL, SHIFTCHAR CTRLCHAR "S", NULL, G_CALLBACK(file_save_as) }, @@ -899,6 +900,7 @@ static const gchar* ui_string = " \ <ui> \ <menubar name=\"MainMenu\"> \ <menu name=\"FileMenu\" action=\"FileMenuAction\"> \ + <menuitem name=\"New\" action=\"NewFile\" /> \ <menuitem name=\"Open\" action=\"OpenFile\" /> \ <menuitem name=\"Save\" action=\"SaveFile\" /> \ <menuitem name=\"Save As\" action=\"SaveAsFile\" /> \ |