[gnumeric] GUI: make more menu entries available while an object is selected.



commit c4c8e51f5ec1ce8dd8b1505635fff0dd35ea8c6c
Author: Morten Welinder <terra gnome org>
Date:   Tue Mar 23 13:16:06 2010 -0400

    GUI: make more menu entries available while an object is selected.

 ChangeLog             |    5 +++++
 NEWS                  |    1 +
 src/wbc-gtk-actions.c |   28 ++++++++++++++--------------
 3 files changed, 20 insertions(+), 14 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f0765ea..c24bd77 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-23  Morten Welinder  <terra gnome org>
+
+	* src/wbc-gtk-actions.c (permanent_actions): Move FileNew,
+	FileOpen, and a few more actions here.
+
 2010-03-13 Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* src/item-bar.c (item_bar_calc_size): use pango_itemize to create
diff --git a/NEWS b/NEWS
index da743be..78bbe1b 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ Andreas:
 Morten:
 	* Improve object sizing tooltip positioning a bit.
 	* Fix filter critical.  [#611073]
+	* Make more menu entries available when an object is selected.
 
 --------------------------------------------------------------------------
 Gnumeric 1.10.1
diff --git a/src/wbc-gtk-actions.c b/src/wbc-gtk-actions.c
index a579d43..6b94847 100644
--- a/src/wbc-gtk-actions.c
+++ b/src/wbc-gtk-actions.c
@@ -1692,8 +1692,6 @@ static GNM_ACTION_DEF (cb_file_menu)
 /* Actions that are always sensitive */
 static GtkActionEntry const permanent_actions[] = {
 	{ "MenuFile",		NULL, N_("_File"), NULL, NULL, G_CALLBACK (cb_file_menu) },
-	{ "FileNewFromTemplate", GTK_STOCK_NEW, N_("New From Template"), "" },
-		{ "FilePrintArea",      NULL, N_("Print Area")},
 	{ "MenuEdit",		NULL, N_("_Edit") },
 		{ "MenuEditClear",	GTK_STOCK_CLEAR, N_("C_lear") },
 		{ "MenuEditDelete",	GTK_STOCK_DELETE, N_("_Delete") },
@@ -1726,12 +1724,26 @@ static GtkActionEntry const permanent_actions[] = {
 		{ "MenuSlicer",		NULL,	N_("Data S_licer") },
 	{ "MenuHelp",	NULL,	N_("_Help") },
 
+	{ "FileNew", GTK_STOCK_NEW, NULL,
+		NULL, N_("Create a new workbook"),
+		G_CALLBACK (cb_file_new) },
+	{ "FileNewFromTemplate", GTK_STOCK_NEW, N_("New From Template"), "" },
+	{ "FileOpen", GTK_STOCK_OPEN, NULL,
+		NULL, N_("Open a file"),
+		G_CALLBACK (cb_file_open) },
 	{ "FileSave", GTK_STOCK_SAVE, NULL,
 		NULL, N_("Save the current workbook"),
 		G_CALLBACK (cb_file_save) },
 	{ "FileSaveAs", GTK_STOCK_SAVE_AS, NULL,
 		"<control><shift>s", N_("Save the current workbook with a different name"),
 		G_CALLBACK (cb_file_save_as) },
+	{ "FileSend", "Gnumeric_Link_EMail", N_("Sen_d To..."),
+		NULL, N_("Send the current file via email"),
+		G_CALLBACK (cb_file_sendto) },
+	{ "FilePrintArea",      NULL, N_("Print Area")},
+	{ "FileHistoryFull", NULL, N_("Full _History..."),
+		NULL, N_("Access previously used file"),
+		G_CALLBACK (cb_file_history_full) },
 	{ "FileClose", GTK_STOCK_CLOSE, NULL,
 		NULL, N_("Close the current file"),
 		G_CALLBACK (cb_file_close) },
@@ -1784,15 +1796,6 @@ static GtkActionEntry const permanent_actions[] = {
 
 static GtkActionEntry const actions[] = {
 /* File */
-	{ "FileNew", GTK_STOCK_NEW, NULL,
-		NULL, N_("Create a new workbook"),
-		G_CALLBACK (cb_file_new) },
-	{ "FileOpen", GTK_STOCK_OPEN, NULL,
-		NULL, N_("Open a file"),
-		G_CALLBACK (cb_file_open) },
-	{ "FileSend", "Gnumeric_Link_EMail", N_("Sen_d To..."),
-		NULL, N_("Send the current file via email"),
-		G_CALLBACK (cb_file_sendto) },
 #ifdef HAVE_GTK_ADJUSTMENT_CONFIGURE
 	/* gtk_adjustment_configure implies gtk 2.14 or later */
 	/* that is required for GTK_STOCK_PAGE_SETUP */
@@ -1811,9 +1814,6 @@ static GtkActionEntry const actions[] = {
 	{ "FileMetaData", GTK_STOCK_PROPERTIES, N_("Document Proper_ties..."),
 		NULL, N_("Edit document properties"),
 		G_CALLBACK (cb_doc_meta_data) },
-	{ "FileHistoryFull", NULL, N_("Full _History..."),
-		NULL, N_("Access previously used file"),
-		G_CALLBACK (cb_file_history_full) },
 
 /* File->PrintArea */
         { "FilePrintAreaSet", NULL, N_("Set Print Area"),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]