From 14baacc4b7707b43d630d3a676aaa0ee83cec80d Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Sat, 15 May 2010 13:48:40 +0000 Subject: [PATCH] Add "Pay invoice" toolbar button when invoice is open. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19169 57a11ea4-9604-0410-9ed3-97b8803252fd --- art/tango/gnc-invoice-pay.svg | 786 ++++++++++++++++++ .../business-gnome/gnc-plugin-page-invoice.c | 2 +- .../ui/gnc-plugin-page-invoice-ui.xml | 1 + src/gnome-utils/gnc-icons.c | 1 + src/gnome-utils/gnc-icons.h | 1 + src/pixmaps/Makefile.am | 2 + src/pixmaps/gnc-invoice-pay-16.png | Bin 0 -> 767 bytes src/pixmaps/gnc-invoice-pay.png | Bin 0 -> 1313 bytes 8 files changed, 792 insertions(+), 1 deletion(-) create mode 100644 art/tango/gnc-invoice-pay.svg create mode 100644 src/pixmaps/gnc-invoice-pay-16.png create mode 100644 src/pixmaps/gnc-invoice-pay.png diff --git a/art/tango/gnc-invoice-pay.svg b/art/tango/gnc-invoice-pay.svg new file mode 100644 index 0000000000..ac40af7f1a --- /dev/null +++ b/art/tango/gnc-invoice-pay.svg @@ -0,0 +1,786 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + Andreas Nilsson + + + + + http://www.gnome.org + + + Jakub Steiner + + + + + + + + + + + + + + + + + + + + INVOICED + VAT + TOTAL + 111 + 1 + 111 + + + + + + + + + + + + + + + + + + diff --git a/src/business/business-gnome/gnc-plugin-page-invoice.c b/src/business/business-gnome/gnc-plugin-page-invoice.c index cf1661a6c3..aca112c2c9 100644 --- a/src/business/business-gnome/gnc-plugin-page-invoice.c +++ b/src/business/business-gnome/gnc-plugin-page-invoice.c @@ -173,7 +173,7 @@ static GtkActionEntry gnc_plugin_page_invoice_actions [] = /* Business menu */ { - "ToolsProcessPaymentAction", NULL, N_("_Pay Invoice"), NULL, + "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) }, diff --git a/src/business/business-gnome/ui/gnc-plugin-page-invoice-ui.xml b/src/business/business-gnome/ui/gnc-plugin-page-invoice-ui.xml index bb49e2fa28..be1284c121 100644 --- a/src/business/business-gnome/ui/gnc-plugin-page-invoice-ui.xml +++ b/src/business/business-gnome/ui/gnc-plugin-page-invoice-ui.xml @@ -69,6 +69,7 @@ + diff --git a/src/gnome-utils/gnc-icons.c b/src/gnome-utils/gnc-icons.c index 29c0c78fc4..f16b317cc8 100644 --- a/src/gnome-utils/gnc-icons.c +++ b/src/gnome-utils/gnc-icons.c @@ -43,6 +43,7 @@ static item_file item_files[] = { GNC_STOCK_SPLIT_TRANS, "gnc-split-trans.png", "gnc-split-trans-16.png"}, { GNC_STOCK_JUMP_TO, "gnc-jumpto.png", "gnc-jumpto-16.png"}, { GNC_STOCK_INVOICE, "gnc-invoice.png", "gnc-invoice-16.png"}, + { 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_EDIT, "gnc-invoice-edit.png", "gnc-invoice-edit-16.png"}, diff --git a/src/gnome-utils/gnc-icons.h b/src/gnome-utils/gnc-icons.h index 0fa35d81b4..7804db5d2a 100644 --- a/src/gnome-utils/gnc-icons.h +++ b/src/gnome-utils/gnc-icons.h @@ -21,6 +21,7 @@ G_BEGIN_DECLS #define GNC_STOCK_INVOICE "gnc-invoice-post" #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_EDIT "gnc-invoice-edit" //FIXME: use own budget icons? diff --git a/src/pixmaps/Makefile.am b/src/pixmaps/Makefile.am index 471b10fcb4..99788b02fe 100644 --- a/src/pixmaps/Makefile.am +++ b/src/pixmaps/Makefile.am @@ -14,6 +14,8 @@ gncpixmap_DATA = \ gnc-invoice-16.png \ gnc-invoice-edit-16.png \ gnc-invoice-edit.png \ + gnc-invoice-pay-16.png \ + gnc-invoice-pay.png \ gnc-invoice-post-16.png \ gnc-invoice-post.png \ gnc-invoice-unpost-16.png \ diff --git a/src/pixmaps/gnc-invoice-pay-16.png b/src/pixmaps/gnc-invoice-pay-16.png new file mode 100644 index 0000000000000000000000000000000000000000..880f29d9edb0e472d0356c263b2cad3ad6477665 GIT binary patch literal 767 zcmV$K}Oy-pt92&Yie(OeTE4}q! zfJivX`!`F*Xsub_NDzwM0Zx~r)vS})_<&Lh1E7?~9Y8D+Cl-mH2-r-e&{{JR4j<9iS3h+CyV)$IViDJMX|`H; zjKPW^)^au&JTxQ|%j7akXzem~djzJ&yh_whD?z)|P#?I%*3)85tuK^ecg^olkl}c196)L4t2PBqUW{JtEDTXgcsg#T45BAv2tp?3;JNvv|GU+rv zzaQ6iyT@&l`tp{<+9K{5L!-J6s$U%o(2hf7bo95NG``+T{LCg99_gc0tWqvlaROHh z#{&Ky5lcD0$<)1gr#!}?-8Ssxa~{JV^{dzGtgWoz4+JRW^8j2M9|yqk`1!c}jas#V zr^nE2D3s%GnR2;&2yk7On-dfNB&`$y`RzR+7w7>T x(E`v`Ry9NZ<#>NE_e3e_L#TX9JP)Bhte3p63d#26)t zuPDBfMhZxWr!A23Xsa^M-s#NTx%aq0hEz*RQvSPhzMSuO{^y*0N9^6T>jm3!UIuLL zW(iR$`TiTa?YghNxO;bx?KpSUzgQ@6VBfyibSZ=pi^mx}_AA#WF3;OoDd_21#mcT# z0FDk&tp$u+I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