mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add, register, use Split and Transfer icons provided by Andrew Duggan. Bug#327647.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13473 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
12
ChangeLog
12
ChangeLog
@@ -1,5 +1,17 @@
|
||||
2006-03-04 Joshua Sled <jsled@asynchronous.org>
|
||||
|
||||
* src/gnome/ui/icon-split.png:
|
||||
* src/gnome/ui/icon-transfer.png:
|
||||
Add split, transfer icons provided by Andrew Duggan
|
||||
<cmkrnl@speakeasy.net>.
|
||||
|
||||
* src/gnome-utils/gnc-dir.h.in:
|
||||
* src/gnome-utils/Makefile.am (gnc-dir.h):
|
||||
* src/gnome/gnc-plugin-page-register.c
|
||||
(gnc_plugin_page_register_actions)
|
||||
(gnc_plugin_page_register_class_init): Add registration, use of
|
||||
gnucash-provided (split, transactions) icons. Bug#327647.
|
||||
|
||||
* src/gnome-utils/gnc-menu-extensions.c (gnc_extension_path):
|
||||
Fixes to memory deallocation suggested by Phil Longstaff
|
||||
<plongstaff@newearth.org>.
|
||||
|
||||
@@ -221,6 +221,7 @@ gnc-dir.h: gnc-dir.h.in ${top_builddir}/config.status Makefile
|
||||
sed < $< > $@.tmp \
|
||||
-e 's:@-GNC_ACCOUNTS_DIR-@:${GNC_ACCOUNTS_DIR}:g' \
|
||||
-e 's:@-GNC_GLADE_DIR-@:${GNC_GLADE_DIR}:g' \
|
||||
-e 's:@-GNC_UI_DIR-@:${GNC_UI_DIR}:g' \
|
||||
-e 's:@-GCONF_SCHEMA_CONFIG_SOURCE_DIRONLY-@:${GCONF_SCHEMA_CONFIG_SOURCE_DIRONLY}:g'
|
||||
mv $@.tmp $@
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
#define GNC_ACCOUNTS_DIR "@-GNC_ACCOUNTS_DIR-@"
|
||||
#define GNC_GLADE_DIR "@-GNC_GLADE_DIR-@"
|
||||
#define GNC_UI_DIR "@-GNC_UI_DIR-@"
|
||||
#define GNC_GCONF_DIR "@-GCONF_SCHEMA_CONFIG_SOURCE_DIRONLY-@"
|
||||
|
||||
#endif
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
#include "dialog-transfer.h"
|
||||
#include "dialog-utils.h"
|
||||
#include "druid-stock-split.h"
|
||||
#include "gnc-dir.h"
|
||||
#include "gnc-book.h"
|
||||
#include "gnc-gconf-utils.h"
|
||||
#include "gnc-component-manager.h"
|
||||
@@ -82,6 +83,9 @@ static QofLogModule log_module = GNC_MOD_GUI;
|
||||
#define DEFAULT_LINES_OPTION_NAME KEY_NUMBER_OF_ROWS
|
||||
#define DEFAULT_LINES_AMOUNT 20
|
||||
|
||||
#define GNC_STOCK_SPLIT "gnc-stock-split"
|
||||
#define GNC_STOCK_TRANSFER "gnc-stock-transfer"
|
||||
|
||||
static void gnc_plugin_page_register_class_init (GncPluginPageRegisterClass *klass);
|
||||
static void gnc_plugin_page_register_init (GncPluginPageRegister *plugin_page);
|
||||
static void gnc_plugin_page_register_finalize (GObject *object);
|
||||
@@ -218,7 +222,7 @@ static GtkActionEntry gnc_plugin_page_register_actions [] =
|
||||
|
||||
/* Actions menu */
|
||||
|
||||
{ "ActionsTransferAction", GTK_STOCK_MISSING_IMAGE, N_("_Transfer..."), "<control>t",
|
||||
{ "ActionsTransferAction", GNC_STOCK_TRANSFER, N_("_Transfer..."), "<control>t",
|
||||
N_("Transfer funds from one account to another"),
|
||||
G_CALLBACK (gnc_plugin_page_register_cmd_transfer) },
|
||||
{ "ActionsReconcileAction", NULL, N_("_Reconcile..."), NULL,
|
||||
@@ -265,7 +269,7 @@ static GtkToggleActionEntry toggle_entries[] = {
|
||||
N_("Show two lines of information for each transaction"),
|
||||
G_CALLBACK (gnc_plugin_page_register_cmd_style_double_line), FALSE },
|
||||
|
||||
{ "SplitTransactionAction", GTK_STOCK_MISSING_IMAGE, N_("S_plit Transaction"), NULL,
|
||||
{ "SplitTransactionAction", GNC_STOCK_SPLIT, N_("S_plit Transaction"), NULL,
|
||||
N_("Show all splits in the current transaction"),
|
||||
G_CALLBACK (gnc_plugin_page_register_cmd_expand_transaction), FALSE },
|
||||
};
|
||||
@@ -506,6 +510,35 @@ gnc_plugin_page_register_class_init (GncPluginPageRegisterClass *klass)
|
||||
gnc_plugin_class->update_edit_menu_actions = gnc_plugin_page_register_update_edit_menu;
|
||||
|
||||
g_type_class_add_private(klass, sizeof(GncPluginPageRegisterPrivate));
|
||||
|
||||
// setup custom icons
|
||||
{
|
||||
// http://www.gtk.org/api/2.6/gtk/migrating-gnomeuiinfo.html
|
||||
GtkIconFactory *icon_factory;
|
||||
GtkIconSet *icon_set;
|
||||
GtkIconSource *icon_source;
|
||||
|
||||
icon_factory = gtk_icon_factory_new();
|
||||
|
||||
icon_set = gtk_icon_set_new();
|
||||
icon_source = gtk_icon_source_new();
|
||||
gtk_icon_source_set_filename(icon_source, GNC_UI_DIR "/icon-split.png");
|
||||
gtk_icon_set_add_source(icon_set, icon_source);
|
||||
gtk_icon_source_free(icon_source);
|
||||
gtk_icon_factory_add(icon_factory, GNC_STOCK_SPLIT, icon_set);
|
||||
gtk_icon_set_unref(icon_set);
|
||||
|
||||
icon_set = gtk_icon_set_new();
|
||||
icon_source = gtk_icon_source_new();
|
||||
gtk_icon_source_set_filename(icon_source, GNC_UI_DIR "/icon-transfer.png");
|
||||
gtk_icon_set_add_source(icon_set, icon_source);
|
||||
gtk_icon_source_free(icon_source);
|
||||
gtk_icon_factory_add(icon_factory, GNC_STOCK_TRANSFER, icon_set);
|
||||
gtk_icon_set_unref(icon_set);
|
||||
|
||||
gtk_icon_factory_add_default(icon_factory);
|
||||
g_object_unref(icon_factory);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
@@ -12,6 +12,8 @@ ui_DATA = \
|
||||
gnc-sxed-to-create-window-ui.xml \
|
||||
gnc-reconcile-window-ui.xml \
|
||||
gnc-sxed-window-ui.xml \
|
||||
gnc-sxed-window-ui-full.xml
|
||||
gnc-sxed-window-ui-full.xml \
|
||||
icon-split.png \
|
||||
icon-transfer.png
|
||||
|
||||
EXTRA_DIST = $(ui_DATA)
|
||||
|
||||
BIN
src/gnome/ui/icon-split.png
Normal file
BIN
src/gnome/ui/icon-split.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 906 B |
BIN
src/gnome/ui/icon-transfer.png
Normal file
BIN
src/gnome/ui/icon-transfer.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
Reference in New Issue
Block a user