From dafe6ccfd17ede3af0c8a92cc06a545c4d1723ef Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Fri, 25 Jul 2025 07:22:50 -0400 Subject: clock: Backport Evolution calendar integration from gnome-panel Add Evolution Data Server (EDS) calendar integration to the MATE panel clock applet, most of it ported from gnome-panel's clock applet. This allows users to view calendar events and tasks directly from the clock popup calendar. The calendar integration is disabled by default and can be enabled with --enable-eds during configuration. When disabled, the clock applet functions normally without any EDS dependencies. --- configure.ac | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ca881ef8..23c132cd 100644 --- a/configure.ac +++ b/configure.ac @@ -110,6 +110,27 @@ PKG_CHECK_MODULES(CLOCK, pango >= $PANGO_REQUIRED gtk+-3.0 >= $GTK_REQUIRED glib AC_SUBST(CLOCK_CFLAGS) AC_SUBST(CLOCK_LIBS) +# Check for Evolution Data Server support for calendar integration +AC_ARG_ENABLE([eds], + AS_HELP_STRING([--enable-eds], [Enable Evolution Data Server calendar integration @<:@default=auto@:>@]), + [enable_eds=$enableval], + [enable_eds=auto]) + +if test "x$enable_eds" != "xno"; then + PKG_CHECK_MODULES(EDS, [libecal-2.0 >= 3.33.2 libedataserver-1.2 >= 3.5.3], have_eds=yes, have_eds=no) + if test "x$have_eds" = "xyes"; then + AC_DEFINE(HAVE_EDS, 1, [Define if evolution-data-server is available]) + elif test "x$enable_eds" = "xyes"; then + AC_MSG_ERROR([EDS support requested but evolution-data-server development libraries not found]) + fi +else + have_eds=no +fi + +AM_CONDITIONAL(HAVE_EDS, test "x$have_eds" = "xyes") +AC_SUBST(EDS_CFLAGS) +AC_SUBST(EDS_LIBS) + # Make it possible to compile the applets in-process PANEL_INPROCESS_NONE= PANEL_INPROCESS_ALL= @@ -381,6 +402,7 @@ echo " Wayland support: ${have_wayland} X11 support: ${have_x11} XRandr support: ${have_randr} + Evolution Data Server support: ${have_eds} Build introspection support: ${found_introspection} Build gtk-doc documentation: ${enable_gtk_doc} -- cgit v1.2.1