--- a/configure.ac Sun Apr 27 11:56:12 2008 +0200
+++ b/configure.ac Sat Jun 14 12:16:04 2008 +0200
@@ -10,12 +10,12 @@ AC_PROG_LIBTOOL
AC_PROG_LIBTOOL
AC_PROG_MAKE_SET
+AC_ARG_ENABLE(clock,
+[ --enable-clock Enable clock [default=no]], , enable_clock=no)
AC_ARG_ENABLE(debug,
-[ --enable-debug Enable debug [default=no]],
- , enable_debug=no)
+[ --enable-debug Enable debug [default=no]], , enable_debug=no)
AC_ARG_ENABLE(reporting,
-[ --enable-reporting Enable reporting [default=no]],
- , enable_reporting=no)
+[ --enable-reporting Enable reporting [default=no]], , enable_reporting=no)
if test x$enable_debug = xyes; then
AC_DEFINE(ENABLE_DEBUG_TRACE, 1, [Define this if you want some debugging information])
AC_DEFINE(ENABLE_DEBUG, 1, [Define this if you want some internal check])
@@ -32,6 +32,11 @@ if test x$enable_reporting = xyes; then
fi
AC_DEFINE(ENABLE_REPORTING, 1, [Define this if you want the application to report some stats])
fi
+
+if test x$enable_clock = xyes; then
+ AC_DEFINE(ENABLE_CLOCK, 1, [Define this if you want to show the clock on the desktop])
+fi
+
changequote(,)dnl
if test "x$GCC" = "xyes"; then
--- a/src/minidesk_desktop_view.c Sun Apr 27 11:56:12 2008 +0200
+++ b/src/minidesk_desktop_view.c Sat Jun 14 12:16:04 2008 +0200
@@ -302,6 +302,7 @@ minidesk_desktop_view_default_applicatio
screen_height-CELL_SIZE);
}
+#if ENABLE_CLOCK
app = g_new0(struct application, 1);
if (app)
{
@@ -314,6 +315,7 @@ minidesk_desktop_view_default_applicatio
screen_width-CELL_SIZE,
0);
}
+#endif
}
static int