Skip to content

Commit caa6883

Browse files
committed
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.
1 parent d62e45c commit caa6883

12 files changed

Lines changed: 4283 additions & 12 deletions

applets/clock/Makefile.am

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ CLOCK_SOURCES = \
3535
set-timezone.h \
3636
$(BUILT_SOURCES)
3737

38+
if HAVE_EDS
39+
CLOCK_SOURCES += \
40+
calendar-client.c \
41+
calendar-client.h \
42+
calendar-sources.c \
43+
calendar-sources.h \
44+
calendar-debug.h
45+
endif
46+
3847
CLOCK_CPPFLAGS = \
3948
$(AM_CPPFLAGS) \
4049
$(LIBMATE_PANEL_APPLET_CFLAGS) \
@@ -44,13 +53,21 @@ CLOCK_CPPFLAGS = \
4453
-DMATELOCALEDIR=\""$(datadir)/locale"\" \
4554
-DMATEWEATHER_I_KNOW_THIS_IS_UNSTABLE
4655

56+
if HAVE_EDS
57+
CLOCK_CPPFLAGS += $(EDS_CFLAGS)
58+
endif
59+
4760
CLOCK_LDADD = \
4861
../../libmate-panel-applet/libmate-panel-applet-4.la \
4962
$(CLOCK_LIBS) \
5063
$(LIBMATE_PANEL_APPLET_LIBS) \
5164
libsystem-timezone.la \
5265
-lm
5366

67+
if HAVE_EDS
68+
CLOCK_LDADD += $(EDS_LIBS)
69+
endif
70+
5471
test_system_timezone_SOURCES = \
5572
test-system-timezone.c
5673
test_system_timezone_LDADD = libsystem-timezone.la

0 commit comments

Comments
 (0)