I tried adding support for this new icon for gnucash tonight with josh's help. I got as far as it being able to compile but it crashes on startup just before making the main window. If I compile it into a temp dir like /opt/test or some such it starts up fine, but if I make an rpm and install it to /usr it crashes. Could someone look at this patch and tell me what the mistake was?
Chris
--
RedHat Certified Engineer #807302549405490.
--------------------------------------------
|^|
| | |^|
| |^| | | Life out here is raw
| | |^| | But we will never stop
| |_|_| | We will never quit
| / __> | cause we are Metallica
|/ / |
\ /
| |
--------------------------------------------
? src/pixmaps/gnucash-icon.png
Index: rpm/gnucash.spec.in
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/rpm/gnucash.spec.in,v
retrieving revision 1.41
diff -u -u -r1.41 gnucash.spec.in
--- rpm/gnucash.spec.in 14 Dec 2002 00:16:55 -0000 1.41
+++ rpm/gnucash.spec.in 17 Dec 2002 09:20:41 -0000
@@ -114,7 +114,6 @@
%{_datadir}/gnucash/glade
%{_datadir}/gnucash/guile-modules
%{_datadir}/gnucash/scm
-%{_datadir}/gnome/help/gnucash
%{_datadir}/gnome/apps/Applications/*
%{_datadir}/pixmaps/gnucash
%{_datadir}/mime-info/gnucash.*
Index: src/gnome/gnucash.desktop.in
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome/gnucash.desktop.in,v
retrieving revision 1.1
diff -u -u -r1.1 gnucash.desktop.in
--- src/gnome/gnucash.desktop.in 17 Sep 2001 09:59:23 -0000 1.1
+++ src/gnome/gnucash.desktop.in 17 Dec 2002 09:20:51 -0000
@@ -3,6 +3,6 @@
_Comment=GnuCash Personal Finance
TryExec=gnucash
Exec=gnucash
-Icon=gnome-money.png
+Icon=gnucash/gnucash-icon.png
Terminal=0
Type=Application
Index: src/gnome-utils/gnc-gnome-utils.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome-utils/gnc-gnome-utils.c,v
retrieving revision 1.1
diff -u -u -r1.1 gnc-gnome-utils.c
--- src/gnome-utils/gnc-gnome-utils.c 21 Dec 2001 07:41:54 -0000 1.1
+++ src/gnome-utils/gnc-gnome-utils.c 17 Dec 2002 09:20:52 -0000
@@ -38,6 +38,8 @@
#include "gnc-gnome-utils.h"
#include "gnc-html.h"
+#include <libgnomeui/gnome-window-icon.h>
+#include <gnc-dir.h>
static char**
gnc_scm2argv (SCM scm, int prelen, const char **prependargv)
@@ -106,6 +108,9 @@
gdk_rgb_init ();
gtk_widget_set_default_colormap (gdk_rgb_get_cmap ());
gtk_widget_set_default_visual (gdk_rgb_get_visual ());
+
+ /* use custom icon */
+ gnome_window_icon_set_default_from_file (GNC_PIXMAP_DIR"/gnucash-icon.png");
#ifdef USE_GUPPI
/* initialize guppi handling in gnc-html */
<<attachment: gnucash-icon.png>>
