wmclock: Use defines to get language xpms instead of creating symlinks.
This commit is contained in:
parent
1332c07b8f
commit
81952635d5
|
@ -17,10 +17,9 @@ if test ! -d "${LangDir}"; then
|
|||
AC_MSG_ERROR([Cannot find language directory '${LangDir}'.])
|
||||
fi
|
||||
|
||||
echo "configuring for ${with_lang} day-of-week and month names..."
|
||||
rm -f month.xpm weekday.xpm
|
||||
ln -s "./${LangDir}/month.xpm" .
|
||||
ln -s "./${LangDir}/weekday.xpm" .
|
||||
AC_DEFINE_UNQUOTED(MONTH_XPM, ["${LangDir}/month.xpm"])
|
||||
AC_DEFINE_UNQUOTED(WEEKDAY_XPM, ["${LangDir}/weekday.xpm"])
|
||||
AC_MSG_NOTICE([configuring for ${with_lang} day-of-week and month names...])
|
||||
|
||||
PKG_CHECK_MODULES([x11], [x11])
|
||||
PKG_CHECK_MODULES([xpm], [xpm])
|
||||
|
|
|
@ -109,8 +109,8 @@
|
|||
#ifndef ONLY_SHAPED_WINDOW
|
||||
# include "clk.xpm"
|
||||
#endif /* !ONLY_SHAPED_WINDOW */
|
||||
#include "month.xpm"
|
||||
#include "weekday.xpm"
|
||||
#include MONTH_XPM
|
||||
#include WEEKDAY_XPM
|
||||
#include "xpm/date.xpm"
|
||||
#include "xpm/led.xpm"
|
||||
#include "xpm/mask.xbm"
|
||||
|
|
Loading…
Reference in a new issue