Add new icons for invoices, adding a scheduled transaction, and the
jump action. Fixes #339112. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13826 57a11ea4-9604-0410-9ed3-97b8803252fd
@ -1,5 +1,12 @@
|
||||
2006-04-21 David Hampton <hampton@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
|
||||
|
@ -115,13 +115,13 @@ static GtkActionEntry gnc_plugin_page_invoice_actions [] =
|
||||
{ "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 @@ static GtkActionEntry gnc_plugin_page_invoice_actions [] =
|
||||
{ "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,
|
||||
|
@ -18,6 +18,30 @@ static GtkStockItem items[] = {
|
||||
{ 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
|
||||
@ -72,25 +96,17 @@ void
|
||||
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);
|
||||
}
|
||||
|
@ -15,7 +15,13 @@ G_BEGIN_DECLS
|
||||
#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"
|
||||
|
@ -243,10 +243,10 @@ static GtkActionEntry gnc_plugin_page_register_actions [] =
|
||||
{ "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,
|
||||
|
@ -8,6 +8,18 @@ gncpixmap_DATA = \
|
||||
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 \
|
||||
|
BIN
src/pixmaps/gnc-invoice-16.png
Normal file
After Width: | Height: | Size: 546 B |
BIN
src/pixmaps/gnc-invoice-edit-16.png
Normal file
After Width: | Height: | Size: 711 B |
BIN
src/pixmaps/gnc-invoice-edit.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
src/pixmaps/gnc-invoice-post-16.png
Normal file
After Width: | Height: | Size: 658 B |
BIN
src/pixmaps/gnc-invoice-post.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
src/pixmaps/gnc-invoice-unpost-16.png
Normal file
After Width: | Height: | Size: 682 B |
BIN
src/pixmaps/gnc-invoice-unpost.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
src/pixmaps/gnc-invoice.png
Normal file
After Width: | Height: | Size: 1013 B |
BIN
src/pixmaps/gnc-jumpto-16.png
Normal file
After Width: | Height: | Size: 723 B |
BIN
src/pixmaps/gnc-jumpto.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
src/pixmaps/gnc-sx-new-16.png
Normal file
After Width: | Height: | Size: 714 B |
BIN
src/pixmaps/gnc-sx-new.png
Normal file
After Width: | Height: | Size: 1.2 KiB |