r20135 - gnucash/trunk/src - Bug #352057 button to create a new invoice when viewing an old one.

Geert Janssens gjanssens at code.gnucash.org
Fri Jan 21 06:52:19 EST 2011


Author: gjanssens
Date: 2011-01-21 06:52:19 -0500 (Fri, 21 Jan 2011)
New Revision: 20135
Trac: http://svn.gnucash.org/trac/changeset/20135

Added:
   gnucash/trunk/src/pixmaps/gnc-invoice-new-16.png
   gnucash/trunk/src/pixmaps/gnc-invoice-new.png
Modified:
   gnucash/trunk/src/business/business-gnome/gnc-plugin-page-invoice.c
   gnucash/trunk/src/business/business-gnome/ui/gnc-plugin-page-invoice-ui.xml
   gnucash/trunk/src/gnome-utils/gnc-icons.c
   gnucash/trunk/src/gnome-utils/gnc-icons.h
   gnucash/trunk/src/pixmaps/Makefile.am
Log:
Bug #352057 button to create a new invoice when viewing an old one.

Modified: gnucash/trunk/src/business/business-gnome/gnc-plugin-page-invoice.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/gnc-plugin-page-invoice.c	2011-01-21 11:52:09 UTC (rev 20134)
+++ gnucash/trunk/src/business/business-gnome/gnc-plugin-page-invoice.c	2011-01-21 11:52:19 UTC (rev 20135)
@@ -98,11 +98,6 @@
 
     /* File menu */
     {
-        "FileNewInvoiceAction", GTK_STOCK_NEW, N_("New _Invoice"), "",
-        N_("Create a new invoice"),
-        G_CALLBACK (gnc_plugin_page_invoice_cmd_new_invoice)
-    },
-    {
         "FileNewAccountAction", GNC_STOCK_NEW_ACCOUNT, N_("New _Account..."), NULL,
         N_("Create a new account"),
         G_CALLBACK (gnc_plugin_page_invoice_cmd_new_account)
@@ -179,6 +174,11 @@
 
     /* Business menu */
     {
+        "BusinessNewInvoiceAction", GNC_STOCK_INVOICE_NEW, N_("New _Invoice"), "",
+        N_("Create a new invoice for the same owner as the current one"),
+        G_CALLBACK (gnc_plugin_page_invoice_cmd_new_invoice)
+    },
+    {
         "ToolsProcessPaymentAction", GNC_STOCK_INVOICE_PAY, N_("_Pay Invoice"), NULL,
         N_("Enter a payment for the owner of this Invoice"),
         G_CALLBACK (gnc_plugin_page_invoice_cmd_pay_invoice)

Modified: gnucash/trunk/src/business/business-gnome/ui/gnc-plugin-page-invoice-ui.xml
===================================================================
--- gnucash/trunk/src/business/business-gnome/ui/gnc-plugin-page-invoice-ui.xml	2011-01-21 11:52:09 UTC (rev 20134)
+++ gnucash/trunk/src/business/business-gnome/ui/gnc-plugin-page-invoice-ui.xml	2011-01-21 11:52:19 UTC (rev 20135)
@@ -51,12 +51,13 @@
 
   <toolbar name="DefaultToolbar">
     <placeholder name="DefaultToolbarPlaceholder">
+      <toolitem name="ToolbarNewInvoice"       action="BusinessNewInvoiceAction"/>
       <toolitem name="ToolbarEditInvoice"       action="EditEditInvoiceAction"/>
       <toolitem name="ToolbarDuplicateInvoice"  action="EditDuplicateInvoiceAction"/>
+      <separator name="ToolbarSep65"/>
       <toolitem name="ToolbarRecordEntry"    	action="RecordEntryAction"/>
       <toolitem name="ToolbarCancelEntry"    	action="CancelEntryAction"/>
       <toolitem name="ToolbarDeleteEntry"    	action="DeleteEntryAction"/>
-      <separator name="ToolbarSep66"/>
       <toolitem name="ToolbarDuplicateEntry" 	action="DuplicateEntryAction"/>
       <toolitem name="ToolbarBlankEntry"     	action="BlankEntryAction"/>
       <separator name="ToolbarSep68"/>

Modified: gnucash/trunk/src/gnome-utils/gnc-icons.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-icons.c	2011-01-21 11:52:09 UTC (rev 20134)
+++ gnucash/trunk/src/gnome-utils/gnc-icons.c	2011-01-21 11:52:19 UTC (rev 20135)
@@ -46,6 +46,7 @@
     { GNC_STOCK_INVOICE_PAY,    "gnc-invoice-pay.png",    "gnc-invoice-pay-16.png"},
     { GNC_STOCK_INVOICE_POST,   "gnc-invoice-post.png",   "gnc-invoice-post-16.png"},
     { GNC_STOCK_INVOICE_UNPOST, "gnc-invoice-unpost.png", "gnc-invoice-unpost-16.png"},
+    { GNC_STOCK_INVOICE_NEW,    "gnc-invoice-new.png",   "gnc-invoice-new-16.png"},
     { GNC_STOCK_INVOICE_EDIT,   "gnc-invoice-edit.png",   "gnc-invoice-edit-16.png"},
     { GNC_STOCK_INVOICE_DUPLICATE, "gnc-invoice-duplicate.png", "gnc-invoice-duplicate-16.png"},
     { 0 },

Modified: gnucash/trunk/src/gnome-utils/gnc-icons.h
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-icons.h	2011-01-21 11:52:09 UTC (rev 20134)
+++ gnucash/trunk/src/gnome-utils/gnc-icons.h	2011-01-21 11:52:19 UTC (rev 20135)
@@ -22,6 +22,7 @@
 #define GNC_STOCK_INVOICE_POST "gnc-invoice-post"
 #define GNC_STOCK_INVOICE_UNPOST "gnc-invoice-unpost"
 #define GNC_STOCK_INVOICE_PAY "gnc-invoice-pay"
+#define GNC_STOCK_INVOICE_NEW "gnc-invoice-new"
 #define GNC_STOCK_INVOICE_EDIT "gnc-invoice-edit"
 #define GNC_STOCK_INVOICE_DUPLICATE "gnc-invoice-duplicate"
 

Modified: gnucash/trunk/src/pixmaps/Makefile.am
===================================================================
--- gnucash/trunk/src/pixmaps/Makefile.am	2011-01-21 11:52:09 UTC (rev 20134)
+++ gnucash/trunk/src/pixmaps/Makefile.am	2011-01-21 11:52:19 UTC (rev 20135)
@@ -16,6 +16,8 @@
   gnc-invoice-duplicate.png \
   gnc-invoice-edit-16.png \
   gnc-invoice-edit.png \
+  gnc-invoice-new-16.png \
+  gnc-invoice-new.png \
   gnc-invoice-pay-16.png \
   gnc-invoice-pay.png \
   gnc-invoice-post-16.png \

Added: gnucash/trunk/src/pixmaps/gnc-invoice-new-16.png
===================================================================
--- gnucash/trunk/src/pixmaps/gnc-invoice-new-16.png	                        (rev 0)
+++ gnucash/trunk/src/pixmaps/gnc-invoice-new-16.png	2011-01-21 11:52:19 UTC (rev 20135)
@@ -0,0 +1,7 @@
+‰PNG
+
++6JþÙ¹S3\ No newline at end of file

Added: gnucash/trunk/src/pixmaps/gnc-invoice-new.png
===================================================================
--- gnucash/trunk/src/pixmaps/gnc-invoice-new.png	                        (rev 0)
+++ gnucash/trunk/src/pixmaps/gnc-invoice-new.png	2011-01-21 11:52:19 UTC (rev 20135)
@@ -0,0 +1,9 @@
+‰PNG
+
++==˜a`†+Ÿž9³–èèìàò÷—¨Ç››¸¿.\½Êó‡'+…££‡¶xNV‰²1»Må³›ízû¿SœsH.Õˆäp)E<þ>óŸÍ1ÿùÜ–ß_ûbß>ü•óÏý‹ãøÖåo¾½ÝÚÖêQðrHé±ù=
+/ž¿ °¡þ,ÀÅó–êëë-q#¾e£ÃÃ-õF£ûÎÝ»m+««ÑZ­­×ëQÇùع¼s.’IêÔìb3«a¶Öb¶zoøïï²\ No newline at end of file



More information about the gnucash-changes mailing list