diff options
author | rbuj <[email protected]> | 2020-11-17 01:27:34 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-11-26 11:50:18 +0100 |
commit | c1dd04d294e329da95c515d7f5a9ac7a00d269cc (patch) | |
tree | 2a129f163e6c3302d0fa5dfdf96bdee0de8a2e46 /data | |
parent | b704b0e30d2ad7672c3fa86c02f3f311327fd66a (diff) | |
download | mate-notification-daemon-c1dd04d294e329da95c515d7f5a9ac7a00d269cc.tar.bz2 mate-notification-daemon-c1dd04d294e329da95c515d7f5a9ac7a00d269cc.tar.xz |
Add Do Not Disturb Applet
Diffstat (limited to 'data')
-rw-r--r-- | data/Makefile.am | 33 | ||||
-rw-r--r-- | data/mate-notification-properties.desktop.in | 13 | ||||
-rw-r--r-- | data/org.mate.applets.MateNotificationApplet.desktop.in.in | 16 | ||||
-rw-r--r-- | data/org.mate.panel.applet.MateNotificationAppletFactory.service.in | 3 |
4 files changed, 59 insertions, 6 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index 623725d..be9a8b7 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -12,17 +12,31 @@ icon32_DATA = icons/32x32/mate-notification-properties.png icon48_DATA = icons/48x48/mate-notification-properties.png iconscalable_DATA = icons/scalable/mate-notification-properties.svg +servicedir = $(DBUS_SERVICES_DIR) +service_DATA = org.freedesktop.mate.Notifications.service org.mate.panel.applet.MateNotificationAppletFactory.service +service_in_files = $(service_DATA:=.in) -servicedir = $(DBUS_SERVICES_DIR) -service_DATA = org.freedesktop.mate.Notifications.service +appletdir = $(datadir)/mate-panel/applets +applet_DATA = org.mate.applets.MateNotificationApplet.mate-panel-applet +applet_in_files = $(applet_DATA:.mate-panel-applet=.desktop.in) -gsettingsschema_in_files = org.mate.NotificationDaemon.gschema.xml.in -gsettings_SCHEMAS = $(gsettingsschema_in_files:.xml.in=.xml) +$(applet_DATA): $(applet_in_files) + $(AM_V_GEN) $(MSGFMT) --desktop --keyword=Name --keyword=Description --template $< -d $(top_srcdir)/po -o $@ + +desktopdir = $(datadir)/applications +desktop_DATA = mate-notification-properties.desktop +desktop_in_files = $(desktop_DATA:.desktop=.desktop.in) + +$(desktop_DATA): $(desktop_in_files) + $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ + +gsettings_SCHEMAS = org.mate.NotificationDaemon.gschema.xml +gsettingsschema_in_files = $(gsettings_SCHEMAS:=.in) @GSETTINGS_RULES@ EXTRA_DIST = \ + $(desktop_in_files) \ $(gsettingsschema_in_files) \ - $(service_DATA) \ $(icon16_DATA) \ $(icon22_DATA) \ $(icon24_DATA) \ @@ -30,7 +44,14 @@ EXTRA_DIST = \ $(icon48_DATA) \ $(iconscalable_DATA) -CLEANFILES = $(gsettings_SCHEMAS) +CLEANFILES = \ + $(applet_DATA) \ + $(desktop_DATA) \ + $(gsettings_SCHEMAS) + +DISTCLEANFILES = \ + $(applet_in_files) \ + $(service_DATA) gtk_update_icon_cache = $(UPDATE_ICON_CACHE) -f -t $(datadir)/icons/hicolor diff --git a/data/mate-notification-properties.desktop.in b/data/mate-notification-properties.desktop.in new file mode 100644 index 0000000..c96e053 --- /dev/null +++ b/data/mate-notification-properties.desktop.in @@ -0,0 +1,13 @@ +[Desktop Entry] +Name=Popup Notifications +Comment=Set your popup notification preferences +Exec=mate-notification-properties +# Translators: Do NOT translate or transliterate this text (this is an icon file name)! +Icon=mate-notification-properties +Terminal=false +Type=Application +StartupNotify=true +Categories=GTK;Settings;DesktopSettings; +OnlyShowIn=MATE; +# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! +Keywords=MATE;Notification;Theme; diff --git a/data/org.mate.applets.MateNotificationApplet.desktop.in.in b/data/org.mate.applets.MateNotificationApplet.desktop.in.in new file mode 100644 index 0000000..7b3769b --- /dev/null +++ b/data/org.mate.applets.MateNotificationApplet.desktop.in.in @@ -0,0 +1,16 @@ +[Applet Factory] +Id=MateNotificationAppletFactory +Location=@LIBEXECDIR@/mate-notification-applet +Name=Mate Notification Applet Factory +Description=Mate Notification Applet Factory + +[MateNotificationApplet] +Name=Do Not Disturb +Description=Activate the do not disturb mode. +# Translators: Do NOT translate or transliterate this text (this is an icon file name)! +Icon=mate-notification-properties +MateComponentId=OAFIID:MATE_Panel_Notification_Applet +X-MATE-Bugzilla-Bugzilla=MATE +X-MATE-Bugzilla-Product=mate-notification-daemon +X-MATE-Bugzilla-Component=notification applet +X-MATE-Bugzilla-Version=@VERSION@ diff --git a/data/org.mate.panel.applet.MateNotificationAppletFactory.service.in b/data/org.mate.panel.applet.MateNotificationAppletFactory.service.in new file mode 100644 index 0000000..e30bf7c --- /dev/null +++ b/data/org.mate.panel.applet.MateNotificationAppletFactory.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=org.mate.panel.applet.MateNotificationAppletFactory +Exec=@LIBEXECDIR@/mate-notification-applet |