demo: relocated the default window icons
commitbc8849fdf4b376f7446b1e53652d3b97dfde32a6
authorNicola Fontana <ntd@entidi.it>
Mon, 28 Jan 2013 21:46:42 +0000 (28 22:46 +0100)
committerNicola Fontana <ntd@entidi.it>
Mon, 28 Jan 2013 21:48:36 +0000 (28 22:48 +0100)
tree8ccebee90f9326946ea6db8066ae873afb332e20
parentab5279f960be2be9668414448ac2b2aafde0eb03
demo: relocated the default window icons

Instead of hard-coding PKGDATADIR in libadg, the function is now generic
and the path decision is demanded to the application (that has access to
its arg[0]). Modified and adapted the sources to properly handle the
icons and the .ui files.

Put some shared code in demo.[ch] to avoid duplication.
13 files changed:
build/adg.nsi.in
demo/Makefile.am
demo/adg-demo.c
demo/cpml-demo-gtk2.c
demo/cpml-demo.c
demo/demo.c [new file with mode: 0644]
demo/demo.h [copied from src/adg/adg-gtk-utils.h with 55% similarity]
po/POTFILES.in
src/adg/Makefile.am
src/adg/adg-gtk-utils.c
src/adg/adg-gtk-utils.h
src/adg/adg-utils.c
src/adg/adg-utils.h