mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* configure.in: define a new substitution GNC_PIXMAP_DIR for
a pixmap directory. * src/pixmaps/Makefile.am (gncpixmapdir): install in configured pixmap directory * src/gnc-dir.h.in (GNC_PIXMAP_DIR): define pixmap directory * src/Makefile.am (gnc-dir.h): configure pixmap directory for gnc-dir.h.in * src/gnome/dialog-utils.c (gnc_get_pixmap): use configured pixmap directory git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3749 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
17
ChangeLog
17
ChangeLog
@@ -1,5 +1,22 @@
|
||||
2001-03-04 Dave Peticolas <dave@krondo.com>
|
||||
|
||||
* configure.in: define a new substitution GNC_PIXMAP_DIR for
|
||||
a pixmap directory.
|
||||
|
||||
* src/pixmaps/Makefile.am (gncpixmapdir): install in configured
|
||||
pixmap directory
|
||||
|
||||
* src/gnc-dir.h.in (GNC_PIXMAP_DIR): define pixmap directory
|
||||
|
||||
* src/Makefile.am (gnc-dir.h): configure pixmap directory
|
||||
for gnc-dir.h.in
|
||||
|
||||
* src/gnome/dialog-utils.c (gnc_get_pixmap): use configured
|
||||
pixmap directory
|
||||
|
||||
* src/engine/gnc-associate-account.c: fix some uses of glib
|
||||
list routines (they always return the new head of the list).
|
||||
|
||||
* src/pixmaps: add gnucash_long.png graphic
|
||||
|
||||
* src/gnome/top-level.c (gnucash_ui_init): show splash screen
|
||||
|
||||
@@ -115,6 +115,7 @@ else
|
||||
fi
|
||||
|
||||
GNC_ACCOUNTS_DIR=${GNC_SHAREDIR}/accounts
|
||||
GNC_PIXMAP_DIR='${datadir}/pixmaps/gnucash'
|
||||
|
||||
AC_SUBST(GNC_CONFIGDIR)
|
||||
AC_SUBST(GNC_LIBDIR)
|
||||
@@ -122,6 +123,7 @@ AC_SUBST(GNC_SHAREDIR)
|
||||
AC_SUBST(GNC_SCM_INSTALL_DIR)
|
||||
AC_SUBST(GNC_DOC_INSTALL_DIR)
|
||||
AC_SUBST(GNC_ACCOUNTS_DIR)
|
||||
AC_SUBST(GNC_PIXMAP_DIR)
|
||||
|
||||
# We should always see these errors...
|
||||
CFLAGS="${CFLAGS} -Wall"
|
||||
|
||||
@@ -88,7 +88,7 @@ INCLUDES = \
|
||||
gnc-dir.h: gnc-dir.h.in
|
||||
rm -f $@.tmp
|
||||
sed < $@.in > $@.tmp \
|
||||
-e 's:@-GNC_SHAREDIR-@:${GNC_SHAREDIR}:g'
|
||||
-e 's:@-GNC_PIXMAP_DIR-@:${GNC_PIXMAP_DIR}:g'
|
||||
mv $@.tmp $@
|
||||
BUILT_SOURCES += gnc-dir.h
|
||||
|
||||
|
||||
@@ -23,6 +23,6 @@
|
||||
#ifndef __GNC_DIR_H__
|
||||
#define __GNC_DIR_H__
|
||||
|
||||
#define GNC_SHAREDIR "@-GNC_SHAREDIR-@"
|
||||
#define GNC_PIXMAP_DIR "@-GNC_PIXMAP_DIR-@"
|
||||
|
||||
#endif
|
||||
|
||||
@@ -188,7 +188,7 @@ gnc_get_pixmap (const char *name)
|
||||
|
||||
g_return_val_if_fail (name != NULL, NULL);
|
||||
|
||||
fullname = g_strconcat (GNC_SHAREDIR, "/", name, NULL);
|
||||
fullname = g_strconcat (GNC_PIXMAP_DIR, "/", name, NULL);
|
||||
pixmap = gnome_pixmap_new_from_file (fullname);
|
||||
g_free (fullname);
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
gncpixmapdir = ${GNC_SHAREDIR}
|
||||
gncpixmapdir = ${GNC_PIXMAP_DIR}
|
||||
|
||||
gncpixmap_DATA = \
|
||||
gnucash_long.png
|
||||
|
||||
Reference in New Issue
Block a user