r15906 - gnucash/trunk/src - Change from the Blue Gnu Card icon to the Tango-theme icon.
Josh Sled
jsled at cvs.gnucash.org
Sun Apr 15 18:22:37 EDT 2007
Author: jsled
Date: 2007-04-15 18:22:35 -0400 (Sun, 15 Apr 2007)
New Revision: 15906
Trac: http://svn.gnucash.org/trac/changeset/15906
Added:
gnucash/trunk/src/pixmaps/gnucash-icon-16x16.png
gnucash/trunk/src/pixmaps/gnucash-icon-32x32.png
gnucash/trunk/src/pixmaps/gnucash-icon-48x48.png
Removed:
gnucash/trunk/src/pixmaps/appicon.png
gnucash/trunk/src/pixmaps/gnucash-icon.png
Modified:
gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
gnucash/trunk/src/gnome-utils/gnc-main-window.c
gnucash/trunk/src/pixmaps/Makefile.am
gnucash/trunk/src/pixmaps/gnucash-icon.ico
Log:
Change from the Blue Gnu Card icon to the Tango-theme icon.
Change from a single default icon to the default-set of 16x16, 32x32 and 48x48.
Modified: gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c 2007-04-15 21:31:53 UTC (rev 15905)
+++ gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c 2007-04-15 22:22:35 UTC (rev 15906)
@@ -196,7 +196,6 @@
void
gnc_gnome_init (int argc, char **argv, const char * version)
{
- char *fullname;
GError *error = NULL;
gchar *prefix = gnc_path_get_prefix ();
gchar *pkgsysconfdir = gnc_path_get_pkgsysconfdir ();
@@ -226,14 +225,38 @@
gtk_widget_set_default_colormap (gdk_rgb_get_colormap ());
/* use custom icon */
- fullname = gnc_gnome_locate_pixmap ("gnucash-icon.png");
- if (fullname) {
- gtk_window_set_default_icon_from_file (fullname, &error);
- g_free(fullname);
- if (error) {
- PERR ("Could not set default icon: %s", error->message);
- g_error_free (error);
+ {
+ int idx;
+ char *icon_filenames[] = {"gnucash-icon-16x16.png",
+ "gnucash-icon-32x32.png",
+ "gnucash-icon-48x48.png",
+ NULL};
+ GList *icons = NULL;
+ char *fullname, *name_iter;
+
+ for (idx = 0; icon_filenames[idx] != NULL; idx++) {
+ GdkPixbuf *buf = NULL;
+
+ fullname = gnc_gnome_locate_pixmap(icon_filenames[idx]);
+ if (fullname == NULL) {
+ g_warning("couldn't find icon file [%s]", icon_filenames[idx]);
+ continue;
+ }
+
+ buf = gnc_gnome_get_gdkpixbuf(fullname);
+ if (buf == NULL)
+ {
+ g_warning("error loading image from [%s]", fullname);
+ g_free(fullname);
+ continue;
+ }
+ g_free(fullname);
+ icons = g_list_append(icons, buf);
}
+
+ gtk_window_set_default_icon_list(icons);
+ g_list_foreach(icons, (GFunc)g_object_unref, NULL);
+ g_list_free(icons);
}
druid_gconf_install_check_schemas();
Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c 2007-04-15 21:31:53 UTC (rev 15905)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c 2007-04-15 22:22:35 UTC (rev 15906)
@@ -3458,7 +3458,7 @@
gchar **authors, **documenters, *license, *message;
GdkPixbuf *logo;
- logo = gnc_gnome_get_gdkpixbuf ("appicon.png");
+ logo = gnc_gnome_get_gdkpixbuf ("gnucash-icon-48x48.png");
authors = get_file_strsplit("doc/AUTHORS");
documenters = get_file_strsplit("doc/DOCUMENTERS");
Modified: gnucash/trunk/src/pixmaps/Makefile.am
===================================================================
--- gnucash/trunk/src/pixmaps/Makefile.am 2007-04-15 21:31:53 UTC (rev 15905)
+++ gnucash/trunk/src/pixmaps/Makefile.am 2007-04-15 22:22:35 UTC (rev 15906)
@@ -1,7 +1,6 @@
gncpixmapdir = ${GNC_PIXMAP_DIR}
gncpixmap_DATA = \
- appicon.png \
gnc-account-16.png \
gnc-account-delete-16.png \
gnc-account-delete.png \
@@ -29,13 +28,17 @@
gnc-transfer-16.png \
gnc-transfer.png \
gnucash-icon.ico \
- gnucash-icon.png \
+ gnucash-icon-16x16.png \
+ gnucash-icon-32x32.png \
+ gnucash-icon-48x48.png \
gnucash_splash.png \
stock_split_title.png \
stock_split_watermark.png
gncicondir = ${datadir}/pixmaps
-gncicon_DATA = gnucash-icon.png
+gncicon_DATA = gnucash-icon-16x16.png \
+ gnucash-icon-32x32.png \
+ gnucash-icon-48x48.png
EXTRA_DIST = \
${gncpixmap_DATA} ${gncicon_DATA}
Deleted: gnucash/trunk/src/pixmaps/appicon.png
===================================================================
(Binary files differ)
Added: gnucash/trunk/src/pixmaps/gnucash-icon-16x16.png
===================================================================
(Binary files differ)
Property changes on: gnucash/trunk/src/pixmaps/gnucash-icon-16x16.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Added: gnucash/trunk/src/pixmaps/gnucash-icon-32x32.png
===================================================================
(Binary files differ)
Property changes on: gnucash/trunk/src/pixmaps/gnucash-icon-32x32.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Added: gnucash/trunk/src/pixmaps/gnucash-icon-48x48.png
===================================================================
(Binary files differ)
Property changes on: gnucash/trunk/src/pixmaps/gnucash-icon-48x48.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Modified: gnucash/trunk/src/pixmaps/gnucash-icon.ico
===================================================================
(Binary files differ)
Deleted: gnucash/trunk/src/pixmaps/gnucash-icon.png
===================================================================
(Binary files differ)
More information about the gnucash-changes
mailing list