From 239dec68b0e37d20d07af51e4bc21200447b0aaa Mon Sep 17 00:00:00 2001 From: Jason Conti Date: Sun, 15 May 2011 15:41:32 -0400 Subject: Couldn't seem to get a signal when a menu item is added to the dbusmenu, so adding the interface back from indicator-datetime with a MessageAdded signal to notify the indicator when a notification is added to the menu. --- src/Makefile.am | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index fc973f4..486770f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -7,6 +7,9 @@ indicator_notifications_service_SOURCES = \ dbus-spy.h \ notification.c \ notification.h \ + notifications-interface.c \ + notifications-interface.h \ + gen-notifications-service.xml.c \ notifications-service.c \ dbus-shared.h \ settings-shared.h @@ -33,3 +36,22 @@ libnotifications_la_LDFLAGS = \ -module \ -avoid-version +gen-%.xml.c: %.xml + @echo "Building $@ from $<" + @echo "const char * _$(subst -,_,$(subst .,_,$(basename $<))) = " > $@ + @sed -e "s:\":\\\\\":g" -e s:^:\": -e s:\$$:\\\\n\": $< >> $@ + @echo ";" >> $@ + +gen-%.xml.h: %.xml + @echo "Building $@ from $<" + @echo "extern const char * _$(subst -,_,$(subst .,_,$(basename $<)));" > $@ + +BUILT_SOURCES = \ + gen-notifications-service.xml.c \ + gen-notifications-service.xml.h + +CLEANFILES = \ + $(BUILT_SOURCES) + +EXTRA_DIST = \ + notifications-service.xml -- cgit v1.2.3