[gnumeric] Add resize action to the Edit->Sheet menu.



commit 45dd56e0b8ed0eb39d600cce24dc04bb017bf3ca
Author: Morten Welinder <terra gnome org>
Date:   Mon Apr 20 15:06:27 2009 -0400

    Add resize action to the Edit->Sheet menu.
---
 src/GNOME_Gnumeric-gtk.xml.in |    1 +
 src/wbc-gtk-actions.c         |    4 ++++
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/GNOME_Gnumeric-gtk.xml.in b/src/GNOME_Gnumeric-gtk.xml.in
index eb0500c..0d4ca50 100644
--- a/src/GNOME_Gnumeric-gtk.xml.in
+++ b/src/GNOME_Gnumeric-gtk.xml.in
@@ -68,6 +68,7 @@
         <menuitem action="EditDuplicateSheet"/>
         <menuitem action="SheetRemove"/>
         <menuitem action="SheetChangeName"/>
+        <menuitem action="SheetResize"/>
       </menu>
       <menu name="Select" action="MenuEditSelect">
         <menuitem action="EditSelectAll"/>
diff --git a/src/wbc-gtk-actions.c b/src/wbc-gtk-actions.c
index c9bad02..37430ff 100644
--- a/src/wbc-gtk-actions.c
+++ b/src/wbc-gtk-actions.c
@@ -823,6 +823,7 @@ static GNM_ACTION_DEF (cb_sheet_name)
 }
 
 static GNM_ACTION_DEF (cb_sheet_order)		{ dialog_sheet_order (wbcg); }
+static GNM_ACTION_DEF (cb_sheet_resize)		{ dialog_sheet_resize (wbcg); }
 static GNM_ACTION_DEF (cb_format_cells)		{ dialog_cell_format (wbcg, FD_CURRENT); }
 static GNM_ACTION_DEF (cb_autoformat)		{ dialog_autoformat (wbcg); }
 static GNM_ACTION_DEF (cb_workbook_attr)	{ dialog_workbook_attr (wbcg); }
@@ -1885,6 +1886,9 @@ static GtkActionEntry const actions[] = {
 	{ "SheetChangeName", NULL, N_("Re_name"),
 		NULL, N_("Rename the current sheet"),
 		G_CALLBACK (cb_sheet_name) },
+	{ "SheetResize", NULL, N_("Resize..."),
+		NULL, N_("Change the size of the current sheet"),
+		G_CALLBACK (cb_sheet_resize) },
 
 /* Edit */
 	{ "Repeat", NULL, N_("Repeat"),



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