[Gnucash-changes] r13826 - gnucash/trunk - Add new icons for invoices, adding a scheduled transaction, and the

David Hampton hampton at cvs.gnucash.org
Sat Apr 22 00:02:22 EDT 2006


Author: hampton
Date: 2006-04-22 00:02:21 -0400 (Sat, 22 Apr 2006)
New Revision: 13826
Trac: http://svn.gnucash.org/trac/changeset/13826

Added:
   gnucash/trunk/src/pixmaps/gnc-invoice-16.png
   gnucash/trunk/src/pixmaps/gnc-invoice-edit-16.png
   gnucash/trunk/src/pixmaps/gnc-invoice-edit.png
   gnucash/trunk/src/pixmaps/gnc-invoice-post-16.png
   gnucash/trunk/src/pixmaps/gnc-invoice-post.png
   gnucash/trunk/src/pixmaps/gnc-invoice-unpost-16.png
   gnucash/trunk/src/pixmaps/gnc-invoice-unpost.png
   gnucash/trunk/src/pixmaps/gnc-invoice.png
   gnucash/trunk/src/pixmaps/gnc-jumpto-16.png
   gnucash/trunk/src/pixmaps/gnc-jumpto.png
   gnucash/trunk/src/pixmaps/gnc-sx-new-16.png
   gnucash/trunk/src/pixmaps/gnc-sx-new.png
Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/business/business-gnome/gnc-plugin-page-invoice.c
   gnucash/trunk/src/gnome-utils/gnc-icons.c
   gnucash/trunk/src/gnome-utils/gnc-icons.h
   gnucash/trunk/src/gnome/gnc-plugin-page-register.c
   gnucash/trunk/src/pixmaps/Makefile.am
Log:
Add new icons for invoices, adding a scheduled transaction, and the
jump action.  Fixes #339112.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-04-22 01:25:35 UTC (rev 13825)
+++ gnucash/trunk/ChangeLog	2006-04-22 04:02:21 UTC (rev 13826)
@@ -1,5 +1,12 @@
 2006-04-21  David Hampton  <hampton at employees.org>
 
+	* src/pixmaps/Makefile.am:
+	* src/business/business-gnome/gnc-plugin-page-invoice.c:
+	* src/gnome-utils/gnc-icons.[ch]:
+	* src/gnome/gnc-plugin-page-register.c: Add new icons for
+	invoices, adding a scheduled transaction, and the jump action.
+	Fixes #339112.
+
 	* src/import-export/log-replay/gnc-log-replay.c:
 	* src/engine/TransLog.[ch]: Don't allow the user to open the
 	current log file.  This only produces a debug message because of

Modified: gnucash/trunk/src/business/business-gnome/gnc-plugin-page-invoice.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/gnc-plugin-page-invoice.c	2006-04-22 01:25:35 UTC (rev 13825)
+++ gnucash/trunk/src/business/business-gnome/gnc-plugin-page-invoice.c	2006-04-22 04:02:21 UTC (rev 13826)
@@ -115,13 +115,13 @@
 	{ "EditPasteAction", GTK_STOCK_PASTE, N_("_Paste"), NULL,
 	  NULL,
 	  G_CALLBACK (gnc_plugin_page_invoice_cmd_paste) },
-	{ "EditEditInvoiceAction", GTK_STOCK_MISSING_IMAGE, N_("_Edit Invoice"), NULL,
+	{ "EditEditInvoiceAction", GNC_STOCK_INVOICE_EDIT, N_("_Edit Invoice"), NULL,
 	  N_("Edit this invoice"),
 	  G_CALLBACK (gnc_plugin_page_invoice_cmd_edit) },
-	{ "EditPostInvoiceAction", GTK_STOCK_JUMP_TO, N_("_Post Invoice"), NULL,
+	{ "EditPostInvoiceAction", GNC_STOCK_INVOICE_POST, N_("_Post Invoice"), NULL,
 	  N_("Post this Invoice to your Chart of Accounts"),
 	  G_CALLBACK (gnc_plugin_page_invoice_cmd_post) },
-	{ "EditUnpostInvoiceAction", GTK_STOCK_CONVERT, N_("_Unpost Invoice"), NULL,
+	{ "EditUnpostInvoiceAction", GNC_STOCK_INVOICE_UNPOST, N_("_Unpost Invoice"), NULL,
 	  N_("Unpost this Invoice and make it editable"),
 	  G_CALLBACK (gnc_plugin_page_invoice_cmd_unpost) },
 
@@ -135,7 +135,7 @@
 	{ "DeleteEntryAction", GTK_STOCK_DELETE, N_("_Delete"), NULL,
 	  N_("Delete the current entry"),
 	  G_CALLBACK (gnc_plugin_page_invoice_cmd_delete) },
-	{ "BlankEntryAction", GTK_STOCK_MISSING_IMAGE, N_("_Blank"), NULL,
+	{ "BlankEntryAction", GTK_STOCK_GOTO_BOTTOM, N_("_Blank"), NULL,
 	  N_("Move to the blank entry at the bottom of the Invoice"),
 	  G_CALLBACK (gnc_plugin_page_invoice_cmd_blank) },
 	{ "DuplicateEntryAction", GTK_STOCK_COPY, N_("Dup_licate Entry"), NULL,

Modified: gnucash/trunk/src/gnome/gnc-plugin-page-register.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-plugin-page-register.c	2006-04-22 01:25:35 UTC (rev 13825)
+++ gnucash/trunk/src/gnome/gnc-plugin-page-register.c	2006-04-22 04:02:21 UTC (rev 13826)
@@ -243,10 +243,10 @@
 	{ "EditExchangeRateAction", NULL, N_("Edit E_xchange Rate"), NULL,
 	  N_("Exit the exchange rate for the current transaction"),
 	  G_CALLBACK (gnc_plugin_page_register_cmd_exchange_rate) },
-	{ "JumpTransactionAction", GTK_STOCK_JUMP_TO, N_("_Jump"), NULL,
+	{ "JumpTransactionAction", GNC_STOCK_JUMP_TO, N_("_Jump"), NULL,
 	  N_("Jump to the corresponding transaction in the other account"),
 	  G_CALLBACK (gnc_plugin_page_register_cmd_jump) },
-	{ "ScheduleTransactionAction", GTK_STOCK_REDO, N_("Sche_dule..."), NULL,
+	{ "ScheduleTransactionAction", GNC_STOCK_SCHEDULE, N_("Sche_dule..."), NULL,
 	  N_("Create a Scheduled Transaction with the current transaction as a template"),
 	  G_CALLBACK (gnc_plugin_page_register_cmd_schedule) },
 	{ "ScrubAllAction", NULL, N_("_All transactions"), NULL,

Modified: gnucash/trunk/src/gnome-utils/gnc-icons.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-icons.c	2006-04-22 01:25:35 UTC (rev 13825)
+++ gnucash/trunk/src/gnome-utils/gnc-icons.c	2006-04-22 04:02:21 UTC (rev 13826)
@@ -18,8 +18,32 @@
   { GNC_STOCK_OPEN_ACCOUNT,   N_("_Open Account"),   0, 0, NULL },
   { GNC_STOCK_TRANSFER,       N_("_Transfer..."),    0, 0, NULL },
   { GNC_STOCK_SPLIT_TRANS,    N_("S_plit Transaction"), 0, 0, NULL },
+  { GNC_STOCK_JUMP_TO,        N_("_Jump"),              0, 0, NULL },
 };
 
+typedef struct _item_file {
+  const gchar *stock_name;
+  const gchar *filename_lg;
+  const gchar *filename_sm;
+} item_file;
+
+static item_file item_files[] = {
+  { GNC_STOCK_ACCOUNT, "account.png", "account-16.png"},
+  { GNC_STOCK_DELETE_ACCOUNT, "delete-account.png", "delete-account-16.png"},
+  { GNC_STOCK_EDIT_ACCOUNT, "edit-account.png", "edit-account-16.png"},
+  { GNC_STOCK_NEW_ACCOUNT, "new-account.png", "new-account-16.png"},
+  { GNC_STOCK_OPEN_ACCOUNT, "open-account.png", "open-account-16.png"},
+  { GNC_STOCK_TRANSFER, "transfer.png", "transfer-16.png"},
+  { GNC_STOCK_SCHEDULE,   "gnc-sx-new.png",         "gnc-sx-new-16.png"},
+  { GNC_STOCK_SPLIT_TRANS, "split-transaction.png", "split-transaction-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_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"},
+  { 0 },
+};
+
 static void
 gnc_add_stock_icon_pair (GtkIconFactory *factory,
 			 const char *stock,
@@ -72,25 +96,17 @@
 gnc_load_stock_icons (void)
 {
 	GtkIconFactory *factory;
+	item_file *file;
 
 	/* Register our stock items */
 	gtk_stock_add (items, G_N_ELEMENTS (items));
       
 	/* Add our custom icon factory to the list of defaults */
 	factory = gtk_icon_factory_new ();
-	gnc_add_stock_icon_pair (factory, GNC_STOCK_ACCOUNT,
-				 "account.png", "account-16.png");
-	gnc_add_stock_icon_pair (factory, GNC_STOCK_DELETE_ACCOUNT,
-				 "delete-account.png", "delete-account-16.png");
-	gnc_add_stock_icon_pair (factory, GNC_STOCK_EDIT_ACCOUNT,
-				 "edit-account.png", "edit-account-16.png");
-	gnc_add_stock_icon_pair (factory, GNC_STOCK_NEW_ACCOUNT,
-				 "new-account.png", "new-account-16.png");
-	gnc_add_stock_icon_pair (factory, GNC_STOCK_OPEN_ACCOUNT,
-				 "open-account.png", "open-account-16.png");
-	gnc_add_stock_icon_pair (factory, GNC_STOCK_TRANSFER,
-				 "transfer.png", "transfer-16.png");
-	gnc_add_stock_icon_pair (factory, GNC_STOCK_SPLIT_TRANS,
-				 "split-transaction.png", "split-transaction-16.png");
+	for (file = item_files; file->stock_name; file++) {
+	  gnc_add_stock_icon_pair (factory, file->stock_name,
+				   file->filename_lg, file->filename_sm);
+	}
+
 	gtk_icon_factory_add_default (factory);
 }

Modified: gnucash/trunk/src/gnome-utils/gnc-icons.h
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-icons.h	2006-04-22 01:25:35 UTC (rev 13825)
+++ gnucash/trunk/src/gnome-utils/gnc-icons.h	2006-04-22 04:02:21 UTC (rev 13826)
@@ -15,7 +15,13 @@
 #define GNC_STOCK_NEW_ACCOUNT "gnc-new-account"
 #define GNC_STOCK_OPEN_ACCOUNT "gnc-open-account"
 #define GNC_STOCK_SPLIT_TRANS "gnc-split-transaction"
+#define GNC_STOCK_SCHEDULE "gnc-schedule-new"
 #define GNC_STOCK_TRANSFER "gnc-transfer"
+#define GNC_STOCK_JUMP_TO "gnc-jump-to"
+#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_EDIT "gnc-invoice-edit"
 
 //FIXME: use own budget icons?
 #define GNC_STOCK_BUDGET "gnc-budget"

Modified: gnucash/trunk/src/pixmaps/Makefile.am
===================================================================
--- gnucash/trunk/src/pixmaps/Makefile.am	2006-04-22 01:25:35 UTC (rev 13825)
+++ gnucash/trunk/src/pixmaps/Makefile.am	2006-04-22 04:02:21 UTC (rev 13826)
@@ -8,6 +8,18 @@
   delete-account.png \
   edit-account-16.png \
   edit-account.png \
+  gnc-invoice-16.png \
+  gnc-invoice.png \
+  gnc-invoice-edit-16.png \
+  gnc-invoice-edit.png \
+  gnc-invoice-post-16.png \
+  gnc-invoice-post.png \
+  gnc-invoice-unpost-16.png \
+  gnc-invoice-unpost.png \
+  gnc-jumpto-16.png \
+  gnc-jumpto.png \
+  gnc-sx-new-16.png \
+  gnc-sx-new.png \
   gnucash-icon.png \
   gnucash_splash.png \
   new-account-16.png \

Added: gnucash/trunk/src/pixmaps/gnc-invoice-16.png
===================================================================
(Binary files differ)


Property changes on: gnucash/trunk/src/pixmaps/gnc-invoice-16.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: gnucash/trunk/src/pixmaps/gnc-invoice-edit-16.png
===================================================================
(Binary files differ)


Property changes on: gnucash/trunk/src/pixmaps/gnc-invoice-edit-16.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: gnucash/trunk/src/pixmaps/gnc-invoice-edit.png
===================================================================
(Binary files differ)


Property changes on: gnucash/trunk/src/pixmaps/gnc-invoice-edit.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: gnucash/trunk/src/pixmaps/gnc-invoice-post-16.png
===================================================================
(Binary files differ)


Property changes on: gnucash/trunk/src/pixmaps/gnc-invoice-post-16.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: gnucash/trunk/src/pixmaps/gnc-invoice-post.png
===================================================================
(Binary files differ)


Property changes on: gnucash/trunk/src/pixmaps/gnc-invoice-post.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: gnucash/trunk/src/pixmaps/gnc-invoice-unpost-16.png
===================================================================
(Binary files differ)


Property changes on: gnucash/trunk/src/pixmaps/gnc-invoice-unpost-16.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: gnucash/trunk/src/pixmaps/gnc-invoice-unpost.png
===================================================================
(Binary files differ)


Property changes on: gnucash/trunk/src/pixmaps/gnc-invoice-unpost.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: gnucash/trunk/src/pixmaps/gnc-invoice.png
===================================================================
(Binary files differ)


Property changes on: gnucash/trunk/src/pixmaps/gnc-invoice.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: gnucash/trunk/src/pixmaps/gnc-jumpto-16.png
===================================================================
(Binary files differ)


Property changes on: gnucash/trunk/src/pixmaps/gnc-jumpto-16.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: gnucash/trunk/src/pixmaps/gnc-jumpto.png
===================================================================
(Binary files differ)


Property changes on: gnucash/trunk/src/pixmaps/gnc-jumpto.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: gnucash/trunk/src/pixmaps/gnc-sx-new-16.png
===================================================================
(Binary files differ)


Property changes on: gnucash/trunk/src/pixmaps/gnc-sx-new-16.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: gnucash/trunk/src/pixmaps/gnc-sx-new.png
===================================================================
(Binary files differ)


Property changes on: gnucash/trunk/src/pixmaps/gnc-sx-new.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream



More information about the gnucash-changes mailing list