mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Consolidate the new icons with the existing set of icons.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13485 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -1,5 +1,13 @@
|
|||||||
2006-03-04 David Hampton <hampton@employees.org>
|
2006-03-04 David Hampton <hampton@employees.org>
|
||||||
|
|
||||||
|
* src/pixmaps/*
|
||||||
|
* src/gnome-utils/Makefile.am:
|
||||||
|
* src/gnome-utils/gnc-icons.[ch]:
|
||||||
|
* src/gnome-utils/gnc-dir.h.in:
|
||||||
|
* src/gnome/gnc-plugin-page-register.c:
|
||||||
|
* src/gnome/ui/*: Consolidate the new icons with the existing set
|
||||||
|
of icons.
|
||||||
|
|
||||||
* src/gnome-utils/gnc-tree-model-account.c:
|
* src/gnome-utils/gnc-tree-model-account.c:
|
||||||
* src/engine/Account.c:
|
* src/engine/Account.c:
|
||||||
* src/engine/Group.c: Rework the events generated by the
|
* src/engine/Group.c: Rework the events generated by the
|
||||||
|
|||||||
@@ -221,7 +221,6 @@ gnc-dir.h: gnc-dir.h.in ${top_builddir}/config.status Makefile
|
|||||||
sed < $< > $@.tmp \
|
sed < $< > $@.tmp \
|
||||||
-e 's:@-GNC_ACCOUNTS_DIR-@:${GNC_ACCOUNTS_DIR}:g' \
|
-e 's:@-GNC_ACCOUNTS_DIR-@:${GNC_ACCOUNTS_DIR}:g' \
|
||||||
-e 's:@-GNC_GLADE_DIR-@:${GNC_GLADE_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'
|
-e 's:@-GCONF_SCHEMA_CONFIG_SOURCE_DIRONLY-@:${GCONF_SCHEMA_CONFIG_SOURCE_DIRONLY}:g'
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,6 @@
|
|||||||
|
|
||||||
#define GNC_ACCOUNTS_DIR "@-GNC_ACCOUNTS_DIR-@"
|
#define GNC_ACCOUNTS_DIR "@-GNC_ACCOUNTS_DIR-@"
|
||||||
#define GNC_GLADE_DIR "@-GNC_GLADE_DIR-@"
|
#define GNC_GLADE_DIR "@-GNC_GLADE_DIR-@"
|
||||||
#define GNC_UI_DIR "@-GNC_UI_DIR-@"
|
|
||||||
#define GNC_GCONF_DIR "@-GCONF_SCHEMA_CONFIG_SOURCE_DIRONLY-@"
|
#define GNC_GCONF_DIR "@-GCONF_SCHEMA_CONFIG_SOURCE_DIRONLY-@"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ static GtkStockItem items[] = {
|
|||||||
{ GNC_STOCK_EDIT_ACCOUNT, N_("_Edit Account"), 0, 0, NULL },
|
{ GNC_STOCK_EDIT_ACCOUNT, N_("_Edit Account"), 0, 0, NULL },
|
||||||
{ GNC_STOCK_NEW_ACCOUNT, N_("_New Account"), 0, 0, NULL },
|
{ GNC_STOCK_NEW_ACCOUNT, N_("_New Account"), 0, 0, NULL },
|
||||||
{ GNC_STOCK_OPEN_ACCOUNT, N_("_Open Account"), 0, 0, NULL },
|
{ 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 },
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -86,5 +88,9 @@ gnc_load_stock_icons (void)
|
|||||||
"new-account.png", "new-account-16.png");
|
"new-account.png", "new-account-16.png");
|
||||||
gnc_add_stock_icon_pair (factory, GNC_STOCK_OPEN_ACCOUNT,
|
gnc_add_stock_icon_pair (factory, GNC_STOCK_OPEN_ACCOUNT,
|
||||||
"open-account.png", "open-account-16.png");
|
"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");
|
||||||
gtk_icon_factory_add_default (factory);
|
gtk_icon_factory_add_default (factory);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ G_BEGIN_DECLS
|
|||||||
#define GNC_STOCK_EDIT_ACCOUNT "gnc-edit-account"
|
#define GNC_STOCK_EDIT_ACCOUNT "gnc-edit-account"
|
||||||
#define GNC_STOCK_NEW_ACCOUNT "gnc-new-account"
|
#define GNC_STOCK_NEW_ACCOUNT "gnc-new-account"
|
||||||
#define GNC_STOCK_OPEN_ACCOUNT "gnc-open-account"
|
#define GNC_STOCK_OPEN_ACCOUNT "gnc-open-account"
|
||||||
|
#define GNC_STOCK_SPLIT_TRANS "gnc-split-transaction"
|
||||||
|
#define GNC_STOCK_TRANSFER "gnc-transfer"
|
||||||
|
|
||||||
//FIXME: use own budget icons?
|
//FIXME: use own budget icons?
|
||||||
#define GNC_STOCK_BUDGET "gnc-budget"
|
#define GNC_STOCK_BUDGET "gnc-budget"
|
||||||
|
|||||||
@@ -51,7 +51,6 @@
|
|||||||
#include "dialog-transfer.h"
|
#include "dialog-transfer.h"
|
||||||
#include "dialog-utils.h"
|
#include "dialog-utils.h"
|
||||||
#include "druid-stock-split.h"
|
#include "druid-stock-split.h"
|
||||||
#include "gnc-dir.h"
|
|
||||||
#include "gnc-book.h"
|
#include "gnc-book.h"
|
||||||
#include "gnc-gconf-utils.h"
|
#include "gnc-gconf-utils.h"
|
||||||
#include "gnc-component-manager.h"
|
#include "gnc-component-manager.h"
|
||||||
@@ -83,9 +82,6 @@ static QofLogModule log_module = GNC_MOD_GUI;
|
|||||||
#define DEFAULT_LINES_OPTION_NAME KEY_NUMBER_OF_ROWS
|
#define DEFAULT_LINES_OPTION_NAME KEY_NUMBER_OF_ROWS
|
||||||
#define DEFAULT_LINES_AMOUNT 20
|
#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_class_init (GncPluginPageRegisterClass *klass);
|
||||||
static void gnc_plugin_page_register_init (GncPluginPageRegister *plugin_page);
|
static void gnc_plugin_page_register_init (GncPluginPageRegister *plugin_page);
|
||||||
static void gnc_plugin_page_register_finalize (GObject *object);
|
static void gnc_plugin_page_register_finalize (GObject *object);
|
||||||
@@ -269,7 +265,7 @@ static GtkToggleActionEntry toggle_entries[] = {
|
|||||||
N_("Show two lines of information for each transaction"),
|
N_("Show two lines of information for each transaction"),
|
||||||
G_CALLBACK (gnc_plugin_page_register_cmd_style_double_line), FALSE },
|
G_CALLBACK (gnc_plugin_page_register_cmd_style_double_line), FALSE },
|
||||||
|
|
||||||
{ "SplitTransactionAction", GNC_STOCK_SPLIT, N_("S_plit Transaction"), NULL,
|
{ "SplitTransactionAction", GNC_STOCK_SPLIT_TRANS, N_("S_plit Transaction"), NULL,
|
||||||
N_("Show all splits in the current transaction"),
|
N_("Show all splits in the current transaction"),
|
||||||
G_CALLBACK (gnc_plugin_page_register_cmd_expand_transaction), FALSE },
|
G_CALLBACK (gnc_plugin_page_register_cmd_expand_transaction), FALSE },
|
||||||
};
|
};
|
||||||
@@ -510,35 +506,6 @@ gnc_plugin_page_register_class_init (GncPluginPageRegisterClass *klass)
|
|||||||
gnc_plugin_class->update_edit_menu_actions = gnc_plugin_page_register_update_edit_menu;
|
gnc_plugin_class->update_edit_menu_actions = gnc_plugin_page_register_update_edit_menu;
|
||||||
|
|
||||||
g_type_class_add_private(klass, sizeof(GncPluginPageRegisterPrivate));
|
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
|
static void
|
||||||
|
|||||||
@@ -12,8 +12,6 @@ ui_DATA = \
|
|||||||
gnc-sxed-to-create-window-ui.xml \
|
gnc-sxed-to-create-window-ui.xml \
|
||||||
gnc-reconcile-window-ui.xml \
|
gnc-reconcile-window-ui.xml \
|
||||||
gnc-sxed-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)
|
EXTRA_DIST = $(ui_DATA)
|
||||||
|
|||||||
@@ -14,6 +14,10 @@ gncpixmap_DATA = \
|
|||||||
new-account.png \
|
new-account.png \
|
||||||
open-account-16.png \
|
open-account-16.png \
|
||||||
open-account.png \
|
open-account.png \
|
||||||
|
split-transaction-16.png \
|
||||||
|
split-transaction.png \
|
||||||
|
transfer-16.png \
|
||||||
|
transfer.png \
|
||||||
stock_split_title.png \
|
stock_split_title.png \
|
||||||
stock_split_watermark.png
|
stock_split_watermark.png
|
||||||
|
|
||||||
|
|||||||
BIN
src/pixmaps/split-transaction-16.png
Normal file
BIN
src/pixmaps/split-transaction-16.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 616 B |
|
Before Width: | Height: | Size: 906 B After Width: | Height: | Size: 906 B |
BIN
src/pixmaps/transfer-16.png
Normal file
BIN
src/pixmaps/transfer-16.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 789 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Reference in New Issue
Block a user