├── .build.yml ├── .github ├── FUNDING.yml └── issue_template.md ├── .travis.yml ├── .tx ├── config └── config_20221028214814.bak ├── AUTHORS ├── COPYING ├── COPYING.LIB ├── ChangeLog ├── Makefile.am ├── NEWS ├── README ├── acinclude.m4 ├── autogen.sh ├── configure.ac ├── data ├── 50-accessibility.xml.in ├── Makefile.am ├── mate-settings-daemon-uninstalled.pc.in ├── mate-settings-daemon.1 ├── mate-settings-daemon.desktop.in.in ├── mate-settings-daemon.pc.in ├── msd-datetime-mechanism.1 ├── msd-locate-pointer.1 ├── org.mate.SettingsDaemon.plugins.a11y-keyboard.gschema.xml.in ├── org.mate.SettingsDaemon.plugins.a11y-settings.gschema.xml.in ├── org.mate.SettingsDaemon.plugins.background.gschema.xml.in ├── org.mate.SettingsDaemon.plugins.clipboard.gschema.xml.in ├── org.mate.SettingsDaemon.plugins.datetime.gschema.xml.in ├── org.mate.SettingsDaemon.plugins.gschema.xml.in ├── org.mate.SettingsDaemon.plugins.housekeeping.gschema.xml.in ├── org.mate.SettingsDaemon.plugins.keybindings.gschema.xml.in ├── org.mate.SettingsDaemon.plugins.keyboard.gschema.xml.in ├── org.mate.SettingsDaemon.plugins.media-keys.gschema.xml.in ├── org.mate.SettingsDaemon.plugins.mouse.gschema.xml.in ├── org.mate.SettingsDaemon.plugins.mpris.gschema.xml.in ├── org.mate.SettingsDaemon.plugins.rfkill.gschema.xml.in ├── org.mate.SettingsDaemon.plugins.smartcard.gschema.xml.in ├── org.mate.SettingsDaemon.plugins.sound.gschema.xml.in ├── org.mate.SettingsDaemon.plugins.typing-break.gschema.xml.in ├── org.mate.SettingsDaemon.plugins.xrandr.gschema.xml.in ├── org.mate.SettingsDaemon.plugins.xrdb.gschema.xml.in ├── org.mate.SettingsDaemon.plugins.xsettings.gschema.xml.in ├── org.mate.SettingsDaemon.service.in ├── org.mate.applications-at.gschema.xml.in ├── org.mate.font-rendering.gschema.xml.in ├── org.mate.peripherals-keyboard.gschema.xml.in ├── org.mate.peripherals-mouse.gschema.xml.in ├── org.mate.peripherals-smartcard.gschema.xml.in └── org.mate.peripherals-touchpad.gschema.xml.in ├── git.mk ├── its ├── marco-keybindings.its └── marco-keybindings.loc ├── makepot ├── mate-settings-daemon.pot ├── mate-settings-daemon ├── Makefile.am ├── main.c ├── mate-settings-bus.c ├── mate-settings-bus.h ├── mate-settings-manager.c ├── mate-settings-manager.h ├── mate-settings-manager.xml ├── mate-settings-module.c ├── mate-settings-module.h ├── mate-settings-plugin-info.c ├── mate-settings-plugin-info.h ├── mate-settings-plugin.c ├── mate-settings-plugin.h ├── mate-settings-profile.c └── mate-settings-profile.h ├── plugins ├── Makefile.am ├── a11y-keyboard │ ├── Makefile.am │ ├── a11y-keyboard.mate-settings-plugin.desktop.in │ ├── msd-a11y-keyboard-atspi.c │ ├── msd-a11y-keyboard-atspi.h │ ├── msd-a11y-keyboard-manager.c │ ├── msd-a11y-keyboard-manager.h │ ├── msd-a11y-keyboard-plugin.c │ ├── msd-a11y-keyboard-plugin.h │ ├── msd-a11y-preferences-dialog.c │ ├── msd-a11y-preferences-dialog.h │ ├── msd-a11y-preferences-dialog.ui │ └── test-a11y-preferences-dialog.c ├── a11y-settings │ ├── Makefile.am │ ├── a11y-settings.mate-settings-plugin.desktop.in │ ├── msd-a11y-settings-manager.c │ ├── msd-a11y-settings-manager.h │ ├── msd-a11y-settings-plugin.c │ └── msd-a11y-settings-plugin.h ├── background │ ├── Makefile.am │ ├── background.mate-settings-plugin.desktop.in │ ├── msd-background-manager.c │ ├── msd-background-manager.h │ ├── msd-background-plugin.c │ ├── msd-background-plugin.h │ └── test-background.c ├── clipboard │ ├── Makefile.am │ ├── clipboard.mate-settings-plugin.desktop.in │ ├── list.c │ ├── list.h │ ├── msd-clipboard-manager.c │ ├── msd-clipboard-manager.h │ ├── msd-clipboard-plugin.c │ ├── msd-clipboard-plugin.h │ ├── xutils.c │ └── xutils.h ├── common │ ├── Makefile.am │ ├── eggaccelerators.c │ ├── eggaccelerators.h │ ├── msd-input-helper.c │ ├── msd-input-helper.h │ ├── msd-keygrab.c │ ├── msd-keygrab.h │ ├── msd-osd-window.c │ └── msd-osd-window.h ├── datetime │ ├── Makefile.am │ ├── msd-datetime-mechanism-main.c │ ├── msd-datetime-mechanism.c │ ├── msd-datetime-mechanism.h │ ├── msd-datetime-mechanism.xml │ ├── org.mate.SettingsDaemon.DateTimeMechanism.conf │ ├── org.mate.SettingsDaemon.DateTimeMechanism.service.in │ ├── org.mate.settingsdaemon.datetimemechanism.policy.in │ ├── system-timezone.c │ └── system-timezone.h ├── dummy │ ├── Makefile.am │ ├── dummy.mate-settings-plugin.desktop.in │ ├── msd-dummy-manager.c │ ├── msd-dummy-manager.h │ ├── msd-dummy-plugin.c │ └── msd-dummy-plugin.h ├── housekeeping │ ├── Makefile.am │ ├── housekeeping.mate-settings-plugin.desktop.in │ ├── msd-disk-space.c │ ├── msd-disk-space.h │ ├── msd-housekeeping-manager.c │ ├── msd-housekeeping-manager.h │ ├── msd-housekeeping-plugin.c │ ├── msd-housekeeping-plugin.h │ ├── msd-ldsm-dialog.c │ ├── msd-ldsm-dialog.h │ ├── msd-ldsm-trash-empty.c │ └── msd-ldsm-trash-empty.h ├── keybindings │ ├── Makefile.am │ ├── dconf-util.c │ ├── dconf-util.h │ ├── keybindings.mate-settings-plugin.desktop.in │ ├── msd-keybindings-manager.c │ ├── msd-keybindings-manager.h │ ├── msd-keybindings-plugin.c │ └── msd-keybindings-plugin.h ├── keyboard │ ├── Makefile.am │ ├── delayed-dialog.c │ ├── delayed-dialog.h │ ├── kbd-capslock-off.png │ ├── kbd-capslock-on.png │ ├── kbd-numlock-off.png │ ├── kbd-numlock-on.png │ ├── kbd-scrolllock-off.png │ ├── kbd-scrolllock-on.png │ ├── keyboard.mate-settings-plugin.desktop.in │ ├── msd-keyboard-manager.c │ ├── msd-keyboard-manager.h │ ├── msd-keyboard-plugin.c │ ├── msd-keyboard-plugin.h │ ├── msd-keyboard-xkb.c │ └── msd-keyboard-xkb.h ├── media-keys │ ├── Makefile.am │ ├── acme.h │ ├── acme.ui │ ├── media-keys.mate-settings-plugin.desktop.in │ ├── msd-marshal.list │ ├── msd-media-keys-manager.c │ ├── msd-media-keys-manager.h │ ├── msd-media-keys-plugin.c │ ├── msd-media-keys-plugin.h │ ├── msd-media-keys-window.c │ ├── msd-media-keys-window.h │ ├── test-media-keys.c │ └── test-media-window.c ├── mouse │ ├── Makefile.am │ ├── mouse.mate-settings-plugin.desktop.in │ ├── msd-locate-pointer.c │ ├── msd-locate-pointer.h │ ├── msd-mouse-manager.c │ ├── msd-mouse-manager.h │ ├── msd-mouse-plugin.c │ ├── msd-mouse-plugin.h │ ├── msd-timeline.c │ └── msd-timeline.h ├── mpris │ ├── Makefile.am │ ├── bus-watch-namespace.c │ ├── bus-watch-namespace.h │ ├── mpris.mate-settings-plugin.desktop.in │ ├── msd-mpris-manager.c │ ├── msd-mpris-manager.h │ ├── msd-mpris-plugin.c │ └── msd-mpris-plugin.h ├── rfkill │ ├── 61-mate-settings-daemon-rfkill.rules │ ├── Makefile.am │ ├── msd-rfkill-manager.c │ ├── msd-rfkill-manager.h │ ├── msd-rfkill-plugin.c │ ├── msd-rfkill-plugin.h │ ├── rfkill-glib.c │ ├── rfkill-glib.h │ ├── rfkill.h │ └── rfkill.mate-settings-plugin.desktop.in ├── smartcard │ ├── Makefile.am │ ├── msd-smartcard-manager.c │ ├── msd-smartcard-manager.h │ ├── msd-smartcard-plugin.c │ ├── msd-smartcard-plugin.h │ ├── msd-smartcard.c │ ├── msd-smartcard.h │ └── smartcard.mate-settings-plugin.desktop.in ├── sound │ ├── Makefile.am │ ├── msd-sound-manager.c │ ├── msd-sound-manager.h │ ├── msd-sound-plugin.c │ ├── msd-sound-plugin.h │ └── sound.mate-settings-plugin.desktop.in ├── typing-break │ ├── Makefile.am │ ├── msd-typing-break-manager.c │ ├── msd-typing-break-manager.h │ ├── msd-typing-break-plugin.c │ ├── msd-typing-break-plugin.h │ └── typing-break.mate-settings-plugin.desktop.in ├── xrandr │ ├── Makefile.am │ ├── msd-xrandr-16.png │ ├── msd-xrandr-22.png │ ├── msd-xrandr-24.png │ ├── msd-xrandr-32.png │ ├── msd-xrandr-48.png │ ├── msd-xrandr-64.png │ ├── msd-xrandr-96.png │ ├── msd-xrandr-manager.c │ ├── msd-xrandr-manager.h │ ├── msd-xrandr-plugin.c │ ├── msd-xrandr-plugin.h │ ├── msd-xrandr.svg │ └── xrandr.mate-settings-plugin.desktop.in ├── xrdb │ ├── Makefile.am │ ├── data │ │ ├── Editres.ad │ │ ├── Emacs.ad │ │ ├── General.ad │ │ ├── Makefile.am │ │ ├── Motif.ad │ │ ├── Tk.ad │ │ └── Xaw.ad │ ├── msd-xrdb-manager.c │ ├── msd-xrdb-manager.h │ ├── msd-xrdb-plugin.c │ ├── msd-xrdb-plugin.h │ └── xrdb.mate-settings-plugin.desktop.in └── xsettings │ ├── Makefile.am │ ├── fontconfig-monitor.c │ ├── fontconfig-monitor.h │ ├── msd-xsettings-manager.c │ ├── msd-xsettings-manager.h │ ├── msd-xsettings-plugin.c │ ├── msd-xsettings-plugin.h │ ├── wm-common.c │ ├── wm-common.h │ ├── xsettings-common.c │ ├── xsettings-common.h │ ├── xsettings-manager.c │ ├── xsettings-manager.h │ └── xsettings.mate-settings-plugin.desktop.in └── po ├── ChangeLog ├── LINGUAS ├── Makevars ├── POTFILES.in ├── POTFILES.skip ├── af.po ├── am.po ├── ar.po ├── as.po ├── ast.po ├── az.po ├── be.po ├── bg.po ├── bn.po ├── bn_IN.po ├── br.po ├── bs.po ├── ca.po ├── ca@valencia.po ├── cmn.po ├── crh.po ├── cs.po ├── cy.po ├── da.po ├── de.po ├── dz.po ├── el.po ├── en_AU.po ├── en_CA.po ├── en_GB.po ├── eo.po ├── es.po ├── es_AR.po ├── es_CL.po ├── es_CO.po ├── es_CR.po ├── es_DO.po ├── es_EC.po ├── es_ES.po ├── es_MX.po ├── es_NI.po ├── es_PA.po ├── es_PE.po ├── es_PR.po ├── es_SV.po ├── es_UY.po ├── es_VE.po ├── et.po ├── eu.po ├── fa.po ├── fi.po ├── fr.po ├── frp.po ├── fur.po ├── fy.po ├── ga.po ├── gl.po ├── gnome-copyrights.txt ├── gu.po ├── he.po ├── hi.po ├── hr.po ├── hu.po ├── hy.po ├── id.po ├── ie.po ├── is.po ├── it.po ├── ja.po ├── ka.po ├── kk.po ├── kn.po ├── ko.po ├── ku.po ├── ku_IQ.po ├── ky.po ├── lt.po ├── lv.po ├── mai.po ├── mg.po ├── mk.po ├── ml.po ├── mn.po ├── mr.po ├── ms.po ├── nb.po ├── nds.po ├── ne.po ├── nl.po ├── nn.po ├── nso.po ├── oc.po ├── or.po ├── pa.po ├── pl.po ├── pms.po ├── ps.po ├── pt.po ├── pt_BR.po ├── ro.po ├── ru.po ├── rw.po ├── si.po ├── sk.po ├── sl.po ├── sq.po ├── sr.po ├── sr@latin.po ├── sv.po ├── ta.po ├── te.po ├── th.po ├── tr.po ├── ug.po ├── uk.po ├── ur.po ├── uz.po ├── vi.po ├── wa.po ├── xh.po ├── zh_CN.po ├── zh_HK.po ├── zh_TW.po └── zu.po /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | custom: https://mate-desktop.org/donate/ 10 | -------------------------------------------------------------------------------- /.github/issue_template.md: -------------------------------------------------------------------------------- 1 | #### Expected behaviour 2 | 3 | 4 | #### Actual behaviour 5 | 6 | 7 | #### Steps to reproduce the behaviour 8 | 9 | 10 | #### MATE general version 11 | 12 | 13 | #### Package version 14 | 15 | 16 | #### Linux Distribution 17 | 18 | 19 | #### Link to bugreport of your Distribution (requirement) 20 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # vim: set ts=2 sts=2 sw=2 expandtab : 2 | dist: jammy 3 | language: shell 4 | os: linux 5 | services: 6 | - docker 7 | addons: 8 | apt: 9 | packages: 10 | - python3-pip 11 | - python3-setuptools 12 | 13 | branches: 14 | except: 15 | - gh-pages 16 | 17 | before_install: 18 | - curl -Ls -o docker-build https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/docker-build 19 | - curl -Ls -o gen-index https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/gen-index.sh 20 | - chmod +x docker-build gen-index 21 | 22 | install: 23 | - pip3 install PyGithub 24 | - ./docker-build --name ${DISTRO} --config .build.yml --install 25 | 26 | script: 27 | - ./docker-build --name ${DISTRO} --verbose --config .build.yml --build scripts 28 | 29 | notifications: 30 | irc: 31 | if: (tag OR branch = master) AND 32 | repo = "mate-desktop/mate-settings-daemon" 33 | channels: 34 | - "irc.libera.chat#mate-dev" 35 | template: 36 | - "[%{repository_name}] %{author}: %{commit_subject}" 37 | - "[%{branch}] %{commit} %{message} %{build_url}" 38 | on_success: never 39 | on_failure: always 40 | 41 | deploy: 42 | - provider: pages 43 | edge: true 44 | token: $GITHUB_TOKEN 45 | keep_history: false 46 | committer_from_gh: true 47 | target_branch: gh-pages 48 | local_dir: html-report 49 | strategy: git 50 | on: 51 | all_branches: true 52 | condition: ${DISTRO} =~ ^fedora.*$ 53 | - provider: script 54 | edge: true 55 | script: ./docker-build --verbose --config .build.yml --release github 56 | on: 57 | tags: true 58 | condition: "${TRAVIS_TAG} =~ ^v.*$ && ${DISTRO} =~ ^fedora.*$" 59 | 60 | after_success: 61 | - 'if [[ "$TRAVIS_SECURE_ENV_VARS" == "true" && "$TRAVIS_PULL_REQUEST" != "false" && ${DISTRO} =~ ^fedora.*$ ]]; then 62 | REPO_SLUG_ARRAY=(${TRAVIS_REPO_SLUG//\// }); 63 | REPO_NAME=${REPO_SLUG_ARRAY[1]}; 64 | URL="https://${REPO_NAME}.mate-desktop.dev"; 65 | COMMENT="Code analysis completed"; 66 | curl -H "Authorization: token $GITHUB_TOKEN" -X POST 67 | -d "{\"state\": \"success\", \"description\": \"$COMMENT\", \"context\":\"scan-build\", \"target_url\": \"$URL\"}" 68 | https://api.github.com/repos/${TRAVIS_REPO_SLUG}/statuses/${TRAVIS_PULL_REQUEST_SHA}; 69 | fi' 70 | 71 | env: 72 | # - DISTRO="archlinux:latest" 73 | - DISTRO="debian:testing" 74 | - DISTRO="fedora:latest" 75 | # - DISTRO="ubuntu:rolling" 76 | -------------------------------------------------------------------------------- /.tx/config: -------------------------------------------------------------------------------- 1 | [main] 2 | host = https://www.transifex.com 3 | 4 | [o:mate:p:MATE:r:master--mate-settings-daemon] 5 | file_filter = po/.po 6 | source_file = po/mate-settings-daemon.pot 7 | source_lang = en 8 | type = PO 9 | minimum_perc = 2 10 | 11 | -------------------------------------------------------------------------------- /.tx/config_20221028214814.bak: -------------------------------------------------------------------------------- 1 | [main] 2 | host = https://www.transifex.com 3 | 4 | [MATE.master--mate-settings-daemon] 5 | file_filter = po/.po 6 | source_file = po/mate-settings-daemon.pot 7 | source_lang = en 8 | type = PO 9 | minimum_perc = 2 10 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | MATE: 2 | Perberos 3 | Steve Zesch 4 | Stefano Karapetsas 5 | Michal Ratajsky 6 | 7 | GNOME: 8 | Jonathan Blandford 9 | William Jon McCann 10 | -------------------------------------------------------------------------------- /ChangeLog: -------------------------------------------------------------------------------- 1 | The ChangeLog is auto-generated when releasing. If you are seeing this, use 2 | 'git log' for a detailed list of changes. 3 | -------------------------------------------------------------------------------- /Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} 4 | 5 | SUBDIRS = \ 6 | po \ 7 | mate-settings-daemon \ 8 | plugins \ 9 | data \ 10 | $(NULL) 11 | 12 | DISTCHECK_CONFIGURE_FLAGS = \ 13 | --enable-compile-warnings=no \ 14 | CFLAGS='-Wno-deprecated-declarations' 15 | 16 | EXTRA_DIST = \ 17 | autogen.sh \ 18 | ChangeLog \ 19 | README \ 20 | its \ 21 | $(NULL) 22 | 23 | DISTCLEANFILES = \ 24 | $(NULL) 25 | 26 | # Build ChangeLog from GIT history 27 | ChangeLog: 28 | $(AM_V_GEN) if test -d $(top_srcdir)/.git; then \ 29 | GIT_DIR="$(top_srcdir)/.git" git log --stat > $@; \ 30 | fi 31 | 32 | dist: ChangeLog 33 | 34 | .PHONY: ChangeLog 35 | 36 | -include $(top_srcdir)/git.mk 37 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | mate-settings-daemon is a fork of gnome-settings-daemon 2 | 3 | https://mate-desktop.org/ 4 | -------------------------------------------------------------------------------- /acinclude.m4: -------------------------------------------------------------------------------- 1 | dnl as-ac-expand.m4 0.2.0 -*- autoconf -*- 2 | dnl autostars m4 macro for expanding directories using configure's prefix 3 | 4 | dnl (C) 2003, 2004, 2005 Thomas Vander Stichele 5 | 6 | dnl Copying and distribution of this file, with or without modification, 7 | dnl are permitted in any medium without royalty provided the copyright 8 | dnl notice and this notice are preserved. 9 | 10 | dnl AS_AC_EXPAND(VAR, CONFIGURE_VAR) 11 | 12 | dnl example: 13 | dnl AS_AC_EXPAND(SYSCONFDIR, $sysconfdir) 14 | dnl will set SYSCONFDIR to /usr/local/etc if prefix=/usr/local 15 | 16 | AC_DEFUN([AS_AC_EXPAND], 17 | [ 18 | EXP_VAR=[$1] 19 | FROM_VAR=[$2] 20 | 21 | dnl first expand prefix and exec_prefix if necessary 22 | prefix_save=$prefix 23 | exec_prefix_save=$exec_prefix 24 | 25 | dnl if no prefix given, then use /usr/local, the default prefix 26 | if test "x$prefix" = "xNONE"; then 27 | prefix="$ac_default_prefix" 28 | fi 29 | dnl if no exec_prefix given, then use prefix 30 | if test "x$exec_prefix" = "xNONE"; then 31 | exec_prefix=$prefix 32 | fi 33 | 34 | full_var="$FROM_VAR" 35 | dnl loop until it doesn't change anymore 36 | while true; do 37 | new_full_var="`eval echo $full_var`" 38 | if test "x$new_full_var" = "x$full_var"; then break; fi 39 | full_var=$new_full_var 40 | done 41 | 42 | dnl clean up 43 | full_var=$new_full_var 44 | AC_SUBST([$1], "$full_var") 45 | 46 | dnl restore prefix and exec_prefix 47 | prefix=$prefix_save 48 | exec_prefix=$exec_prefix_save 49 | ]) 50 | -------------------------------------------------------------------------------- /autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Run this to generate all the initial makefiles, etc. 3 | 4 | srcdir=`dirname $0` 5 | test -z "$srcdir" && srcdir=. 6 | 7 | PKG_NAME="mate-settings-daemon" 8 | 9 | (test -f $srcdir/configure.ac) || { 10 | echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" 11 | echo " top-level $PKG_NAME directory" 12 | exit 1 13 | } 14 | 15 | which mate-autogen || { 16 | echo "You need to install mate-common from the MATE Git" 17 | exit 1 18 | } 19 | 20 | REQUIRED_AUTOMAKE_VERSION=1.9 21 | USE_COMMON_DOC_BUILD=yes 22 | 23 | . mate-autogen 24 | 25 | -------------------------------------------------------------------------------- /data/50-accessibility.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /data/mate-settings-daemon-uninstalled.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | binary=${pc_top_builddir}/mate-settings-daemon/mate-settings-daemon 6 | 7 | Name: mate-settings-daemon 8 | Description: Utility library for accessing mate-settings-daemon over DBUS 9 | Requires: glib-2.0 dbus-1 10 | Version: @VERSION@ 11 | Libs: ${pc_top_builddir}/${pcfiledir}/libmate-settings-daemon.la 12 | Cflags: -I${pc_top_builddir}/${pcfiledir}/.. 13 | -------------------------------------------------------------------------------- /data/mate-settings-daemon.1: -------------------------------------------------------------------------------- 1 | .\" 2 | .\" mate₋settings-daemon manual page 3 | .\" Copyright (c) 2009 Joshua Cummings 4 | .\" 5 | .TH MATE-SETTINGS-DAEMON 1 "June 25 2009" "" 6 | .SH NAME 7 | mate-settings-daemon \- Handles the MATE session settings 8 | .SH SYNOPSIS 9 | \fBmate-settings-daemon\fR [\fB\-\-debug\fR] [\fB\-\-replace\fR] 10 | [\fB\-\-display\fR=\fIDISPLAY\fR] 11 | .SH DESCRIPTION 12 | \fImate-settings-daemon\fR is responsible for setting the various preference 13 | parameters of a MATE session and the applications that run under it. 14 | .SH OPTIONS 15 | .PP 16 | Help options 17 | .TP 18 | \-?, \fB\-\-help\fR 19 | Show this help message 20 | .PP 21 | Application options 22 | .TP 23 | \fB\-\^\-debug\fR 24 | Enable debugging code 25 | .TP 26 | \fB\-\^\-replace\fR 27 | Replaces the current running daemon 28 | .TP 29 | \fB\-\^\-display\fR=\fIDISPLAY\fR 30 | X display to use 31 | .PP 32 | .SH AUTHOR 33 | \fBmate-settings-daemon\fR was written by Jonathan Blandford 34 | and William Jon McCann . 35 | .PP 36 | This manual page was originally written by Joshua Cummings . 37 | .PP 38 | This manual page was adopted for MATE by Vangelis Mouhtsis . 39 | -------------------------------------------------------------------------------- /data/mate-settings-daemon.desktop.in.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Name=MATE Settings Daemon 4 | Exec=@LIBEXECDIR@/mate-settings-daemon 5 | OnlyShowIn=MATE; 6 | X-MATE-Autostart-Phase=Initialization 7 | X-MATE-Autostart-Notify=true 8 | X-MATE-AutoRestart=true 9 | NoDisplay=true -------------------------------------------------------------------------------- /data/mate-settings-daemon.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | libexecdir=@libexecdir@ 6 | plugindir=${libdir}/mate-settings-daemon 7 | binary=${libexecdir}/mate-settings-daemon 8 | 9 | Name: mate-settings-daemon 10 | Description: Utility library for accessing mate-settings-daemon over DBUS 11 | Requires: glib-2.0 dbus-1 12 | Version: @VERSION@ 13 | Libs: -L${libdir} 14 | Cflags: -I${includedir}/mate-settings-daemon 15 | -------------------------------------------------------------------------------- /data/msd-datetime-mechanism.1: -------------------------------------------------------------------------------- 1 | .\" MATE manpages 2 | .\" msd-datetime-mechanism -man 3 | .\" 4 | .TH msd-datetime-mechanism 1 "Oct 2014" "" "MATE-SETTINGS-DAEMON" 5 | .SH NAME 6 | msd-datetime-mechanism \- set system time via D-Bus 7 | .SH SYNOPSIS 8 | msd-datetime-mechanism 9 | .SH DESCRIPTION 10 | The \fImsd-datetime-mechanism\fR is used for setting the system time via D-Bus. 11 | . 12 | \fImsd-datetime-mechanism\fR is a D-Bus wrapper that gets executed via D-Bus with root privileges. 13 | The execution of \fImsd-datetime-mechanism\fR gets triggered via the MATE clock applet. 14 | .SH AUTHOR 15 | This manual page has been written by Vangelis Mouhtsis and Mike Gabriel . 16 | It has been originally written for the Debian project (but may be used by others). 17 | -------------------------------------------------------------------------------- /data/msd-locate-pointer.1: -------------------------------------------------------------------------------- 1 | .\" MATE manpages 2 | .\" msd-datetime-mechanism -man 3 | .\" 4 | .TH msd-locate-pointer 1 "Oct 2014" "" "MATE-SETTINGS-DAEMON" 5 | .SH NAME 6 | msd-locate-pointer \- create ripples around mouse pointer 7 | .SH SYNOPSIS 8 | msd-locate-pointer 9 | .SH DESCRIPTION 10 | The \fImsd-locate-pointer\fR utility is a program that creates ripples (like throwing a stone into water) 11 | around the mouse pointer. This helps to locate the position of the mousepointer. 12 | .PP 13 | With \fImate-settings-daemon\fR i is possible to assign a hotkey for evoking 14 | the \fImsd-locate-pointer\fR command. 15 | .SH AUTHOR 16 | This manual page has been written by Mike Gabriel . 17 | It has been originally written for the Debian project (but may be used by others) -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.plugins.a11y-keyboard.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | Activation of this plugin 6 | Whether this plugin would be activated by mate-settings-daemon or not 7 | 8 | 9 | 7 10 | Priority to use for this plugin 11 | Priority to use for this plugin in mate-settings-daemon startup queue 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.plugins.a11y-settings.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | false 5 | Activation of this plugin 6 | Whether this plugin would be activated by mate-settings-daemon or not 7 | 8 | 9 | 7 10 | Priority to use for this plugin 11 | Priority to use for this plugin in mate-settings-daemon startup queue 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.plugins.background.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | Activation of this plugin 6 | Whether this plugin would be activated by mate-settings-daemon or not 7 | 8 | 9 | 97 10 | Priority to use for this plugin 11 | Priority to use for this plugin in mate-settings-daemon startup queue 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.plugins.clipboard.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | Activation of this plugin 6 | Whether this plugin would be activated by mate-settings-daemon or not 7 | 8 | 9 | 99 10 | Priority to use for this plugin 11 | Priority to use for this plugin in mate-settings-daemon startup queue 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.plugins.datetime.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | Activation of this plugin 6 | Whether this plugin would be activated by mate-settings-daemon or not 7 | 8 | 9 | 99 10 | Priority to use for this plugin 11 | Priority to use for this plugin in mate-settings-daemon startup queue 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.plugins.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 2 5 | Load priority for Initialization phase 6 | Priority to use as the cut-off for loading plugins during the session initialization phase. Plugins that are this number or lower, will be loaded before mate-settings-daemon registers itself as an initialized application. This is useful for plugins that need the set environment variables, or change settings before the window manager, panel, or desktop has started loading. Values higher than this number will be deferred to be loaded asynchronously. 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.plugins.housekeeping.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | Activation of this plugin 6 | Whether this plugin would be activated by mate-settings-daemon or not 7 | 8 | 9 | 99 10 | Priority to use for this plugin 11 | Priority to use for this plugin in mate-settings-daemon startup queue 12 | 13 | 14 | 0.05 15 | Free percentage notify threshold 16 | Percentage free space threshold for initial warning of low disk space. If the percentage free space drops below this, a warning will be shown. 17 | 18 | 19 | 0.01 20 | Subsequent free percentage notify threshold 21 | Specify the percentage that the free disk space should reduce by before issuing a subsequent warning. 22 | 23 | 24 | 2 25 | Free space no notify threshold 26 | Specify an amount in GB. If the amount of free space is more than this, no warning will be shown. 27 | 28 | 29 | 10 30 | Minimum notify period for repeated warnings 31 | Specify a time in minutes. Subsequent warnings for a volume will not appear more often than this period. 32 | 33 | 34 | [] 35 | Mount paths to ignore 36 | Specify a list of mount paths to ignore when they run low on space. 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.plugins.keybindings.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | Activation of this plugin 6 | Whether this plugin would be activated by mate-settings-daemon or not 7 | 8 | 9 | 6 10 | Priority to use for this plugin 11 | Priority to use for this plugin in mate-settings-daemon startup queue 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.plugins.keyboard.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | Activation of this plugin 6 | Whether this plugin would be activated by mate-settings-daemon or not 7 | 8 | 9 | 6 10 | Priority to use for this plugin 11 | Priority to use for this plugin in mate-settings-daemon startup queue 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.plugins.mouse.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | Activation of this plugin 6 | Whether this plugin would be activated by mate-settings-daemon or not 7 | 8 | 9 | 7 10 | Priority to use for this plugin 11 | Priority to use for this plugin in mate-settings-daemon startup queue 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.plugins.mpris.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | Activation of this plugin 6 | Whether this plugin would be activated by mate-settings-daemon or not 7 | 8 | 9 | 99 10 | Priority to use for this plugin 11 | Priority to use for this plugin in mate-settings-daemon startup queue 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.plugins.rfkill.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | Activation of this plugin 6 | Whether this plugin would be activated by mate-settings-daemon or not 7 | 8 | 9 | 0 10 | Priority to use for this plugin 11 | Priority to use for this plugin in mate-settings-daemon startup queue 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.plugins.smartcard.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | Activation of this plugin 6 | Whether this plugin would be activated by mate-settings-daemon or not 7 | 8 | 9 | 8 10 | Priority to use for this plugin 11 | Priority to use for this plugin in mate-settings-daemon startup queue 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.plugins.sound.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | Activation of this plugin 6 | Whether this plugin would be activated by mate-settings-daemon or not 7 | 8 | 9 | 5 10 | Priority to use for this plugin 11 | Priority to use for this plugin in mate-settings-daemon startup queue 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.plugins.typing-break.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | Activation of this plugin 6 | Whether this plugin would be activated by mate-settings-daemon or not 7 | 8 | 9 | 99 10 | Priority to use for this plugin 11 | Priority to use for this plugin in mate-settings-daemon startup queue 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.plugins.xrandr.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | Activation of this plugin 6 | Whether this plugin would be activated by mate-settings-daemon or not 7 | 8 | 9 | 1 10 | Priority to use for this plugin 11 | Priority to use for this plugin in mate-settings-daemon startup queue 12 | 13 | 14 | false 15 | Show Displays in Notification Area 16 | Whether a notification icon with display-related things should be shown in the panel. 17 | 18 | 19 | true 20 | Do not touch monitor configuration 21 | Usually, mate-settings-daemon configures internal and external monitors according to the turn_on_external_monitors_at_startup and turn_on_laptop_monitor_at_startup settings and determines an appropriate cloning/side-by-side mode. Setting this key to True disables this, and the monitor settings are not touched at all (unless there is an explicit user configuration). 22 | 23 | 24 | false 25 | Turn on external monitor after system boot 26 | Turn on external monitor after system boot if user plugs in external monitor on system boot. 27 | 28 | 29 | true 30 | Turn on laptop monitor after system boot 31 | Turn on laptop monitor after system boot if user plugs in external monitor on system boot. 32 | 33 | 34 | '/etc/mate-settings-daemon/xrandr/monitors.xml' 35 | File for default configuration for RandR 36 | The XRandR plugin will look for a default configuration in the file specified by this key. This is similar to the ~/.config/monitors.xml that normally gets stored in users' home directories. If a user does not have such a file, or has one that does not match the user's setup of monitors, then the file specified by this key will be used instead. 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.plugins.xrdb.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | Activation of this plugin 6 | Whether this plugin would be activated by mate-settings-daemon or not 7 | 8 | 9 | 90 10 | Priority to use for this plugin 11 | Priority to use for this plugin in mate-settings-daemon startup queue 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.plugins.xsettings.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | Activation of this plugin 6 | Whether this plugin would be activated by mate-settings-daemon or not 7 | 8 | 9 | 2 10 | Priority to use for this plugin 11 | Priority to use for this plugin in mate-settings-daemon startup queue 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /data/org.mate.SettingsDaemon.service.in: -------------------------------------------------------------------------------- 1 | [D-BUS Service] 2 | Name=org.mate.SettingsDaemon 3 | Exec=@libexecdir@/mate-settings-daemon 4 | -------------------------------------------------------------------------------- /data/org.mate.applications-at.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | false 5 | On-screen keyboard 6 | Whether the on-screen keyboard is turned on. 7 | 8 | 9 | false 10 | Screen magnifier 11 | Whether the screen magnifier is turned on. 12 | 13 | 14 | false 15 | Screen reader 16 | Whether the screen reader is turned on. 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /data/org.mate.font-rendering.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 0.0 22 | DPI 23 | The resolution used for converting font sizes to pixel sizes, in dots per inch. 24 | 25 | 26 | 'rgba' 27 | Antialiasing 28 | The type of antialiasing to use when rendering fonts. Possible values are: "none" for no antialiasing, "grayscale" for standard grayscale antialiasing, and "rgba" for subpixel antialiasing (LCD screens only). 29 | 30 | 31 | 'slight' 32 | Hinting 33 | The type of hinting to use when rendering fonts. Possible values are: "none" for no hinting, "slight" for basic, "medium" for moderate, and "full" for maximum hinting (may cause distortion of letter forms). 34 | 35 | 36 | 'rgb' 37 | RGBA order 38 | The order of subpixel elements on an LCD screen; only used when antialiasing is set to "rgba". Possible values are: "rgb" for red on left (most common), "bgr" for blue on left, "vrgb" for red on top, "vbgr" for red on bottom. 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /data/org.mate.peripherals-keyboard.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | true 10 | 11 | 12 | true 13 | 14 | 15 | 30 16 | 17 | 18 | 500 19 | 20 | 21 | 0 22 | 23 | 24 | 'on' 25 | possible values are "on", "off", and "custom". 26 | 27 | 28 | 400 29 | 30 | 31 | 100 32 | 33 | 34 | '' 35 | Keyboard Bell Custom Filename 36 | File name of the bell sound to be played. 37 | 38 | 39 | true 40 | Remember NumLock state 41 | When set to true, MATE will remember the state of the NumLock LED between sessions. 42 | 43 | 44 | 'unknown' 45 | NumLock state 46 | The remembered state of the NumLock LED. 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /data/org.mate.peripherals-smartcard.gschema.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 'none' 6 | Smartcard removal action 7 | Set this to one of "none", "lock_screen", or "force_logout". The action will get performed when the smartcard used for log in is removed. 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /its/marco-keybindings.its: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /its/marco-keybindings.loc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /makepot: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | PACKAGE=mate-settings-daemon; 4 | 5 | make -C po $PACKAGE.pot && mv po/$PACKAGE.pot . 6 | sed -i "/#, fuzzy/d" $PACKAGE.pot 7 | -------------------------------------------------------------------------------- /mate-settings-daemon/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | AM_CPPFLAGS = \ 4 | -DDATADIR=\""$(datadir)"\" \ 5 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 6 | -DLIBEXECDIR=\""$(libexecdir)"\" \ 7 | -DMATE_SETTINGS_PLUGINDIR=\""$(plugindir)"\" \ 8 | $(WARN_CFLAGS) \ 9 | $(DISABLE_DEPRECATED_CFLAGS) \ 10 | $(SETTINGS_DAEMON_CFLAGS) \ 11 | $(LIBNOTIFY_CFLAGS) \ 12 | $(NULL) 13 | 14 | noinst_LTLIBRARIES = \ 15 | libmsd-profile.la \ 16 | $(NULL) 17 | 18 | libmsd_profile_la_SOURCES = \ 19 | mate-settings-profile.c \ 20 | mate-settings-profile.h \ 21 | $(NULL) 22 | 23 | libmsd_profile_la_CPPFLAGS = \ 24 | $(AM_CPPFLAGS) \ 25 | $(DISABLE_DEPRECATED_CFLAGS) \ 26 | $(NULL) 27 | 28 | libmsd_profile_la_CFLAGS = \ 29 | $(SIMPLE_GREETER_CFLAGS) \ 30 | $(NULL) 31 | 32 | libmsd_profile_la_LIBADD = \ 33 | $(NULL) 34 | 35 | libmsd_profile_la_LDFLAGS = \ 36 | -export-dynamic \ 37 | $(NULL) 38 | 39 | msddir = $(libexecdir) 40 | 41 | msd_PROGRAMS = \ 42 | mate-settings-daemon 43 | 44 | apidir = $(includedir)/mate-settings-daemon 45 | api_DATA = \ 46 | mate-settings-plugin.h 47 | 48 | mate_settings_daemon_SOURCES = \ 49 | main.c \ 50 | mate-settings-bus.c \ 51 | mate-settings-bus.h \ 52 | mate-settings-manager.c \ 53 | mate-settings-manager.h \ 54 | mate-settings-plugin.c \ 55 | mate-settings-plugin.h \ 56 | mate-settings-plugin-info.c \ 57 | mate-settings-plugin-info.h \ 58 | mate-settings-module.c \ 59 | mate-settings-module.h \ 60 | $(NULL) 61 | 62 | mate_settings_daemon_CPPFLAGS = \ 63 | $(AM_CPPFLAGS) 64 | 65 | mate_settings_daemon_CFLAGS = \ 66 | $(MATE_DESKTOP_CFLAGS) \ 67 | $(AM_CFLAGS) 68 | 69 | mate_settings_daemon_LDFLAGS = \ 70 | $(AM_LDFLAGS) 71 | 72 | mate_settings_daemon_LDADD = \ 73 | libmsd-profile.la \ 74 | $(SETTINGS_DAEMON_LIBS) \ 75 | $(MATE_DESKTOP_LIBS) \ 76 | $(LIBNOTIFY_LIBS) 77 | 78 | -include $(top_srcdir)/git.mk 79 | 80 | # vim: ts=8 81 | -------------------------------------------------------------------------------- /mate-settings-daemon/mate-settings-bus.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2010-2011 Richard Hughes 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * Licensed under the GNU General Public License Version 2 7 | * 8 | * This program is free software; you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation; either version 2 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program; if not, write to the Free Software 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 21 | */ 22 | 23 | #ifndef __MATE_SETTINGS_BUS_H 24 | #define __MATE_SETTINGS_BUS_H 25 | 26 | #include 27 | 28 | G_BEGIN_DECLS 29 | 30 | char * mate_settings_get_chassis_type (void); 31 | 32 | G_END_DECLS 33 | 34 | #endif /* __MATE_SETTINGS_BUS_H */ 35 | -------------------------------------------------------------------------------- /mate-settings-daemon/mate-settings-manager.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /mate-settings-daemon/mate-settings-module.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2005 - Paolo Maggi 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, 19 | * Boston, MA 02110-1301, USA. 20 | */ 21 | 22 | #ifndef MATE_SETTINGS_MODULE_H 23 | #define MATE_SETTINGS_MODULE_H 24 | 25 | #include 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | #define MATE_TYPE_SETTINGS_MODULE (mate_settings_module_get_type ()) 32 | #define MATE_SETTINGS_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_SETTINGS_MODULE, MateSettingsModule)) 33 | #define MATE_SETTINGS_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_SETTINGS_MODULE, MateSettingsModuleClass)) 34 | #define MATE_IS_SETTINGS_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_SETTINGS_MODULE)) 35 | #define MATE_IS_SETTINGS_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), MATE_TYPE_SETTINGS_MODULE)) 36 | #define MATE_SETTINGS_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), MATE_TYPE_SETTINGS_MODULE, MateSettingsModuleClass)) 37 | 38 | typedef struct _MateSettingsModule MateSettingsModule; 39 | 40 | GType mate_settings_module_get_type (void) G_GNUC_CONST; 41 | 42 | MateSettingsModule *mate_settings_module_new (const gchar *path); 43 | 44 | const char *mate_settings_module_get_path (MateSettingsModule *module); 45 | 46 | GObject *mate_settings_module_new_object (MateSettingsModule *module); 47 | 48 | #ifdef __cplusplus 49 | } 50 | #endif 51 | 52 | #endif 53 | -------------------------------------------------------------------------------- /mate-settings-daemon/mate-settings-plugin.c: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2002-2005 Paolo Maggi 4 | * Copyright (C) 2007 William Jon McCann 5 | * Copyright (C) 2012-2021 MATE Developers 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, 20 | * Boston, MA 02110-1301, USA. 21 | */ 22 | 23 | #include "config.h" 24 | 25 | #include "mate-settings-plugin.h" 26 | 27 | G_DEFINE_TYPE (MateSettingsPlugin, mate_settings_plugin, G_TYPE_OBJECT) 28 | 29 | static void 30 | dummy (MateSettingsPlugin *plugin) 31 | { 32 | /* Empty */ 33 | } 34 | 35 | static void 36 | mate_settings_plugin_class_init (MateSettingsPluginClass *klass) 37 | { 38 | klass->activate = dummy; 39 | klass->deactivate = dummy; 40 | } 41 | 42 | static void 43 | mate_settings_plugin_init (MateSettingsPlugin *plugin) 44 | { 45 | /* Empty */ 46 | } 47 | 48 | void 49 | mate_settings_plugin_activate (MateSettingsPlugin *plugin) 50 | { 51 | g_return_if_fail (MATE_IS_SETTINGS_PLUGIN (plugin)); 52 | 53 | MATE_SETTINGS_PLUGIN_GET_CLASS (plugin)->activate (plugin); 54 | } 55 | 56 | void 57 | mate_settings_plugin_deactivate (MateSettingsPlugin *plugin) 58 | { 59 | g_return_if_fail (MATE_IS_SETTINGS_PLUGIN (plugin)); 60 | 61 | MATE_SETTINGS_PLUGIN_GET_CLASS (plugin)->deactivate (plugin); 62 | } 63 | -------------------------------------------------------------------------------- /mate-settings-daemon/mate-settings-profile.c: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2005 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | * Authors: William Jon McCann 21 | * 22 | */ 23 | 24 | #include "config.h" 25 | 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | 33 | #include 34 | #include 35 | 36 | #include "mate-settings-profile.h" 37 | 38 | void 39 | _mate_settings_profile_log (const char *func, 40 | const char *note, 41 | const char *format, 42 | ...) 43 | { 44 | va_list args; 45 | char *str; 46 | char *formatted; 47 | 48 | if (format == NULL) { 49 | formatted = g_strdup (""); 50 | } else { 51 | va_start (args, format); 52 | formatted = g_strdup_vprintf (format, args); 53 | va_end (args); 54 | } 55 | 56 | if (func != NULL) { 57 | str = g_strdup_printf ("MARK: %s %s: %s %s", g_get_prgname(), func, note ? note : "", formatted); 58 | } else { 59 | str = g_strdup_printf ("MARK: %s: %s %s", g_get_prgname(), note ? note : "", formatted); 60 | } 61 | 62 | g_free (formatted); 63 | 64 | g_access (str, F_OK); 65 | g_free (str); 66 | } 67 | -------------------------------------------------------------------------------- /mate-settings-daemon/mate-settings-profile.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2005 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | * Authors: William Jon McCann 21 | * 22 | */ 23 | 24 | #ifndef __MATE_SETTINGS_PROFILE_H 25 | #define __MATE_SETTINGS_PROFILE_H 26 | 27 | #include 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | #ifdef ENABLE_PROFILING 34 | #ifdef G_HAVE_ISO_VARARGS 35 | #define mate_settings_profile_start(...) _mate_settings_profile_log (G_STRFUNC, "start", __VA_ARGS__) 36 | #define mate_settings_profile_end(...) _mate_settings_profile_log (G_STRFUNC, "end", __VA_ARGS__) 37 | #define mate_settings_profile_msg(...) _mate_settings_profile_log (NULL, NULL, __VA_ARGS__) 38 | #elif defined(G_HAVE_GNUC_VARARGS) 39 | #define mate_settings_profile_start(format...) _mate_settings_profile_log (G_STRFUNC, "start", format) 40 | #define mate_settings_profile_end(format...) _mate_settings_profile_log (G_STRFUNC, "end", format) 41 | #define mate_settings_profile_msg(format...) _mate_settings_profile_log (NULL, NULL, format) 42 | #endif 43 | #else 44 | #define mate_settings_profile_start(...) 45 | #define mate_settings_profile_end(...) 46 | #define mate_settings_profile_msg(...) 47 | #endif 48 | 49 | void _mate_settings_profile_log (const char *func, 50 | const char *note, 51 | const char *format, 52 | ...) G_GNUC_PRINTF (3, 4); 53 | 54 | #ifdef __cplusplus 55 | } 56 | #endif 57 | 58 | #endif /* __MATE_SETTINGS_PROFILE_H */ 59 | -------------------------------------------------------------------------------- /plugins/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | enabled_plugins = \ 4 | a11y-keyboard \ 5 | a11y-settings \ 6 | background \ 7 | clipboard \ 8 | datetime \ 9 | dummy \ 10 | housekeeping \ 11 | keybindings \ 12 | keyboard \ 13 | media-keys \ 14 | mpris \ 15 | mouse \ 16 | sound \ 17 | typing-break \ 18 | xrandr \ 19 | xrdb \ 20 | xsettings \ 21 | $(NULL) 22 | 23 | disabled_plugins = $(NULL) 24 | 25 | if SMARTCARD_SUPPORT 26 | enabled_plugins += smartcard 27 | else 28 | disabled_plugins += smartcard 29 | endif 30 | 31 | if BUILD_RFKILL 32 | enabled_plugins += rfkill 33 | else 34 | disabled_plugins += rfkill 35 | endif 36 | 37 | SUBDIRS = common $(enabled_plugins) 38 | DIST_SUBDIRS = $(SUBDIRS) $(disabled_plugins) 39 | 40 | -include $(top_srcdir)/git.mk 41 | -------------------------------------------------------------------------------- /plugins/a11y-keyboard/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | gtkbuilderdir = $(pkgdatadir) 4 | gtkbuilder_DATA = \ 5 | msd-a11y-preferences-dialog.ui \ 6 | $(NULL) 7 | 8 | noinst_PROGRAMS = \ 9 | test-a11y-preferences-dialog \ 10 | $(NULL) 11 | 12 | test_a11y_preferences_dialog_SOURCES = \ 13 | msd-a11y-preferences-dialog.c \ 14 | msd-a11y-preferences-dialog.h \ 15 | test-a11y-preferences-dialog.c \ 16 | $(NULL) 17 | 18 | test_a11y_preferences_dialog_CPPFLAGS = \ 19 | -I$(top_srcdir)/mate-settings-daemon \ 20 | -DPIXMAPDIR=\""$(pkgdatadir)"\" \ 21 | -DGTKBUILDERDIR=\""$(pkgdatadir)"\" \ 22 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 23 | $(AM_CPPFLAGS) 24 | 25 | test_a11y_preferences_dialog_CFLAGS = \ 26 | $(SETTINGS_PLUGIN_CFLAGS) \ 27 | $(AM_CFLAGS) \ 28 | $(WARN_CFLAGS) \ 29 | $(NULL) 30 | 31 | test_a11y_preferences_dialog_LDADD = \ 32 | $(SETTINGS_DAEMON_LIBS) \ 33 | $(SETTINGS_PLUGIN_LIBS) \ 34 | $(NULL) 35 | 36 | plugin_LTLIBRARIES = \ 37 | liba11y-keyboard.la \ 38 | $(NULL) 39 | 40 | liba11y_keyboard_la_SOURCES = \ 41 | msd-a11y-keyboard-plugin.h \ 42 | msd-a11y-keyboard-plugin.c \ 43 | msd-a11y-keyboard-manager.h \ 44 | msd-a11y-keyboard-manager.c \ 45 | msd-a11y-preferences-dialog.h \ 46 | msd-a11y-preferences-dialog.c \ 47 | $(NULL) 48 | 49 | liba11y_keyboard_la_CPPFLAGS = \ 50 | -I$(top_srcdir)/mate-settings-daemon \ 51 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 52 | -DGTKBUILDERDIR=\""$(gtkbuilderdir)"\" \ 53 | $(AM_CPPFLAGS) 54 | 55 | liba11y_keyboard_la_CFLAGS = \ 56 | $(SETTINGS_PLUGIN_CFLAGS) \ 57 | $(LIBNOTIFY_CFLAGS) \ 58 | $(AM_CFLAGS) \ 59 | $(WARN_CFLAGS) \ 60 | $(NULL) 61 | 62 | liba11y_keyboard_la_LDFLAGS = \ 63 | $(MSD_PLUGIN_LDFLAGS) \ 64 | $(NULL) 65 | 66 | liba11y_keyboard_la_LIBADD = \ 67 | $(SETTINGS_PLUGIN_LIBS) \ 68 | $(LIBNOTIFY_LIBS) \ 69 | $(X11_LIBS) \ 70 | $(XINPUT_LIBS) \ 71 | $(NULL) 72 | 73 | if HAVE_LIBATSPI 74 | liba11y_keyboard_la_SOURCES += \ 75 | msd-a11y-keyboard-atspi.h \ 76 | msd-a11y-keyboard-atspi.c \ 77 | $(NULL) 78 | liba11y_keyboard_la_CFLAGS += \ 79 | $(LIBATSPI_CFLAGS) 80 | liba11y_keyboard_la_LIBADD += \ 81 | $(LIBATSPI_LIBS) 82 | endif 83 | 84 | plugin_in_files = \ 85 | a11y-keyboard.mate-settings-plugin.desktop.in \ 86 | $(NULL) 87 | 88 | plugin_DATA = $(plugin_in_files:.mate-settings-plugin.desktop.in=.mate-settings-plugin) 89 | 90 | EXTRA_DIST = \ 91 | $(plugin_in_files) \ 92 | $(gtkbuilder_DATA) \ 93 | $(NULL) 94 | 95 | CLEANFILES = \ 96 | $(plugin_DATA) \ 97 | $(NULL) 98 | 99 | DISTCLEANFILES = \ 100 | $(plugin_DATA) \ 101 | $(NULL) 102 | 103 | $(plugin_DATA): $(plugin_in_files) 104 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ 105 | 106 | -include $(top_srcdir)/git.mk 107 | -------------------------------------------------------------------------------- /plugins/a11y-keyboard/a11y-keyboard.mate-settings-plugin.desktop.in: -------------------------------------------------------------------------------- 1 | [MATE Settings Plugin] 2 | Module=a11y-keyboard 3 | IAge=0 4 | Name=Accessibility Keyboard 5 | Description=Accessibility keyboard plugin 6 | Authors=Jody Goldberg 7 | Copyright=Copyright © 2001 Ximian, Inc. 8 | Website= 9 | -------------------------------------------------------------------------------- /plugins/a11y-keyboard/msd-a11y-keyboard-atspi.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2020 Colomban Wendling 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | */ 20 | 21 | #ifndef __MSD_A11Y_KEYBOARD_ATSPI_H 22 | #define __MSD_A11Y_KEYBOARD_ATSPI_H 23 | 24 | #include 25 | 26 | G_BEGIN_DECLS 27 | 28 | #define MSD_TYPE_A11Y_KEYBOARD_ATSPI (msd_a11y_keyboard_atspi_get_type ()) 29 | G_DECLARE_FINAL_TYPE (MsdA11yKeyboardAtspi, msd_a11y_keyboard_atspi, 30 | MSD, A11Y_KEYBOARD_ATSPI, GObject) 31 | 32 | MsdA11yKeyboardAtspi *msd_a11y_keyboard_atspi_new (void); 33 | void msd_a11y_keyboard_atspi_start (MsdA11yKeyboardAtspi *self); 34 | void msd_a11y_keyboard_atspi_stop (MsdA11yKeyboardAtspi *self); 35 | 36 | G_END_DECLS 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /plugins/a11y-keyboard/msd-a11y-keyboard-manager.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_A11Y_KEYBOARD_MANAGER_H 23 | #define __MSD_A11Y_KEYBOARD_MANAGER_H 24 | 25 | #include 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | #define MSD_TYPE_A11Y_KEYBOARD_MANAGER (msd_a11y_keyboard_manager_get_type ()) 32 | #define MSD_A11Y_KEYBOARD_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_A11Y_KEYBOARD_MANAGER, MsdA11yKeyboardManager)) 33 | #define MSD_A11Y_KEYBOARD_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_A11Y_KEYBOARD_MANAGER, MsdA11yKeyboardManagerClass)) 34 | #define MSD_IS_A11Y_KEYBOARD_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_A11Y_KEYBOARD_MANAGER)) 35 | #define MSD_IS_A11Y_KEYBOARD_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_A11Y_KEYBOARD_MANAGER)) 36 | #define MSD_A11Y_KEYBOARD_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_A11Y_KEYBOARD_MANAGER, MsdA11yKeyboardManagerClass)) 37 | 38 | typedef struct MsdA11yKeyboardManagerPrivate MsdA11yKeyboardManagerPrivate; 39 | 40 | typedef struct 41 | { 42 | GObject parent; 43 | MsdA11yKeyboardManagerPrivate *priv; 44 | } MsdA11yKeyboardManager; 45 | 46 | typedef struct 47 | { 48 | GObjectClass parent_class; 49 | } MsdA11yKeyboardManagerClass; 50 | 51 | GType msd_a11y_keyboard_manager_get_type (void); 52 | 53 | MsdA11yKeyboardManager *msd_a11y_keyboard_manager_new (void); 54 | gboolean msd_a11y_keyboard_manager_start (MsdA11yKeyboardManager *manager, 55 | GError **error); 56 | void msd_a11y_keyboard_manager_stop (MsdA11yKeyboardManager *manager); 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | 62 | #endif /* __MSD_A11Y_KEYBOARD_MANAGER_H */ 63 | -------------------------------------------------------------------------------- /plugins/a11y-keyboard/msd-a11y-keyboard-plugin.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_A11Y_KEYBOARD_PLUGIN_H__ 23 | #define __MSD_A11Y_KEYBOARD_PLUGIN_H__ 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | #include "mate-settings-plugin.h" 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | #define MSD_TYPE_A11Y_KEYBOARD_PLUGIN (msd_a11y_keyboard_plugin_get_type ()) 36 | #define MSD_A11Y_KEYBOARD_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_A11Y_KEYBOARD_PLUGIN, MsdA11yKeyboardPlugin)) 37 | #define MSD_A11Y_KEYBOARD_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_A11Y_KEYBOARD_PLUGIN, MsdA11yKeyboardPluginClass)) 38 | #define MSD_IS_A11Y_KEYBOARD_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_A11Y_KEYBOARD_PLUGIN)) 39 | #define MSD_IS_A11Y_KEYBOARD_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_A11Y_KEYBOARD_PLUGIN)) 40 | #define MSD_A11Y_KEYBOARD_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_A11Y_KEYBOARD_PLUGIN, MsdA11yKeyboardPluginClass)) 41 | 42 | typedef struct MsdA11yKeyboardPluginPrivate MsdA11yKeyboardPluginPrivate; 43 | 44 | typedef struct 45 | { 46 | MateSettingsPlugin parent; 47 | MsdA11yKeyboardPluginPrivate *priv; 48 | } MsdA11yKeyboardPlugin; 49 | 50 | typedef struct 51 | { 52 | MateSettingsPluginClass parent_class; 53 | } MsdA11yKeyboardPluginClass; 54 | 55 | GType msd_a11y_keyboard_plugin_get_type (void) G_GNUC_CONST; 56 | 57 | /* All the plugins must implement this function */ 58 | G_MODULE_EXPORT GType register_mate_settings_plugin (GTypeModule *module); 59 | 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | 64 | #endif /* __MSD_A11Y_KEYBOARD_PLUGIN_H__ */ 65 | -------------------------------------------------------------------------------- /plugins/a11y-keyboard/msd-a11y-preferences-dialog.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2008 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_A11Y_PREFERENCES_DIALOG_H 23 | #define __MSD_A11Y_PREFERENCES_DIALOG_H 24 | 25 | #include 26 | #include 27 | 28 | #ifdef __cplusplus 29 | extern "C" { 30 | #endif 31 | 32 | #define MSD_TYPE_A11Y_PREFERENCES_DIALOG (msd_a11y_preferences_dialog_get_type ()) 33 | #define MSD_A11Y_PREFERENCES_DIALOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_A11Y_PREFERENCES_DIALOG, MsdA11yPreferencesDialog)) 34 | #define MSD_A11Y_PREFERENCES_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_A11Y_PREFERENCES_DIALOG, MsdA11yPreferencesDialogClass)) 35 | #define MSD_IS_A11Y_PREFERENCES_DIALOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_A11Y_PREFERENCES_DIALOG)) 36 | #define MSD_IS_A11Y_PREFERENCES_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_A11Y_PREFERENCES_DIALOG)) 37 | #define MSD_A11Y_PREFERENCES_DIALOG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_A11Y_PREFERENCES_DIALOG, MsdA11yPreferencesDialogClass)) 38 | 39 | typedef struct MsdA11yPreferencesDialogPrivate MsdA11yPreferencesDialogPrivate; 40 | 41 | typedef struct 42 | { 43 | GtkDialog parent; 44 | MsdA11yPreferencesDialogPrivate *priv; 45 | } MsdA11yPreferencesDialog; 46 | 47 | typedef struct 48 | { 49 | GtkDialogClass parent_class; 50 | } MsdA11yPreferencesDialogClass; 51 | 52 | GType msd_a11y_preferences_dialog_get_type (void); 53 | 54 | GtkWidget * msd_a11y_preferences_dialog_new (void); 55 | 56 | #ifdef __cplusplus 57 | } 58 | #endif 59 | 60 | #endif /* __MSD_A11Y_PREFERENCES_DIALOG_H */ 61 | -------------------------------------------------------------------------------- /plugins/a11y-keyboard/test-a11y-preferences-dialog.c: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU General Public License as 8 | * published by the Free Software Foundation; either version 2 of the 9 | * License, or (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, but 12 | * WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 19 | * 02110-1301, USA. 20 | * 21 | * 22 | */ 23 | 24 | #include "config.h" 25 | 26 | #include 27 | 28 | #include 29 | #include 30 | 31 | #include "msd-a11y-preferences-dialog.h" 32 | 33 | static void 34 | test_window (void) 35 | { 36 | GtkWidget *window; 37 | 38 | window = msd_a11y_preferences_dialog_new (); 39 | gtk_dialog_run (GTK_DIALOG (window)); 40 | } 41 | 42 | int 43 | main (int argc, 44 | char **argv) 45 | { 46 | GError *error = NULL; 47 | 48 | #ifdef ENABLE_NLS 49 | bindtextdomain (GETTEXT_PACKAGE, MATE_SETTINGS_LOCALEDIR); 50 | # ifdef HAVE_BIND_TEXTDOMAIN_CODESET 51 | bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); 52 | # endif 53 | textdomain (GETTEXT_PACKAGE); 54 | #endif 55 | 56 | if (! gtk_init_with_args (&argc, &argv, NULL, NULL, NULL, &error)) { 57 | fprintf (stderr, "%s", error->message); 58 | g_error_free (error); 59 | exit (1); 60 | } 61 | 62 | test_window (); 63 | 64 | return 0; 65 | } 66 | -------------------------------------------------------------------------------- /plugins/a11y-settings/Makefile.am: -------------------------------------------------------------------------------- 1 | plugin_name = ally-settings 2 | 3 | plugin_LTLIBRARIES = \ 4 | liba11y-settings.la 5 | 6 | liba11y_settings_la_SOURCES = \ 7 | msd-a11y-settings-manager.c \ 8 | msd-a11y-settings-manager.h \ 9 | msd-a11y-settings-plugin.c \ 10 | msd-a11y-settings-plugin.h 11 | 12 | liba11y_settings_la_CPPFLAGS = \ 13 | -I$(top_srcdir)/mate-settings-daemon \ 14 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 15 | $(AM_CPPFLAGS) 16 | 17 | liba11y_settings_la_CFLAGS = \ 18 | $(PLUGIN_CFLAGS) \ 19 | $(SETTINGS_PLUGIN_CFLAGS) \ 20 | $(AM_CFLAGS) \ 21 | $(WARN_CFLAGS) 22 | 23 | liba11y_settings_la_LDFLAGS = \ 24 | $(MSD_PLUGIN_LDFLAGS) 25 | 26 | liba11y_settings_la_LIBADD = \ 27 | $(SETTINGS_PLUGIN_LIBS) 28 | 29 | plugin_in_files = \ 30 | a11y-settings.mate-settings-plugin.desktop.in 31 | 32 | plugin_DATA = $(plugin_in_files:.mate-settings-plugin.desktop.in=.mate-settings-plugin) 33 | 34 | EXTRA_DIST = \ 35 | $(plugin_in_files) 36 | 37 | CLEANFILES = \ 38 | $(plugin_DATA) 39 | 40 | DISTCLEANFILES = \ 41 | $(plugin_DATA) 42 | 43 | $(plugin_DATA): $(plugin_in_files) 44 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ 45 | 46 | -include $(top_srcdir)/git.mk 47 | -------------------------------------------------------------------------------- /plugins/a11y-settings/a11y-settings.mate-settings-plugin.desktop.in: -------------------------------------------------------------------------------- 1 | [MATE Settings Plugin] 2 | Module=a11y-settings 3 | IAge=0 4 | Name=Accessibility settings 5 | Description=Accessibility settings plugin 6 | Authors=Bastien Nocera 7 | Copyright=Copyright © 2011 Red Hat Inc. 8 | Website= 9 | -------------------------------------------------------------------------------- /plugins/a11y-settings/msd-a11y-settings-manager.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_A11Y_SETTINGS_MANAGER_H 23 | #define __MSD_A11Y_SETTINGS_MANAGER_H 24 | 25 | #include 26 | 27 | G_BEGIN_DECLS 28 | 29 | #define MSD_TYPE_A11Y_SETTINGS_MANAGER (msd_a11y_settings_manager_get_type ()) 30 | #define MSD_A11Y_SETTINGS_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_A11Y_SETTINGS_MANAGER, MsdA11ySettingsManager)) 31 | #define MSD_A11Y_SETTINGS_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_A11Y_SETTINGS_MANAGER, MsdA11ySettingsManagerClass)) 32 | #define MSD_IS_A11Y_SETTINGS_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_A11Y_SETTINGS_MANAGER)) 33 | #define MSD_IS_A11Y_SETTINGS_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_A11Y_SETTINGS_MANAGER)) 34 | #define MSD_A11Y_SETTINGS_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_A11Y_SETTINGS_MANAGER, MsdA11ySettingsManagerClass)) 35 | 36 | typedef struct MsdA11ySettingsManagerPrivate MsdA11ySettingsManagerPrivate; 37 | 38 | typedef struct 39 | { 40 | GObject parent; 41 | MsdA11ySettingsManagerPrivate *priv; 42 | } MsdA11ySettingsManager; 43 | 44 | typedef struct 45 | { 46 | GObjectClass parent_class; 47 | } MsdA11ySettingsManagerClass; 48 | 49 | GType msd_a11y_settings_manager_get_type (void); 50 | 51 | MsdA11ySettingsManager *msd_a11y_settings_manager_new (void); 52 | gboolean msd_a11y_settings_manager_start (MsdA11ySettingsManager *manager, 53 | GError **error); 54 | void msd_a11y_settings_manager_stop (MsdA11ySettingsManager *manager); 55 | 56 | G_END_DECLS 57 | 58 | #endif /* __MSD_A11Y_SETTINGS_MANAGER_H */ 59 | -------------------------------------------------------------------------------- /plugins/a11y-settings/msd-a11y-settings-plugin.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2011 Red Hat, Inc. 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_A11Y_SETTINGS_PLUGIN_H__ 23 | #define __MSD_A11Y_SETTINGS_PLUGIN_H__ 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | #include "mate-settings-plugin.h" 30 | 31 | G_BEGIN_DECLS 32 | 33 | #define MSD_TYPE_A11Y_SETTINGS_PLUGIN (msd_a11y_settings_plugin_get_type ()) 34 | #define MSD_A11Y_SETTINGS_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_A11Y_SETTINGS_PLUGIN, MsdA11ySettingsPlugin)) 35 | #define MSD_A11Y_SETTINGS_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_A11Y_SETTINGS_PLUGIN, MsdA11ySettingsPluginClass)) 36 | #define MSD_IS_A11Y_SETTINGS_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_A11Y_SETTINGS_PLUGIN)) 37 | #define MSD_IS_A11Y_SETTINGS_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_A11Y_SETTINGS_PLUGIN)) 38 | #define MSD_A11Y_SETTINGS_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_A11Y_SETTINGS_PLUGIN, MsdA11ySettingsPluginClass)) 39 | 40 | typedef struct MsdA11ySettingsPluginPrivate MsdA11ySettingsPluginPrivate; 41 | 42 | typedef struct 43 | { 44 | MateSettingsPlugin parent; 45 | MsdA11ySettingsPluginPrivate *priv; 46 | } MsdA11ySettingsPlugin; 47 | 48 | typedef struct 49 | { 50 | MateSettingsPluginClass parent_class; 51 | } MsdA11ySettingsPluginClass; 52 | 53 | GType msd_a11y_settings_plugin_get_type (void) G_GNUC_CONST; 54 | 55 | /* All the plugins must implement this function */ 56 | G_MODULE_EXPORT GType register_mate_settings_plugin (GTypeModule *module); 57 | 58 | G_END_DECLS 59 | 60 | #endif /* __MSD_A11Y_SETTINGS_PLUGIN_H__ */ 61 | -------------------------------------------------------------------------------- /plugins/background/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | noinst_PROGRAMS = \ 4 | test-background \ 5 | $(NULL) 6 | 7 | test_background_SOURCES = \ 8 | test-background.c \ 9 | msd-background-manager.h \ 10 | msd-background-manager.c \ 11 | $(NULL) 12 | 13 | test_background_CPPFLAGS = \ 14 | -I$(top_srcdir)/mate-settings-daemon \ 15 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 16 | $(AM_CPPFLAGS) 17 | 18 | test_background_CFLAGS = \ 19 | $(SETTINGS_PLUGIN_CFLAGS) \ 20 | $(MATE_DESKTOP_CFLAGS) \ 21 | $(AM_CFLAGS) \ 22 | $(WARN_CFLAGS) 23 | 24 | test_background_LDADD = \ 25 | $(top_builddir)/mate-settings-daemon/libmsd-profile.la \ 26 | $(SETTINGS_PLUGIN_LIBS) \ 27 | $(MATE_DESKTOP_LIBS) \ 28 | $(X11_LIBS) \ 29 | $(NULL) 30 | 31 | plugin_LTLIBRARIES = \ 32 | libbackground.la \ 33 | $(NULL) 34 | 35 | libbackground_la_SOURCES = \ 36 | msd-background-plugin.h \ 37 | msd-background-plugin.c \ 38 | msd-background-manager.h \ 39 | msd-background-manager.c \ 40 | $(NULL) 41 | 42 | libbackground_la_CPPFLAGS = \ 43 | -I$(top_srcdir)/mate-settings-daemon \ 44 | -I$(top_srcdir)/plugins/background/libbackground \ 45 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 46 | $(AM_CPPFLAGS) 47 | 48 | libbackground_la_CFLAGS = \ 49 | $(SETTINGS_PLUGIN_CFLAGS) \ 50 | $(MATE_DESKTOP_CFLAGS) \ 51 | $(AM_CFLAGS) \ 52 | $(WARN_CFLAGS) 53 | 54 | libbackground_la_LDFLAGS = \ 55 | $(MSD_PLUGIN_LDFLAGS) \ 56 | $(NULL) 57 | 58 | libbackground_la_LIBADD = \ 59 | $(SETTINGS_PLUGIN_LIBS) \ 60 | $(MATE_DESKTOP_LIBS) \ 61 | $(X11_LIBS) \ 62 | $(NULL) 63 | 64 | plugin_in_files = \ 65 | background.mate-settings-plugin.desktop.in \ 66 | $(NULL) 67 | 68 | plugin_DATA = $(plugin_in_files:.mate-settings-plugin.desktop.in=.mate-settings-plugin) 69 | 70 | EXTRA_DIST = \ 71 | $(plugin_in_files) \ 72 | $(NULL) 73 | 74 | CLEANFILES = \ 75 | $(plugin_DATA) \ 76 | $(NULL) 77 | 78 | DISTCLEANFILES = \ 79 | $(plugin_DATA) \ 80 | $(NULL) 81 | 82 | $(plugin_DATA): $(plugin_in_files) 83 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ 84 | 85 | -include $(top_srcdir)/git.mk 86 | -------------------------------------------------------------------------------- /plugins/background/background.mate-settings-plugin.desktop.in: -------------------------------------------------------------------------------- 1 | [MATE Settings Plugin] 2 | Module=background 3 | IAge=0 4 | Name=Background 5 | Description=Background plugin 6 | Authors= 7 | Copyright=Copyright © 2007 8 | Website= 9 | -------------------------------------------------------------------------------- /plugins/background/msd-background-manager.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef MSD_BACKGROUND_MANAGER_H 23 | #define MSD_BACKGROUND_MANAGER_H 24 | 25 | #include 26 | 27 | G_BEGIN_DECLS 28 | 29 | #define MSD_TYPE_BACKGROUND_MANAGER (msd_background_manager_get_type()) 30 | 31 | G_DECLARE_FINAL_TYPE (MsdBackgroundManager, msd_background_manager, MSD, BACKGROUND_MANAGER, GObject) 32 | 33 | MsdBackgroundManager * msd_background_manager_new (void); 34 | 35 | gboolean msd_background_manager_start (MsdBackgroundManager *manager, 36 | GError **error); 37 | 38 | void msd_background_manager_stop (MsdBackgroundManager *manager); 39 | 40 | G_END_DECLS 41 | 42 | #endif /* MSD_BACKGROUND_MANAGER_H */ 43 | -------------------------------------------------------------------------------- /plugins/background/msd-background-plugin.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_BACKGROUND_PLUGIN_H__ 23 | #define __MSD_BACKGROUND_PLUGIN_H__ 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | #include "mate-settings-plugin.h" 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | //class MsdBackgroundPlugin 36 | //{ 37 | #define MSD_TYPE_BACKGROUND_PLUGIN (msd_background_plugin_get_type()) 38 | #define MSD_BACKGROUND_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST((o), MSD_TYPE_BACKGROUND_PLUGIN, MsdBackgroundPlugin)) 39 | #define MSD_BACKGROUND_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_BACKGROUND_PLUGIN, MsdBackgroundPluginClass)) 40 | #define MSD_IS_BACKGROUND_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), MSD_TYPE_BACKGROUND_PLUGIN)) 41 | #define MSD_IS_BACKGROUND_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE((k), MSD_TYPE_BACKGROUND_PLUGIN)) 42 | #define MSD_BACKGROUND_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), MSD_TYPE_BACKGROUND_PLUGIN, MsdBackgroundPluginClass)) 43 | 44 | typedef struct MsdBackgroundPluginPrivate MsdBackgroundPluginPrivate; 45 | 46 | typedef struct { 47 | MateSettingsPlugin parent; 48 | MsdBackgroundPluginPrivate* priv; 49 | } MsdBackgroundPlugin; 50 | 51 | typedef struct { 52 | MateSettingsPluginClass parent_class; 53 | } MsdBackgroundPluginClass; 54 | 55 | GType 56 | msd_background_plugin_get_type (void) G_GNUC_CONST; 57 | 58 | /* All the plugins must implement this function */ 59 | G_MODULE_EXPORT GType 60 | register_mate_settings_plugin (GTypeModule* module); 61 | //} 62 | 63 | #ifdef __cplusplus 64 | } 65 | #endif 66 | 67 | #endif /* __MSD_BACKGROUND_PLUGIN_H__ */ 68 | -------------------------------------------------------------------------------- /plugins/background/test-background.c: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include "config.h" 22 | 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | 29 | #include 30 | #include 31 | 32 | #include "msd-background-manager.h" 33 | 34 | static gboolean 35 | idle (MsdBackgroundManager* manager) 36 | { 37 | msd_background_manager_start(manager, NULL); 38 | return FALSE; 39 | } 40 | 41 | int 42 | main (int argc, char* argv[]) 43 | { 44 | MsdBackgroundManager* manager; 45 | 46 | bindtextdomain(GETTEXT_PACKAGE, MATE_SETTINGS_LOCALEDIR); 47 | bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); 48 | textdomain(GETTEXT_PACKAGE); 49 | 50 | setlocale(LC_ALL, ""); 51 | 52 | gtk_init(&argc, &argv); 53 | 54 | manager = msd_background_manager_new(); 55 | g_idle_add((GSourceFunc) idle, manager); 56 | 57 | gtk_main(); 58 | 59 | return 0; 60 | } 61 | -------------------------------------------------------------------------------- /plugins/clipboard/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | plugin_LTLIBRARIES = \ 4 | libclipboard.la \ 5 | $(NULL) 6 | 7 | libclipboard_la_SOURCES = \ 8 | msd-clipboard-plugin.h \ 9 | msd-clipboard-plugin.c \ 10 | msd-clipboard-manager.h \ 11 | msd-clipboard-manager.c \ 12 | xutils.h \ 13 | xutils.c \ 14 | list.h \ 15 | list.c \ 16 | $(NULL) 17 | 18 | libclipboard_la_CPPFLAGS = \ 19 | -I$(top_srcdir)/mate-settings-daemon \ 20 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 21 | $(AM_CPPFLAGS) 22 | 23 | libclipboard_la_CFLAGS = \ 24 | $(SETTINGS_PLUGIN_CFLAGS) \ 25 | $(AM_CFLAGS) \ 26 | $(WARN_CFLAGS) 27 | 28 | libclipboard_la_LDFLAGS = \ 29 | $(MSD_PLUGIN_LDFLAGS) \ 30 | $(NULL) 31 | 32 | libclipboard_la_LIBADD = \ 33 | $(SETTINGS_PLUGIN_LIBS) \ 34 | $(X11_LIBS) \ 35 | $(XINPUT_LIBS) \ 36 | $(NULL) 37 | 38 | plugin_in_files = \ 39 | clipboard.mate-settings-plugin.desktop.in \ 40 | $(NULL) 41 | 42 | plugin_DATA = $(plugin_in_files:.mate-settings-plugin.desktop.in=.mate-settings-plugin) 43 | 44 | EXTRA_DIST = \ 45 | $(plugin_in_files) \ 46 | $(NULL) 47 | 48 | CLEANFILES = \ 49 | $(plugin_DATA) \ 50 | $(NULL) 51 | 52 | DISTCLEANFILES = \ 53 | $(plugin_DATA) \ 54 | $(NULL) 55 | 56 | $(plugin_DATA): $(plugin_in_files) 57 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ 58 | 59 | -include $(top_srcdir)/git.mk 60 | -------------------------------------------------------------------------------- /plugins/clipboard/clipboard.mate-settings-plugin.desktop.in: -------------------------------------------------------------------------------- 1 | [MATE Settings Plugin] 2 | Module=clipboard 3 | IAge=0 4 | Name=Clipboard 5 | Description=Clipboard plugin 6 | Authors=Matthias Clasen 7 | Copyright=Copyright © 2007 Matthias Clasen 8 | Website= 9 | -------------------------------------------------------------------------------- /plugins/clipboard/list.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2004 Red Hat, Inc. 3 | * Copyright (C) 2012-2021 MATE Developers 4 | * 5 | * Permission to use, copy, modify, distribute, and sell this software and its 6 | * documentation for any purpose is hereby granted without fee, provided that 7 | * the above copyright notice appear in all copies and that both that 8 | * copyright notice and this permission notice appear in supporting 9 | * documentation, and that the name of Red Hat not be used in advertising or 10 | * publicity pertaining to distribution of the software without specific, 11 | * written prior permission. Red Hat makes no representations about the 12 | * suitability of this software for any purpose. It is provided "as is" 13 | * without express or implied warranty. 14 | * 15 | * RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 16 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL RED HAT 17 | * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 18 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 19 | * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 20 | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 21 | * 22 | * Author: Matthias Clasen, Red Hat, Inc. 23 | */ 24 | #ifndef LIST_H 25 | #define LIST_H 26 | 27 | typedef struct _List List; 28 | typedef void (*Callback) (void *data, 29 | void *user_data); 30 | 31 | struct _List 32 | { 33 | void *data; 34 | 35 | List *next; 36 | }; 37 | 38 | typedef int (*ListFindFunc) (void *data, 39 | void *user_data); 40 | 41 | void list_foreach (List *list, 42 | Callback func, 43 | void *user_data); 44 | List *list_prepend (List *list, 45 | void *data); 46 | void list_free (List *list); 47 | List *list_find (List *list, 48 | ListFindFunc func, 49 | void *user_data); 50 | List *list_remove (List *list, 51 | const void *data); 52 | int list_length (List *list); 53 | 54 | List *list_copy (List *list); 55 | 56 | #endif /* LIST_H */ 57 | -------------------------------------------------------------------------------- /plugins/clipboard/msd-clipboard-manager.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_CLIPBOARD_MANAGER_H 23 | #define __MSD_CLIPBOARD_MANAGER_H 24 | 25 | #include 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | #define MSD_TYPE_CLIPBOARD_MANAGER (msd_clipboard_manager_get_type ()) 32 | #define MSD_CLIPBOARD_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_CLIPBOARD_MANAGER, MsdClipboardManager)) 33 | #define MSD_CLIPBOARD_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_CLIPBOARD_MANAGER, MsdClipboardManagerClass)) 34 | #define MSD_IS_CLIPBOARD_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_CLIPBOARD_MANAGER)) 35 | #define MSD_IS_CLIPBOARD_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_CLIPBOARD_MANAGER)) 36 | #define MSD_CLIPBOARD_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_CLIPBOARD_MANAGER, MsdClipboardManagerClass)) 37 | 38 | typedef struct MsdClipboardManagerPrivate MsdClipboardManagerPrivate; 39 | 40 | typedef struct 41 | { 42 | GObject parent; 43 | MsdClipboardManagerPrivate *priv; 44 | } MsdClipboardManager; 45 | 46 | typedef struct 47 | { 48 | GObjectClass parent_class; 49 | } MsdClipboardManagerClass; 50 | 51 | GType msd_clipboard_manager_get_type (void); 52 | 53 | MsdClipboardManager * msd_clipboard_manager_new (void); 54 | gboolean msd_clipboard_manager_start (MsdClipboardManager *manager, 55 | GError **error); 56 | void msd_clipboard_manager_stop (MsdClipboardManager *manager); 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | 62 | #endif /* __MSD_CLIPBOARD_MANAGER_H */ 63 | -------------------------------------------------------------------------------- /plugins/clipboard/msd-clipboard-plugin.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_CLIPBOARD_PLUGIN_H__ 23 | #define __MSD_CLIPBOARD_PLUGIN_H__ 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | #include "mate-settings-plugin.h" 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | #define MSD_TYPE_CLIPBOARD_PLUGIN (msd_clipboard_plugin_get_type ()) 36 | #define MSD_CLIPBOARD_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_CLIPBOARD_PLUGIN, MsdClipboardPlugin)) 37 | #define MSD_CLIPBOARD_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_CLIPBOARD_PLUGIN, MsdClipboardPluginClass)) 38 | #define MSD_IS_CLIPBOARD_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_CLIPBOARD_PLUGIN)) 39 | #define MSD_IS_CLIPBOARD_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_CLIPBOARD_PLUGIN)) 40 | #define MSD_CLIPBOARD_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_CLIPBOARD_PLUGIN, MsdClipboardPluginClass)) 41 | 42 | typedef struct MsdClipboardPluginPrivate MsdClipboardPluginPrivate; 43 | 44 | typedef struct 45 | { 46 | MateSettingsPlugin parent; 47 | MsdClipboardPluginPrivate *priv; 48 | } MsdClipboardPlugin; 49 | 50 | typedef struct 51 | { 52 | MateSettingsPluginClass parent_class; 53 | } MsdClipboardPluginClass; 54 | 55 | GType msd_clipboard_plugin_get_type (void) G_GNUC_CONST; 56 | 57 | /* All the plugins must implement this function */ 58 | G_MODULE_EXPORT GType register_mate_settings_plugin (GTypeModule *module); 59 | 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | 64 | #endif /* __MSD_CLIPBOARD_PLUGIN_H__ */ 65 | -------------------------------------------------------------------------------- /plugins/clipboard/xutils.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2004 Red Hat, Inc. 3 | * Copyright (C) 2012-2021 MATE Developers 4 | * 5 | * Permission to use, copy, modify, distribute, and sell this software and its 6 | * documentation for any purpose is hereby granted without fee, provided that 7 | * the above copyright notice appear in all copies and that both that 8 | * copyright notice and this permission notice appear in supporting 9 | * documentation, and that the name of Red Hat not be used in advertising or 10 | * publicity pertaining to distribution of the software without specific, 11 | * written prior permission. Red Hat makes no representations about the 12 | * suitability of this software for any purpose. It is provided "as is" 13 | * without express or implied warranty. 14 | * 15 | * RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 16 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL RED HAT 17 | * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 18 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 19 | * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 20 | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 21 | * 22 | * Author: Matthias Clasen, Red Hat, Inc. 23 | */ 24 | #ifndef X_UTILS_H 25 | #define X_UTILS_H 26 | 27 | #include 28 | 29 | extern Atom XA_ATOM_PAIR; 30 | extern Atom XA_CLIPBOARD_MANAGER; 31 | extern Atom XA_CLIPBOARD; 32 | extern Atom XA_DELETE; 33 | extern Atom XA_INCR; 34 | extern Atom XA_INSERT_PROPERTY; 35 | extern Atom XA_INSERT_SELECTION; 36 | extern Atom XA_MANAGER; 37 | extern Atom XA_MULTIPLE; 38 | extern Atom XA_NULL; 39 | extern Atom XA_SAVE_TARGETS; 40 | extern Atom XA_TARGETS; 41 | extern Atom XA_TIMESTAMP; 42 | 43 | extern unsigned long SELECTION_MAX_SIZE; 44 | 45 | void init_atoms (Display *display); 46 | 47 | Time get_server_time (Display *display, 48 | Window window); 49 | 50 | #endif /* X_UTILS_H */ 51 | -------------------------------------------------------------------------------- /plugins/common/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | noinst_LTLIBRARIES = libcommon.la 3 | 4 | libcommon_la_SOURCES = \ 5 | eggaccelerators.c \ 6 | eggaccelerators.h \ 7 | msd-keygrab.c \ 8 | msd-keygrab.h \ 9 | msd-input-helper.c \ 10 | msd-input-helper.h \ 11 | msd-osd-window.c \ 12 | msd-osd-window.h 13 | 14 | libcommon_la_CPPFLAGS = \ 15 | $(AM_CPPFLAGS) 16 | 17 | libcommon_la_CFLAGS = \ 18 | $(SETTINGS_PLUGIN_CFLAGS) \ 19 | $(XINPUT_CFLAGS) \ 20 | $(AM_CFLAGS) \ 21 | $(WARN_CFLAGS) 22 | 23 | libcommon_la_LDFLAGS = \ 24 | $(MSD_PLUGIN_LDFLAGS) $(XINPUT_LIBS) $(X11_LIBS) 25 | 26 | libcommon_la_LIBADD = \ 27 | $(SETTINGS_PLUGIN_LIBS) \ 28 | $(XINPUT_LIBS) 29 | 30 | -include $(top_srcdir)/git.mk 31 | -------------------------------------------------------------------------------- /plugins/common/msd-input-helper.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2010 Bastien Nocera 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | */ 20 | 21 | #ifndef __MSD_INPUT_HELPER_H 22 | #define __MSD_INPUT_HELPER_H 23 | 24 | G_BEGIN_DECLS 25 | 26 | #include 27 | 28 | #include 29 | #include 30 | 31 | gboolean supports_xinput_devices (void); 32 | XDevice *device_is_touchpad (XDeviceInfo *deviceinfo); 33 | gboolean touchpad_is_present (void); 34 | 35 | G_END_DECLS 36 | 37 | #endif /* __MSD_INPUT_HELPER_H */ 38 | -------------------------------------------------------------------------------- /plugins/common/msd-keygrab.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2008 Jens Granseuer 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | */ 20 | 21 | #ifndef __MSD_COMMON_KEYGRAB_H 22 | #define __MSD_COMMON_KEYGRAB_H 23 | 24 | #ifdef __cplusplus 25 | extern "C" { 26 | #endif 27 | 28 | #include 29 | #include 30 | 31 | typedef struct { 32 | guint keysym; 33 | guint state; 34 | guint *keycodes; 35 | } Key; 36 | 37 | void grab_key_unsafe (Key *key, 38 | gboolean grab, 39 | GSList *screens); 40 | 41 | gboolean match_key (Key *key, 42 | XEvent *event); 43 | 44 | gboolean key_uses_keycode (const Key *key, 45 | guint keycode); 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | 51 | #endif /* __MSD_COMMON_KEYGRAB_H */ 52 | -------------------------------------------------------------------------------- /plugins/datetime/Makefile.am: -------------------------------------------------------------------------------- 1 | dbus_servicesdir = $(datadir)/dbus-1/system-services 2 | dbus_confdir = $(DBUS_SYS_DIR) 3 | polkitdir = $(datadir)/polkit-1/actions 4 | 5 | dbus_services_in_files = org.mate.SettingsDaemon.DateTimeMechanism.service.in 6 | polkit_in_files = org.mate.settingsdaemon.datetimemechanism.policy.in 7 | 8 | $(BUILT_SOURCES) : $(srcdir)/msd-datetime-mechanism.xml 9 | $(AM_V_GEN) $(GDBUS_CODEGEN) \ 10 | --interface-prefix org.mate.SettingsDaemon. \ 11 | --c-namespace MateSettings \ 12 | --generate-c-code msd-datetime-generated $< 13 | 14 | if HAVE_POLKIT 15 | libexec_PROGRAMS = msd-datetime-mechanism 16 | endif 17 | 18 | nodist_msd_datetime_mechanism_SOURCES = $(BUILT_SOURCES) 19 | msd_datetime_mechanism_SOURCES = \ 20 | msd-datetime-mechanism.c \ 21 | msd-datetime-mechanism.h \ 22 | msd-datetime-mechanism-main.c \ 23 | system-timezone.c \ 24 | system-timezone.h 25 | 26 | 27 | if HAVE_POLKIT 28 | BUILT_SOURCES = \ 29 | msd-datetime-generated.h \ 30 | msd-datetime-generated.c 31 | endif 32 | 33 | AM_CFLAGS = $(WARN_CFLAGS) $(SETTINGS_PLUGIN_CFLAGS) $(POLKIT_CFLAGS) 34 | msd_datetime_mechanism_LDADD = $(POLKIT_LIBS) $(SETTINGS_PLUGIN_LIBS) 35 | 36 | 37 | if HAVE_POLKIT 38 | dbus_services_DATA = $(dbus_services_in_files:.service.in=.service) 39 | 40 | $(dbus_services_DATA): $(dbus_services_in_files) 41 | $(AM_V_GEN)sed -e "s|\@LIBEXECDIR\@|$(libexecdir)|" $< > $@ 42 | 43 | dbus_conf_DATA = org.mate.SettingsDaemon.DateTimeMechanism.conf 44 | 45 | polkit_DATA = $(polkit_in_files:.policy.in=.policy) 46 | $(polkit_DATA): $(polkit_in_files) 47 | $(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@ 48 | else 49 | dbus_services_DATA = 50 | dbus_conf_DATA = 51 | polkit_DATA = 52 | endif 53 | 54 | EXTRA_DIST = \ 55 | $(dbus_services_in_files) \ 56 | org.mate.SettingsDaemon.DateTimeMechanism.conf \ 57 | $(polkit_in_files) \ 58 | msd-datetime-mechanism.xml 59 | 60 | CLEANFILES = \ 61 | org.mate.SettingsDaemon.DateTimeMechanism.service \ 62 | org.mate.settingsdaemon.datetimemechanism.policy \ 63 | $(BUILT_SOURCES) 64 | 65 | -include $(top_srcdir)/git.mk 66 | -------------------------------------------------------------------------------- /plugins/datetime/msd-datetime-mechanism-main.c: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 David Zeuthen 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifdef HAVE_CONFIG_H 23 | # include "config.h" 24 | #endif 25 | 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | #include 33 | #include 34 | #include 35 | 36 | #include 37 | #include 38 | #include "msd-datetime-mechanism.h" 39 | 40 | int 41 | main (int argc, char **argv) 42 | { 43 | GMainLoop *loop; 44 | MsdDatetimeMechanism *mechanism; 45 | int ret; 46 | 47 | ret = 1; 48 | 49 | loop = g_main_loop_new (NULL, FALSE); 50 | 51 | mechanism = msd_datetime_mechanism_new (loop); 52 | 53 | if (mechanism == NULL) { 54 | goto out; 55 | } 56 | 57 | g_main_loop_run (loop); 58 | 59 | g_object_unref (mechanism); 60 | g_main_loop_unref (loop); 61 | ret = 0; 62 | 63 | out: 64 | return ret; 65 | } 66 | -------------------------------------------------------------------------------- /plugins/datetime/org.mate.SettingsDaemon.DateTimeMechanism.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /plugins/datetime/org.mate.SettingsDaemon.DateTimeMechanism.service.in: -------------------------------------------------------------------------------- 1 | [D-BUS Service] 2 | Name=org.mate.SettingsDaemon.DateTimeMechanism 3 | Exec=@LIBEXECDIR@/msd-datetime-mechanism 4 | User=root 5 | -------------------------------------------------------------------------------- /plugins/datetime/org.mate.settingsdaemon.datetimemechanism.policy.in: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | The MATE Project 8 | https://mate-desktop.org/ 9 | mate-panel-clock 10 | 11 | 12 | Change system time zone 13 | Privileges are required to change the system time zone. 14 | 15 | no 16 | auth_admin_keep 17 | 18 | 19 | 20 | 21 | Change system time 22 | Privileges are required to change the system time. 23 | 24 | no 25 | auth_admin_keep 26 | 27 | 28 | 29 | 30 | Configure hardware clock 31 | Privileges are required to configure the hardware clock. 32 | 33 | no 34 | auth_admin_keep 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /plugins/dummy/Makefile.am: -------------------------------------------------------------------------------- 1 | plugin_LTLIBRARIES = \ 2 | libdummy.la 3 | 4 | libdummy_la_SOURCES = \ 5 | msd-dummy-manager.c \ 6 | msd-dummy-manager.h \ 7 | msd-dummy-plugin.c \ 8 | msd-dummy-plugin.h 9 | 10 | libdummy_la_CPPFLAGS = \ 11 | -I$(top_srcdir)/mate-settings-daemon \ 12 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 13 | $(AM_CPPFLAGS) 14 | 15 | libdummy_la_CFLAGS = \ 16 | $(SETTINGS_PLUGIN_CFLAGS) \ 17 | $(AM_CFLAGS) \ 18 | $(WARN_CFLAGS) 19 | 20 | libdummy_la_LDFLAGS = \ 21 | $(MSD_PLUGIN_LDFLAGS) 22 | 23 | libdummy_la_LIBADD = \ 24 | $(SETTINGS_PLUGIN_LIBS) 25 | 26 | plugin_in_files = \ 27 | dummy.mate-settings-plugin.desktop.in 28 | 29 | plugin_DATA = $(plugin_in_files:.mate-settings-plugin.desktop.in=.mate-settings-plugin) 30 | 31 | EXTRA_DIST = \ 32 | $(plugin_in_files) 33 | 34 | CLEANFILES = \ 35 | $(plugin_DATA) 36 | 37 | DISTCLEANFILES = \ 38 | $(plugin_DATA) 39 | 40 | $(plugin_DATA): $(plugin_in_files) 41 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ 42 | 43 | # override to _not_ install the test plugin 44 | # do not copy into your plugin 45 | install-pluginDATA: 46 | install-pluginLTLIBRARIES: 47 | 48 | -include $(top_srcdir)/git.mk 49 | -------------------------------------------------------------------------------- /plugins/dummy/dummy.mate-settings-plugin.desktop.in: -------------------------------------------------------------------------------- 1 | [MATE Settings Plugin] 2 | Module=dummy 3 | IAge=0 4 | Name=Dummy 5 | Description=Dummy plugin 6 | Authors=AUTHOR 7 | Copyright=Copyright © 2007 AUTHOR 8 | Website= 9 | -------------------------------------------------------------------------------- /plugins/dummy/msd-dummy-manager.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_DUMMY_MANAGER_H 23 | #define __MSD_DUMMY_MANAGER_H 24 | 25 | #include 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | #define MSD_TYPE_DUMMY_MANAGER (msd_dummy_manager_get_type ()) 32 | #define MSD_DUMMY_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_DUMMY_MANAGER, MsdDummyManager)) 33 | #define MSD_DUMMY_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_DUMMY_MANAGER, MsdDummyManagerClass)) 34 | #define MSD_IS_DUMMY_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_DUMMY_MANAGER)) 35 | #define MSD_IS_DUMMY_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_DUMMY_MANAGER)) 36 | #define MSD_DUMMY_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_DUMMY_MANAGER, MsdDummyManagerClass)) 37 | 38 | typedef struct MsdDummyManagerPrivate MsdDummyManagerPrivate; 39 | 40 | typedef struct 41 | { 42 | GObject parent; 43 | MsdDummyManagerPrivate *priv; 44 | } MsdDummyManager; 45 | 46 | typedef struct 47 | { 48 | GObjectClass parent_class; 49 | } MsdDummyManagerClass; 50 | 51 | GType msd_dummy_manager_get_type (void); 52 | 53 | MsdDummyManager * msd_dummy_manager_new (void); 54 | gboolean msd_dummy_manager_start (MsdDummyManager *manager, 55 | GError **error); 56 | void msd_dummy_manager_stop (MsdDummyManager *manager); 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | 62 | #endif /* __MSD_DUMMY_MANAGER_H */ 63 | -------------------------------------------------------------------------------- /plugins/dummy/msd-dummy-plugin.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_DUMMY_PLUGIN_H__ 23 | #define __MSD_DUMMY_PLUGIN_H__ 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | #include "mate-settings-plugin.h" 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | #define MSD_TYPE_DUMMY_PLUGIN (msd_dummy_plugin_get_type ()) 36 | #define MSD_DUMMY_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_DUMMY_PLUGIN, MsdDummyPlugin)) 37 | #define MSD_DUMMY_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_DUMMY_PLUGIN, MsdDummyPluginClass)) 38 | #define MSD_IS_DUMMY_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_DUMMY_PLUGIN)) 39 | #define MSD_IS_DUMMY_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_DUMMY_PLUGIN)) 40 | #define MSD_DUMMY_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_DUMMY_PLUGIN, MsdDummyPluginClass)) 41 | 42 | typedef struct MsdDummyPluginPrivate MsdDummyPluginPrivate; 43 | 44 | typedef struct 45 | { 46 | MateSettingsPlugin parent; 47 | MsdDummyPluginPrivate *priv; 48 | } MsdDummyPlugin; 49 | 50 | typedef struct 51 | { 52 | MateSettingsPluginClass parent_class; 53 | } MsdDummyPluginClass; 54 | 55 | GType msd_dummy_plugin_get_type (void) G_GNUC_CONST; 56 | 57 | /* All the plugins must implement this function */ 58 | G_MODULE_EXPORT GType register_mate_settings_plugin (GTypeModule *module); 59 | 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | 64 | #endif /* __MSD_DUMMY_PLUGIN_H__ */ 65 | -------------------------------------------------------------------------------- /plugins/housekeeping/Makefile.am: -------------------------------------------------------------------------------- 1 | plugin_LTLIBRARIES = libhousekeeping.la 2 | 3 | libhousekeeping_la_SOURCES = \ 4 | msd-ldsm-dialog.c \ 5 | msd-ldsm-dialog.h \ 6 | msd-ldsm-trash-empty.c \ 7 | msd-ldsm-trash-empty.h \ 8 | msd-disk-space.c \ 9 | msd-disk-space.h \ 10 | msd-housekeeping-manager.c \ 11 | msd-housekeeping-manager.h \ 12 | msd-housekeeping-plugin.c \ 13 | msd-housekeeping-plugin.h 14 | 15 | libhousekeeping_la_CPPFLAGS = \ 16 | -I$(top_srcdir)/mate-settings-daemon \ 17 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 18 | $(AM_CPPFLAGS) 19 | 20 | libhousekeeping_la_CFLAGS = \ 21 | $(SETTINGS_PLUGIN_CFLAGS) \ 22 | $(GIOUNIX_CFLAGS) \ 23 | $(LIBNOTIFY_CFLAGS) \ 24 | $(AM_CFLAGS) \ 25 | $(WARN_CFLAGS) 26 | 27 | libhousekeeping_la_LDFLAGS = $(MSD_PLUGIN_LDFLAGS) 28 | 29 | libhousekeeping_la_LIBADD = $(SETTINGS_PLUGIN_LIBS) $(GIOUNIX_LIBS) $(LIBNOTIFY_LIBS) 30 | 31 | plugin_in_files = housekeeping.mate-settings-plugin.desktop.in 32 | 33 | plugin_DATA = $(plugin_in_files:.mate-settings-plugin.desktop.in=.mate-settings-plugin) 34 | 35 | EXTRA_DIST = $(plugin_in_files) 36 | 37 | CLEANFILES = $(plugin_DATA) 38 | 39 | DISTCLEANFILES = $(plugin_DATA) 40 | 41 | $(plugin_DATA): $(plugin_in_files) 42 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ 43 | 44 | -include $(top_srcdir)/git.mk 45 | -------------------------------------------------------------------------------- /plugins/housekeeping/housekeeping.mate-settings-plugin.desktop.in: -------------------------------------------------------------------------------- 1 | [MATE Settings Plugin] 2 | Module=housekeeping 3 | IAge=0 4 | Name=Housekeeping 5 | Description=Automatically prunes thumbnail caches and other transient files, and warns about low disk space 6 | Authors=Michael J. Chudobiak 7 | Copyright=Copyright © 2008 Michael J. Chudobiak 8 | Website= 9 | -------------------------------------------------------------------------------- /plugins/housekeeping/msd-disk-space.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * vim: set et sw=8 ts=8: 3 | * 4 | * Copyright (c) 2008, Novell, Inc. 5 | * 6 | * Authors: Vincent Untz 7 | * Copyright (C) 2012-2021 MATE Developers 8 | * 9 | * This program is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License as published by 11 | * the Free Software Foundation; either version 2 of the License, or 12 | * (at your option) any later version. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU General Public License 20 | * along with this program; if not, write to the Free Software 21 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 22 | * 23 | */ 24 | 25 | #ifndef __MSD_DISK_SPACE_H 26 | #define __MSD_DISK_SPACE_H 27 | 28 | #include 29 | 30 | #ifdef __cplusplus 31 | extern "C" { 32 | #endif 33 | 34 | void msd_ldsm_setup (gboolean check_now); 35 | void msd_ldsm_clean (void); 36 | 37 | #ifdef __cplusplus 38 | } 39 | #endif 40 | 41 | #endif /* __MSD_DISK_SPACE_H */ 42 | -------------------------------------------------------------------------------- /plugins/housekeeping/msd-housekeeping-manager.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2008 Michael J. Chudobiak 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef MSD_HOUSEKEEPING_MANAGER_H 23 | #define MSD_HOUSEKEEPING_MANAGER_H 24 | 25 | #include 26 | 27 | G_BEGIN_DECLS 28 | 29 | #define MSD_TYPE_HOUSEKEEPING_MANAGER (msd_housekeeping_manager_get_type ()) 30 | 31 | G_DECLARE_FINAL_TYPE (MsdHousekeepingManager, msd_housekeeping_manager, 32 | MSD, HOUSEKEEPING_MANAGER, GObject) 33 | 34 | MsdHousekeepingManager * msd_housekeeping_manager_new (void); 35 | gboolean msd_housekeeping_manager_start (MsdHousekeepingManager *manager, 36 | GError **error); 37 | void msd_housekeeping_manager_stop (MsdHousekeepingManager *manager); 38 | 39 | G_END_DECLS 40 | 41 | #endif /* MSD_HOUSEKEEPING_MANAGER_H */ 42 | -------------------------------------------------------------------------------- /plugins/housekeeping/msd-housekeeping-plugin.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2008 Michael J. Chudobiak 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_HOUSEKEEPING_PLUGIN_H__ 23 | #define __MSD_HOUSEKEEPING_PLUGIN_H__ 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | #include "mate-settings-plugin.h" 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | #define MSD_TYPE_HOUSEKEEPING_PLUGIN (msd_housekeeping_plugin_get_type ()) 36 | #define MSD_HOUSEKEEPING_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_HOUSEKEEPING_PLUGIN, MsdHousekeepingPlugin)) 37 | #define MSD_HOUSEKEEPING_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_HOUSEKEEPING_PLUGIN, MsdHousekeepingPluginClass)) 38 | #define MSD_IS_HOUSEKEEPING_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_HOUSEKEEPING_PLUGIN)) 39 | #define MSD_IS_HOUSEKEEPING_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_HOUSEKEEPING_PLUGIN)) 40 | #define MSD_HOUSEKEEPING_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_HOUSEKEEPING_PLUGIN, MsdHousekeepingPluginClass)) 41 | 42 | typedef struct MsdHousekeepingPluginPrivate MsdHousekeepingPluginPrivate; 43 | 44 | typedef struct { 45 | MateSettingsPlugin parent; 46 | MsdHousekeepingPluginPrivate *priv; 47 | } MsdHousekeepingPlugin; 48 | 49 | typedef struct { 50 | MateSettingsPluginClass parent_class; 51 | } MsdHousekeepingPluginClass; 52 | 53 | GType msd_housekeeping_plugin_get_type (void) G_GNUC_CONST; 54 | 55 | /* All the plugins must implement this function */ 56 | G_MODULE_EXPORT GType register_mate_settings_plugin (GTypeModule *module); 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | 62 | #endif /* __MSD_HOUSEKEEPING_PLUGIN_H__ */ 63 | -------------------------------------------------------------------------------- /plugins/housekeeping/msd-ldsm-trash-empty.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * msd-ldsm-trash-empty.h 4 | * Copyright (C) Chris Coulson 2009 5 | * Copyright (C) 2012-2021 MATE Developers 6 | * 7 | * msd-ldsm-trash-empty.h is free software: you can redistribute it and/or modify it 8 | * under the terms of the GNU General Public License as published by the 9 | * Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * msd-ldsm-trash-empty.h is distributed in the hope that it will be useful, but 13 | * WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15 | * See the GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License along 18 | * with this program. If not, see . 19 | */ 20 | 21 | #ifndef _msd_ldsm_trash_empty_h_ 22 | #define _msd_ldsm_trash_empty_h_ 23 | 24 | #include 25 | 26 | void msd_ldsm_trash_empty (void); 27 | 28 | #endif /* _msd_ldsm_trash_empty_h_ */ 29 | -------------------------------------------------------------------------------- /plugins/keybindings/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | plugin_LTLIBRARIES = \ 4 | libkeybindings.la \ 5 | $(NULL) 6 | 7 | libkeybindings_la_SOURCES = \ 8 | dconf-util.h \ 9 | dconf-util.c \ 10 | msd-keybindings-plugin.h \ 11 | msd-keybindings-plugin.c \ 12 | msd-keybindings-manager.h \ 13 | msd-keybindings-manager.c \ 14 | $(NULL) 15 | 16 | libkeybindings_la_CPPFLAGS = \ 17 | -I$(top_srcdir)/mate-settings-daemon \ 18 | -I$(top_srcdir)/plugins/common \ 19 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 20 | $(AM_CPPFLAGS) 21 | 22 | libkeybindings_la_CFLAGS = \ 23 | $(SETTINGS_PLUGIN_CFLAGS) \ 24 | $(DCONF_CFLAGS) \ 25 | $(AM_CFLAGS) \ 26 | $(WARN_CFLAGS) 27 | 28 | libkeybindings_la_LDFLAGS = \ 29 | $(MSD_PLUGIN_LDFLAGS) \ 30 | $(NULL) 31 | 32 | libkeybindings_la_LIBADD = \ 33 | $(top_builddir)/plugins/common/libcommon.la \ 34 | $(SETTINGS_PLUGIN_LIBS) \ 35 | $(DCONF_LIBS) \ 36 | $(NULL) 37 | 38 | plugin_in_files = \ 39 | keybindings.mate-settings-plugin.desktop.in \ 40 | $(NULL) 41 | 42 | plugin_DATA = $(plugin_in_files:.mate-settings-plugin.desktop.in=.mate-settings-plugin) 43 | 44 | EXTRA_DIST = \ 45 | $(plugin_in_files) \ 46 | $(NULL) 47 | 48 | CLEANFILES = \ 49 | $(plugin_DATA) \ 50 | $(NULL) 51 | 52 | DISTCLEANFILES = \ 53 | $(plugin_DATA) \ 54 | $(NULL) 55 | 56 | $(plugin_DATA): $(plugin_in_files) 57 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ 58 | 59 | -include $(top_srcdir)/git.mk 60 | -------------------------------------------------------------------------------- /plugins/keybindings/dconf-util.h: -------------------------------------------------------------------------------- 1 | /* 2 | * dconf-util.h: helper API for dconf 3 | * 4 | * Copyright (C) 2012 Stefano Karapetsas 5 | * Copyright (C) 2012-2021 MATE Developers 6 | * 7 | * This program is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU General Public License as 9 | * published by the Free Software Foundation; either version 2 of the 10 | * License, or (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, but 13 | * WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 20 | * 02111-1307, USA. 21 | * 22 | * Authors: 23 | * Stefano Karapetsas 24 | * Vincent Untz 25 | */ 26 | 27 | #ifndef __DCONF_UTIL_H__ 28 | #define __DCONF_UTIL_H__ 29 | 30 | #include 31 | 32 | G_BEGIN_DECLS 33 | 34 | gboolean dconf_util_write_sync (const gchar *key, 35 | GVariant *value, 36 | GError **error); 37 | 38 | gboolean dconf_util_recursive_reset (const gchar *dir, 39 | GError **error); 40 | 41 | gchar **dconf_util_list_subdirs (const gchar *dir, 42 | gboolean remove_trailing_slash); 43 | 44 | G_END_DECLS 45 | 46 | #endif /* __DCONF_UTIL_H__ */ 47 | -------------------------------------------------------------------------------- /plugins/keybindings/keybindings.mate-settings-plugin.desktop.in: -------------------------------------------------------------------------------- 1 | [MATE Settings Plugin] 2 | Module=keybindings 3 | IAge=0 4 | Name=Keybindings 5 | Description=Keybindings plugin 6 | Authors=AUTHOR 7 | Copyright=Copyright © 2007 AUTHOR 8 | Website= 9 | -------------------------------------------------------------------------------- /plugins/keybindings/msd-keybindings-manager.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_KEYBINDINGS_MANAGER_H 23 | #define __MSD_KEYBINDINGS_MANAGER_H 24 | 25 | #include 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | #define MSD_TYPE_KEYBINDINGS_MANAGER (msd_keybindings_manager_get_type ()) 32 | #define MSD_KEYBINDINGS_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_KEYBINDINGS_MANAGER, MsdKeybindingsManager)) 33 | #define MSD_KEYBINDINGS_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_KEYBINDINGS_MANAGER, MsdKeybindingsManagerClass)) 34 | #define MSD_IS_KEYBINDINGS_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_KEYBINDINGS_MANAGER)) 35 | #define MSD_IS_KEYBINDINGS_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_KEYBINDINGS_MANAGER)) 36 | #define MSD_KEYBINDINGS_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_KEYBINDINGS_MANAGER, MsdKeybindingsManagerClass)) 37 | 38 | typedef struct MsdKeybindingsManagerPrivate MsdKeybindingsManagerPrivate; 39 | 40 | typedef struct 41 | { 42 | GObject parent; 43 | MsdKeybindingsManagerPrivate *priv; 44 | } MsdKeybindingsManager; 45 | 46 | typedef struct 47 | { 48 | GObjectClass parent_class; 49 | } MsdKeybindingsManagerClass; 50 | 51 | GType msd_keybindings_manager_get_type (void); 52 | 53 | MsdKeybindingsManager * msd_keybindings_manager_new (void); 54 | gboolean msd_keybindings_manager_start (MsdKeybindingsManager *manager, 55 | GError **error); 56 | void msd_keybindings_manager_stop (MsdKeybindingsManager *manager); 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | 62 | #endif /* __MSD_KEYBINDINGS_MANAGER_H */ 63 | -------------------------------------------------------------------------------- /plugins/keybindings/msd-keybindings-plugin.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_KEYBINDINGS_PLUGIN_H__ 23 | #define __MSD_KEYBINDINGS_PLUGIN_H__ 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | #include "mate-settings-plugin.h" 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | #define MSD_TYPE_KEYBINDINGS_PLUGIN (msd_keybindings_plugin_get_type ()) 36 | #define MSD_KEYBINDINGS_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_KEYBINDINGS_PLUGIN, MsdKeybindingsPlugin)) 37 | #define MSD_KEYBINDINGS_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_KEYBINDINGS_PLUGIN, MsdKeybindingsPluginClass)) 38 | #define MSD_IS_KEYBINDINGS_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_KEYBINDINGS_PLUGIN)) 39 | #define MSD_IS_KEYBINDINGS_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_KEYBINDINGS_PLUGIN)) 40 | #define MSD_KEYBINDINGS_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_KEYBINDINGS_PLUGIN, MsdKeybindingsPluginClass)) 41 | 42 | typedef struct MsdKeybindingsPluginPrivate MsdKeybindingsPluginPrivate; 43 | 44 | typedef struct 45 | { 46 | MateSettingsPlugin parent; 47 | MsdKeybindingsPluginPrivate *priv; 48 | } MsdKeybindingsPlugin; 49 | 50 | typedef struct 51 | { 52 | MateSettingsPluginClass parent_class; 53 | } MsdKeybindingsPluginClass; 54 | 55 | GType msd_keybindings_plugin_get_type (void) G_GNUC_CONST; 56 | 57 | /* All the plugins must implement this function */ 58 | G_MODULE_EXPORT GType register_mate_settings_plugin (GTypeModule *module); 59 | 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | 64 | #endif /* __MSD_KEYBINDINGS_PLUGIN_H__ */ 65 | -------------------------------------------------------------------------------- /plugins/keyboard/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | plugin_LTLIBRARIES = \ 4 | libkeyboard.la \ 5 | $(NULL) 6 | 7 | themedir = $(pkgdatadir)/icons/hicolor 8 | size = 64x64 9 | context = devices 10 | 11 | iconsdir = $(themedir)/$(size)/$(context) 12 | icons_DATA = \ 13 | kbd-capslock-off.png kbd-numlock-off.png kbd-scrolllock-off.png \ 14 | kbd-capslock-on.png kbd-numlock-on.png kbd-scrolllock-on.png 15 | 16 | libkeyboard_la_SOURCES = \ 17 | msd-keyboard-plugin.h \ 18 | msd-keyboard-plugin.c \ 19 | msd-keyboard-manager.h \ 20 | msd-keyboard-manager.c \ 21 | msd-keyboard-xkb.h \ 22 | msd-keyboard-xkb.c \ 23 | delayed-dialog.h \ 24 | delayed-dialog.c \ 25 | $(NULL) 26 | 27 | libkeyboard_la_CPPFLAGS = \ 28 | -I$(top_srcdir)/mate-settings-daemon \ 29 | -DDATADIR=\""$(pkgdatadir)"\" \ 30 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 31 | $(AM_CPPFLAGS) 32 | 33 | libkeyboard_la_CFLAGS = \ 34 | $(SETTINGS_PLUGIN_CFLAGS) \ 35 | $(LIBMATEKBDUI_CFLAGS) \ 36 | $(MATE_DESKTOP_CFLAGS) \ 37 | $(AM_CFLAGS) \ 38 | $(WARN_CFLAGS) \ 39 | $(NULL) 40 | 41 | libkeyboard_la_LDFLAGS = \ 42 | $(MSD_PLUGIN_LDFLAGS) \ 43 | $(NULL) 44 | 45 | libkeyboard_la_LIBADD = \ 46 | $(SETTINGS_PLUGIN_LIBS) \ 47 | $(LIBMATEKBDUI_LIBS) \ 48 | $(MATE_DESKTOP_LIBS) \ 49 | $(X11_LIBS) \ 50 | $(XINPUT_LIBS) \ 51 | $(NULL) 52 | 53 | plugin_in_files = \ 54 | keyboard.mate-settings-plugin.desktop.in \ 55 | $(NULL) 56 | 57 | plugin_DATA = $(plugin_in_files:.mate-settings-plugin.desktop.in=.mate-settings-plugin) 58 | 59 | EXTRA_DIST = \ 60 | $(icons_DATA) \ 61 | $(plugin_in_files) \ 62 | $(ui_DATA) \ 63 | $(NULL) 64 | 65 | CLEANFILES = \ 66 | $(plugin_DATA) \ 67 | $(NULL) 68 | 69 | DISTCLEANFILES = \ 70 | $(plugin_DATA) \ 71 | $(NULL) 72 | 73 | $(plugin_DATA): $(plugin_in_files) 74 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ 75 | 76 | -include $(top_srcdir)/git.mk 77 | -------------------------------------------------------------------------------- /plugins/keyboard/delayed-dialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006 Novell, Inc. 3 | * Copyright (C) 2012-2021 MATE Developers 4 | * 5 | * This program is free software; you can redistribute it and/or 6 | * modify it under the terms of the GNU General Public License as 7 | * published by the Free Software Foundation; either version 2, or (at 8 | * your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, but 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | * General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program; if not, write to the Free Software 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 18 | * 02110-1301, USA. 19 | */ 20 | 21 | #ifndef __DELAYED_DIALOG_H 22 | #define __DELAYED_DIALOG_H 23 | 24 | #include 25 | 26 | #ifdef __cplusplus 27 | extern "C" { 28 | #endif 29 | 30 | void msd_delayed_show_dialog (GtkWidget *dialog); 31 | 32 | #ifdef __cplusplus 33 | } 34 | #endif 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /plugins/keyboard/kbd-capslock-off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mate-desktop/mate-settings-daemon/e57d532ac69fc3f6f5a34d9ce648bbdfb6a81185/plugins/keyboard/kbd-capslock-off.png -------------------------------------------------------------------------------- /plugins/keyboard/kbd-capslock-on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mate-desktop/mate-settings-daemon/e57d532ac69fc3f6f5a34d9ce648bbdfb6a81185/plugins/keyboard/kbd-capslock-on.png -------------------------------------------------------------------------------- /plugins/keyboard/kbd-numlock-off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mate-desktop/mate-settings-daemon/e57d532ac69fc3f6f5a34d9ce648bbdfb6a81185/plugins/keyboard/kbd-numlock-off.png -------------------------------------------------------------------------------- /plugins/keyboard/kbd-numlock-on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mate-desktop/mate-settings-daemon/e57d532ac69fc3f6f5a34d9ce648bbdfb6a81185/plugins/keyboard/kbd-numlock-on.png -------------------------------------------------------------------------------- /plugins/keyboard/kbd-scrolllock-off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mate-desktop/mate-settings-daemon/e57d532ac69fc3f6f5a34d9ce648bbdfb6a81185/plugins/keyboard/kbd-scrolllock-off.png -------------------------------------------------------------------------------- /plugins/keyboard/kbd-scrolllock-on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mate-desktop/mate-settings-daemon/e57d532ac69fc3f6f5a34d9ce648bbdfb6a81185/plugins/keyboard/kbd-scrolllock-on.png -------------------------------------------------------------------------------- /plugins/keyboard/keyboard.mate-settings-plugin.desktop.in: -------------------------------------------------------------------------------- 1 | [MATE Settings Plugin] 2 | Module=keyboard 3 | IAge=0 4 | Name=Keyboard 5 | Description=Keyboard plugin 6 | Authors= 7 | Copyright=Copyright © 2007 8 | Website= 9 | -------------------------------------------------------------------------------- /plugins/keyboard/msd-keyboard-manager.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_KEYBOARD_MANAGER_H 23 | #define __MSD_KEYBOARD_MANAGER_H 24 | 25 | #include 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | #define MSD_TYPE_KEYBOARD_MANAGER (msd_keyboard_manager_get_type ()) 32 | #define MSD_KEYBOARD_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_KEYBOARD_MANAGER, MsdKeyboardManager)) 33 | #define MSD_KEYBOARD_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_KEYBOARD_MANAGER, MsdKeyboardManagerClass)) 34 | #define MSD_IS_KEYBOARD_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_KEYBOARD_MANAGER)) 35 | #define MSD_IS_KEYBOARD_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_KEYBOARD_MANAGER)) 36 | #define MSD_KEYBOARD_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_KEYBOARD_MANAGER, MsdKeyboardManagerClass)) 37 | 38 | typedef struct MsdKeyboardManagerPrivate MsdKeyboardManagerPrivate; 39 | 40 | typedef struct 41 | { 42 | GObject parent; 43 | MsdKeyboardManagerPrivate *priv; 44 | } MsdKeyboardManager; 45 | 46 | typedef struct 47 | { 48 | GObjectClass parent_class; 49 | } MsdKeyboardManagerClass; 50 | 51 | GType msd_keyboard_manager_get_type (void); 52 | 53 | MsdKeyboardManager * msd_keyboard_manager_new (void); 54 | gboolean msd_keyboard_manager_start (MsdKeyboardManager *manager, 55 | GError **error); 56 | void msd_keyboard_manager_stop (MsdKeyboardManager *manager); 57 | void msd_keyboard_manager_apply_settings (MsdKeyboardManager *manager); 58 | 59 | #ifdef __cplusplus 60 | } 61 | #endif 62 | 63 | #endif /* __MSD_KEYBOARD_MANAGER_H */ 64 | -------------------------------------------------------------------------------- /plugins/keyboard/msd-keyboard-plugin.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_KEYBOARD_PLUGIN_H__ 23 | #define __MSD_KEYBOARD_PLUGIN_H__ 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | #include "mate-settings-plugin.h" 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | #define MSD_TYPE_KEYBOARD_PLUGIN (msd_keyboard_plugin_get_type ()) 36 | #define MSD_KEYBOARD_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_KEYBOARD_PLUGIN, MsdKeyboardPlugin)) 37 | #define MSD_KEYBOARD_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_KEYBOARD_PLUGIN, MsdKeyboardPluginClass)) 38 | #define MSD_IS_KEYBOARD_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_KEYBOARD_PLUGIN)) 39 | #define MSD_IS_KEYBOARD_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_KEYBOARD_PLUGIN)) 40 | #define MSD_KEYBOARD_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_KEYBOARD_PLUGIN, MsdKeyboardPluginClass)) 41 | 42 | typedef struct MsdKeyboardPluginPrivate MsdKeyboardPluginPrivate; 43 | 44 | typedef struct 45 | { 46 | MateSettingsPlugin parent; 47 | MsdKeyboardPluginPrivate *priv; 48 | } MsdKeyboardPlugin; 49 | 50 | typedef struct 51 | { 52 | MateSettingsPluginClass parent_class; 53 | } MsdKeyboardPluginClass; 54 | 55 | GType msd_keyboard_plugin_get_type (void) G_GNUC_CONST; 56 | 57 | /* All the plugins must implement this function */ 58 | G_MODULE_EXPORT GType register_mate_settings_plugin (GTypeModule *module); 59 | 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | 64 | #endif /* __MSD_KEYBOARD_PLUGIN_H__ */ 65 | -------------------------------------------------------------------------------- /plugins/keyboard/msd-keyboard-xkb.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * mate-settings-keyboard-xkb.h 3 | * 4 | * Copyright (C) 2001 Udaltsoft 5 | * 6 | * Written by Sergey V. Oudaltsov 7 | * Copyright (C) 2012-2021 MATE Developers 8 | * 9 | * This program is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License as published by 11 | * the Free Software Foundation; either version 2, or (at your option) 12 | * any later version. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU General Public License 20 | * along with this program; if not, write to the Free Software 21 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 22 | * 02110-1301, USA. 23 | */ 24 | 25 | #ifndef __MSD_KEYBOARD_XKB_H 26 | #define __MSD_KEYBOARD_XKB_H 27 | 28 | #include 29 | #include "msd-keyboard-manager.h" 30 | 31 | void msd_keyboard_xkb_init(MsdKeyboardManager* manager); 32 | void msd_keyboard_xkb_shutdown(void); 33 | 34 | typedef void (*PostActivationCallback) (void* userData); 35 | 36 | void msd_keyboard_xkb_set_post_activation_callback(PostActivationCallback fun, void* userData); 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /plugins/media-keys/acme.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | True 9 | 6 10 | 11 | 12 | True 13 | audio-volume-high 14 | 6 15 | 16 | 17 | 0 18 | 19 | 20 | 21 | 22 | True 23 | 24 | 25 | True 26 | True 27 | 1 28 | 29 | 30 | 31 | 32 | True 33 | 34 | 35 | False 36 | False 37 | 2 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /plugins/media-keys/media-keys.mate-settings-plugin.desktop.in: -------------------------------------------------------------------------------- 1 | [MATE Settings Plugin] 2 | Module=media-keys 3 | IAge=0 4 | Name=Media keys 5 | Description=Media keys plugin 6 | Authors= 7 | Copyright=Copyright © 2007 8 | Website= 9 | -------------------------------------------------------------------------------- /plugins/media-keys/msd-marshal.list: -------------------------------------------------------------------------------- 1 | VOID:STRING,STRING 2 | -------------------------------------------------------------------------------- /plugins/media-keys/msd-media-keys-plugin.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2014 Michal Ratajsky 5 | * Copyright (C) 2012-2021 MATE Developers 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2, or (at your option) 10 | * any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 20 | * 21 | */ 22 | 23 | #ifndef __MSD_MEDIA_KEYS_PLUGIN_H__ 24 | #define __MSD_MEDIA_KEYS_PLUGIN_H__ 25 | 26 | #include 27 | #include 28 | #include 29 | 30 | #include "mate-settings-plugin.h" 31 | 32 | G_BEGIN_DECLS 33 | 34 | #define MSD_TYPE_MEDIA_KEYS_PLUGIN (msd_media_keys_plugin_get_type ()) 35 | #define MSD_MEDIA_KEYS_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_MEDIA_KEYS_PLUGIN, MsdMediaKeysPlugin)) 36 | #define MSD_MEDIA_KEYS_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_MEDIA_KEYS_PLUGIN, MsdMediaKeysPluginClass)) 37 | #define MSD_IS_MEDIA_KEYS_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_MEDIA_KEYS_PLUGIN)) 38 | #define MSD_IS_MEDIA_KEYS_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_MEDIA_KEYS_PLUGIN)) 39 | #define MSD_MEDIA_KEYS_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_MEDIA_KEYS_PLUGIN, MsdMediaKeysPluginClass)) 40 | 41 | typedef struct _MsdMediaKeysPlugin MsdMediaKeysPlugin; 42 | typedef struct _MsdMediaKeysPluginClass MsdMediaKeysPluginClass; 43 | typedef struct _MsdMediaKeysPluginPrivate MsdMediaKeysPluginPrivate; 44 | 45 | struct _MsdMediaKeysPlugin 46 | { 47 | MateSettingsPlugin parent; 48 | MsdMediaKeysPluginPrivate *priv; 49 | }; 50 | 51 | struct _MsdMediaKeysPluginClass 52 | { 53 | MateSettingsPluginClass parent_class; 54 | }; 55 | 56 | GType msd_media_keys_plugin_get_type (void) G_GNUC_CONST; 57 | 58 | /* All the plugins must implement this function */ 59 | G_MODULE_EXPORT GType register_mate_settings_plugin (GTypeModule *module); 60 | 61 | G_END_DECLS 62 | 63 | #endif /* __MSD_MEDIA_KEYS_PLUGIN_H__ */ 64 | -------------------------------------------------------------------------------- /plugins/media-keys/test-media-keys.c: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU General Public License as 8 | * published by the Free Software Foundation; either version 2 of the 9 | * License, or (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, but 12 | * WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 19 | * 02110-1301, USA. 20 | * 21 | * 22 | */ 23 | 24 | #include "config.h" 25 | 26 | #include 27 | 28 | #include 29 | #include 30 | 31 | #include "msd-media-keys-manager.h" 32 | 33 | static MsdMediaKeysManager *manager = NULL; 34 | 35 | int 36 | main (int argc, 37 | char **argv) 38 | { 39 | GError *error = NULL; 40 | 41 | #ifdef ENABLE_NLS 42 | bindtextdomain (GETTEXT_PACKAGE, MATE_SETTINGS_LOCALEDIR); 43 | # ifdef HAVE_BIND_TEXTDOMAIN_CODESET 44 | bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); 45 | # endif 46 | textdomain (GETTEXT_PACKAGE); 47 | #endif 48 | 49 | if (! gtk_init_with_args (&argc, &argv, NULL, NULL, NULL, &error)) { 50 | fprintf (stderr, "%s", error->message); 51 | g_error_free (error); 52 | exit (1); 53 | } 54 | 55 | manager = msd_media_keys_manager_new (); 56 | 57 | error = NULL; 58 | msd_media_keys_manager_start (manager, &error); 59 | 60 | gtk_main (); 61 | 62 | return 0; 63 | } 64 | -------------------------------------------------------------------------------- /plugins/mouse/Makefile.am: -------------------------------------------------------------------------------- 1 | plugin_LTLIBRARIES = libmouse.la 2 | 3 | libmouse_la_SOURCES = \ 4 | msd-mouse-plugin.h \ 5 | msd-mouse-plugin.c \ 6 | msd-mouse-manager.h \ 7 | msd-mouse-manager.c 8 | 9 | libmouse_la_CPPFLAGS = \ 10 | -I$(top_srcdir)/mate-settings-daemon \ 11 | -I$(top_srcdir)/plugins/common/ \ 12 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 13 | -DLIBEXECDIR=\""$(libexecdir)"\" \ 14 | $(AM_CPPFLAGS) 15 | 16 | libmouse_la_CFLAGS = \ 17 | $(SETTINGS_PLUGIN_CFLAGS) \ 18 | $(AM_CFLAGS) \ 19 | $(WARN_CFLAGS) 20 | 21 | libmouse_la_LDFLAGS = \ 22 | $(MSD_PLUGIN_LDFLAGS) 23 | 24 | libmouse_la_LIBADD = \ 25 | $(top_builddir)/plugins/common/libcommon.la \ 26 | $(SETTINGS_PLUGIN_LIBS) \ 27 | $(X11_LIBS) \ 28 | $(XINPUT_LIBS) 29 | 30 | plugin_in_files = mouse.mate-settings-plugin.desktop.in 31 | 32 | plugin_DATA = $(plugin_in_files:.mate-settings-plugin.desktop.in=.mate-settings-plugin) 33 | 34 | libexec_PROGRAMS = msd-locate-pointer 35 | 36 | msd_locate_pointer_SOURCES = \ 37 | msd-locate-pointer.h \ 38 | msd-locate-pointer.c \ 39 | msd-timeline.h \ 40 | msd-timeline.c 41 | 42 | msd_locate_pointer_CFLAGS = \ 43 | $(SETTINGS_PLUGIN_CFLAGS) \ 44 | $(AM_CFLAGS) \ 45 | $(WARN_CFLAGS) 46 | 47 | msd_locate_pointer_LDADD = \ 48 | $(SETTINGS_PLUGIN_LIBS) \ 49 | $(X11_LIBS) \ 50 | -lm 51 | 52 | EXTRA_DIST = $(plugin_in_files) 53 | CLEANFILES = $(plugin_DATA) 54 | DISTCLEANFILES = $(plugin_DATA) 55 | 56 | $(plugin_DATA): $(plugin_in_files) 57 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ 58 | 59 | -include $(top_srcdir)/git.mk 60 | -------------------------------------------------------------------------------- /plugins/mouse/mouse.mate-settings-plugin.desktop.in: -------------------------------------------------------------------------------- 1 | [MATE Settings Plugin] 2 | Module=mouse 3 | IAge=0 4 | Name=Mouse 5 | Description=Mouse plugin 6 | Authors= 7 | Copyright=Copyright © 2007 8 | Website= 9 | -------------------------------------------------------------------------------- /plugins/mouse/msd-locate-pointer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mate-desktop/mate-settings-daemon/e57d532ac69fc3f6f5a34d9ce648bbdfb6a81185/plugins/mouse/msd-locate-pointer.h -------------------------------------------------------------------------------- /plugins/mouse/msd-mouse-manager.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_MOUSE_MANAGER_H 23 | #define __MSD_MOUSE_MANAGER_H 24 | 25 | #include 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | #define MSD_TYPE_MOUSE_MANAGER (msd_mouse_manager_get_type ()) 32 | #define MSD_MOUSE_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_MOUSE_MANAGER, MsdMouseManager)) 33 | #define MSD_MOUSE_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_MOUSE_MANAGER, MsdMouseManagerClass)) 34 | #define MSD_IS_MOUSE_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_MOUSE_MANAGER)) 35 | #define MSD_IS_MOUSE_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_MOUSE_MANAGER)) 36 | #define MSD_MOUSE_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_MOUSE_MANAGER, MsdMouseManagerClass)) 37 | 38 | typedef struct MsdMouseManagerPrivate MsdMouseManagerPrivate; 39 | 40 | typedef struct 41 | { 42 | GObject parent; 43 | MsdMouseManagerPrivate *priv; 44 | } MsdMouseManager; 45 | 46 | typedef struct 47 | { 48 | GObjectClass parent_class; 49 | } MsdMouseManagerClass; 50 | 51 | GType msd_mouse_manager_get_type (void); 52 | 53 | MsdMouseManager * msd_mouse_manager_new (void); 54 | gboolean msd_mouse_manager_start (MsdMouseManager *manager, 55 | GError **error); 56 | void msd_mouse_manager_stop (MsdMouseManager *manager); 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | 62 | #endif /* __MSD_MOUSE_MANAGER_H */ 63 | -------------------------------------------------------------------------------- /plugins/mouse/msd-mouse-plugin.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_MOUSE_PLUGIN_H__ 23 | #define __MSD_MOUSE_PLUGIN_H__ 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | #include "mate-settings-plugin.h" 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | #define MSD_TYPE_MOUSE_PLUGIN (msd_mouse_plugin_get_type ()) 36 | #define MSD_MOUSE_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_MOUSE_PLUGIN, MsdMousePlugin)) 37 | #define MSD_MOUSE_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_MOUSE_PLUGIN, MsdMousePluginClass)) 38 | #define MSD_IS_MOUSE_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_MOUSE_PLUGIN)) 39 | #define MSD_IS_MOUSE_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_MOUSE_PLUGIN)) 40 | #define MSD_MOUSE_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_MOUSE_PLUGIN, MsdMousePluginClass)) 41 | 42 | typedef struct MsdMousePluginPrivate MsdMousePluginPrivate; 43 | 44 | typedef struct 45 | { 46 | MateSettingsPlugin parent; 47 | MsdMousePluginPrivate *priv; 48 | } MsdMousePlugin; 49 | 50 | typedef struct 51 | { 52 | MateSettingsPluginClass parent_class; 53 | } MsdMousePluginClass; 54 | 55 | GType msd_mouse_plugin_get_type (void) G_GNUC_CONST; 56 | 57 | /* All the plugins must implement this function */ 58 | G_MODULE_EXPORT GType register_mate_settings_plugin (GTypeModule *module); 59 | 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | 64 | #endif /* __MSD_MOUSE_PLUGIN_H__ */ 65 | -------------------------------------------------------------------------------- /plugins/mpris/Makefile.am: -------------------------------------------------------------------------------- 1 | plugin_LTLIBRARIES = \ 2 | libmpris.la 3 | 4 | libmpris_la_SOURCES = \ 5 | bus-watch-namespace.c \ 6 | bus-watch-namespace.h \ 7 | msd-mpris-manager.c \ 8 | msd-mpris-manager.h \ 9 | msd-mpris-plugin.c \ 10 | msd-mpris-plugin.h 11 | 12 | libmpris_la_CPPFLAGS = \ 13 | -I$(top_srcdir)/mate-settings-daemon \ 14 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 15 | $(AM_CPPFLAGS) 16 | 17 | libmpris_la_CFLAGS = \ 18 | $(SETTINGS_PLUGIN_CFLAGS) \ 19 | $(AM_CFLAGS) \ 20 | $(WARN_CFLAGS) 21 | 22 | libmpris_la_LDFLAGS = \ 23 | $(MSD_PLUGIN_LDFLAGS) 24 | 25 | libmpris_la_LIBADD = \ 26 | $(SETTINGS_PLUGIN_LIBS) 27 | 28 | plugin_in_files = \ 29 | mpris.mate-settings-plugin.desktop.in 30 | 31 | plugin_DATA = $(plugin_in_files:.mate-settings-plugin.desktop.in=.mate-settings-plugin) 32 | 33 | EXTRA_DIST = \ 34 | $(plugin_in_files) 35 | 36 | CLEANFILES = \ 37 | $(plugin_DATA) 38 | 39 | DISTCLEANFILES = \ 40 | $(plugin_DATA) 41 | 42 | $(plugin_DATA): $(plugin_in_files) 43 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ 44 | 45 | -include $(top_srcdir)/git.mk 46 | -------------------------------------------------------------------------------- /plugins/mpris/bus-watch-namespace.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 Canonical Ltd. 3 | * Copyright (C) 2012-2021 MATE Developers 4 | * 5 | * This program is free software; you can redistribute it and/or modify 6 | * it under the terms of the GNU Lesser General Public License as 7 | * published by the Free Software Foundation; either version 2 of the 8 | * License, or (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, but 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | * Lesser General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU Lesser General Public License 16 | * along with this program. If not, see . 17 | * 18 | * Author: Lars Uebernickel 19 | */ 20 | 21 | #ifndef __BUS_WATCH_NAMESPACE_H__ 22 | #define __BUS_WATCH_NAMESPACE_H__ 23 | 24 | #include 25 | 26 | guint bus_watch_namespace (GBusType bus_type, 27 | const gchar *name_space, 28 | GBusNameAppearedCallback appeared_handler, 29 | GBusNameVanishedCallback vanished_handler, 30 | gpointer user_data, 31 | GDestroyNotify user_data_destroy); 32 | 33 | void bus_unwatch_namespace (guint id); 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /plugins/mpris/mpris.mate-settings-plugin.desktop.in: -------------------------------------------------------------------------------- 1 | [MATE Settings Plugin] 2 | Module=mpris 3 | IAge=0 4 | Name=Mpris 5 | Description=Mpris plugin 6 | Authors=Stefano Karapetsas 7 | Copyright=Copyright © 2013 Stefano Karapetsas 8 | Website= 9 | -------------------------------------------------------------------------------- /plugins/mpris/msd-mpris-manager.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2013 Stefano Karapetsas 4 | * 2007 William Jon McCann 5 | * Copyright (C) 2012-2021 MATE Developers 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 20 | * 21 | * Authors: 22 | * Stefano Karapetsas 23 | */ 24 | 25 | #ifndef __MSD_MPRIS_MANAGER_H 26 | #define __MSD_MPRIS_MANAGER_H 27 | 28 | #include 29 | 30 | #ifdef __cplusplus 31 | extern "C" { 32 | #endif 33 | 34 | #define MSD_TYPE_MPRIS_MANAGER (msd_mpris_manager_get_type ()) 35 | #define MSD_MPRIS_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_MPRIS_MANAGER, MsdMprisManager)) 36 | #define MSD_MPRIS_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_MPRIS_MANAGER, MsdMprisManagerClass)) 37 | #define MSD_IS_MPRIS_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_MPRIS_MANAGER)) 38 | #define MSD_IS_MPRIS_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_MPRIS_MANAGER)) 39 | #define MSD_MPRIS_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_MPRIS_MANAGER, MsdMprisManagerClass)) 40 | 41 | typedef struct MsdMprisManagerPrivate MsdMprisManagerPrivate; 42 | 43 | typedef struct 44 | { 45 | GObject parent; 46 | MsdMprisManagerPrivate *priv; 47 | } MsdMprisManager; 48 | 49 | typedef struct 50 | { 51 | GObjectClass parent_class; 52 | } MsdMprisManagerClass; 53 | 54 | GType msd_mpris_manager_get_type (void); 55 | 56 | MsdMprisManager * msd_mpris_manager_new (void); 57 | gboolean msd_mpris_manager_start (MsdMprisManager *manager, 58 | GError **error); 59 | void msd_mpris_manager_stop (MsdMprisManager *manager); 60 | 61 | #ifdef __cplusplus 62 | } 63 | #endif 64 | 65 | #endif /* __MSD_MPRIS_MANAGER_H */ 66 | -------------------------------------------------------------------------------- /plugins/mpris/msd-mpris-plugin.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | * Authors: 21 | * Stefano Karapetsas 22 | */ 23 | 24 | #ifndef __MSD_MPRIS_PLUGIN_H__ 25 | #define __MSD_MPRIS_PLUGIN_H__ 26 | 27 | #include 28 | #include 29 | #include 30 | 31 | #include "mate-settings-plugin.h" 32 | 33 | #ifdef __cplusplus 34 | extern "C" { 35 | #endif 36 | 37 | #define MSD_TYPE_MPRIS_PLUGIN (msd_mpris_plugin_get_type ()) 38 | #define MSD_MPRIS_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_MPRIS_PLUGIN, MsdMprisPlugin)) 39 | #define MSD_MPRIS_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_MPRIS_PLUGIN, MsdMprisPluginClass)) 40 | #define MSD_IS_MPRIS_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_MPRIS_PLUGIN)) 41 | #define MSD_IS_MPRIS_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_MPRIS_PLUGIN)) 42 | #define MSD_MPRIS_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_MPRIS_PLUGIN, MsdMprisPluginClass)) 43 | 44 | typedef struct MsdMprisPluginPrivate MsdMprisPluginPrivate; 45 | 46 | typedef struct 47 | { 48 | MateSettingsPlugin parent; 49 | MsdMprisPluginPrivate *priv; 50 | } MsdMprisPlugin; 51 | 52 | typedef struct 53 | { 54 | MateSettingsPluginClass parent_class; 55 | } MsdMprisPluginClass; 56 | 57 | GType msd_mpris_plugin_get_type (void) G_GNUC_CONST; 58 | 59 | /* All the plugins must implement this function */ 60 | G_MODULE_EXPORT GType register_mate_settings_plugin (GTypeModule *module); 61 | 62 | #ifdef __cplusplus 63 | } 64 | #endif 65 | 66 | #endif /* __MSD_MPRIS_PLUGIN_H__ */ 67 | -------------------------------------------------------------------------------- /plugins/rfkill/61-mate-settings-daemon-rfkill.rules: -------------------------------------------------------------------------------- 1 | # Get access to /dev/rfkill for users 2 | # See https://bugzilla.redhat.com/show_bug.cgi?id=514798 3 | # 4 | # Simplified by Kay Sievers 5 | # https://bugzilla.redhat.com/show_bug.cgi?id=733326 6 | # See also https://bugzilla.gnome.org/show_bug.cgi?id=711373 7 | 8 | KERNEL=="rfkill", SUBSYSTEM=="misc", TAG+="uaccess" 9 | -------------------------------------------------------------------------------- /plugins/rfkill/Makefile.am: -------------------------------------------------------------------------------- 1 | plugin_LTLIBRARIES = librfkill.la 2 | 3 | librfkill_la_SOURCES = \ 4 | msd-rfkill-plugin.c \ 5 | msd-rfkill-plugin.h \ 6 | msd-rfkill-manager.c \ 7 | msd-rfkill-manager.h \ 8 | rfkill-glib.c \ 9 | rfkill-glib.h \ 10 | rfkill.h 11 | 12 | librfkill_la_CPPFLAGS = \ 13 | -I$(top_srcdir)/mate-settings-daemon \ 14 | -I$(top_srcdir)/data/ \ 15 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 16 | -DLIBEXECDIR=\""$(libexecdir)"\" \ 17 | $(AM_CPPFLAGS) 18 | 19 | librfkill_la_CFLAGS = \ 20 | $(PLUGIN_CFLAGS) \ 21 | $(RFKILL_CFLAGS) \ 22 | $(SETTINGS_PLUGIN_CFLAGS) \ 23 | $(AM_CFLAGS) \ 24 | $(WARN_CFLAGS) 25 | 26 | librfkill_la_LDFLAGS = \ 27 | $(MSD_PLUGIN_LDFLAGS) 28 | 29 | librfkill_la_LIBADD = \ 30 | $(RFKILL_LIBS) \ 31 | $(SETTINGS_PLUGIN_LIBS) 32 | 33 | plugin_in_files = rfkill.mate-settings-plugin.desktop.in 34 | 35 | plugin_DATA = $(plugin_in_files:.mate-settings-plugin.desktop.in=.mate-settings-plugin) 36 | 37 | $(plugin_DATA): $(plugin_in_files) 38 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ 39 | 40 | udevrulesdir = $(prefix)/lib/udev/rules.d 41 | udevrules_DATA = 61-mate-settings-daemon-rfkill.rules 42 | 43 | EXTRA_DIST = $(plugin_in_files) $(udevrules_DATA) 44 | CLEANFILES = $(plugin_DATA) 45 | DISTCLEANFILES = $(plugin_DATA) 46 | 47 | -include $(top_srcdir)/git.mk 48 | -------------------------------------------------------------------------------- /plugins/rfkill/msd-rfkill-manager.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2010 Red Hat, Inc. 5 | * Copyright (C) 2012-2021 MATE Developers 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, 20 | * USA. 21 | */ 22 | 23 | #ifndef __MSD_RFKILL_MANAGER_H 24 | #define __MSD_RFKILL_MANAGER_H 25 | 26 | #include 27 | 28 | G_BEGIN_DECLS 29 | 30 | #define MSD_TYPE_RFKILL_MANAGER (msd_rfkill_manager_get_type ()) 31 | #define MSD_RFKILL_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_RFKILL_MANAGER, MsdRfkillManager)) 32 | #define MSD_RFKILL_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_RFKILL_MANAGER, MsdRfkillManagerClass)) 33 | #define MSD_IS_RFKILL_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_RFKILL_MANAGER)) 34 | #define MSD_IS_RFKILL_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_RFKILL_MANAGER)) 35 | #define MSD_RFKILL_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_RFKILL_MANAGER, MsdRfkillManagerClass)) 36 | 37 | typedef struct MsdRfkillManagerPrivate MsdRfkillManagerPrivate; 38 | 39 | typedef struct 40 | { 41 | GObject parent; 42 | MsdRfkillManagerPrivate *priv; 43 | } MsdRfkillManager; 44 | 45 | typedef struct 46 | { 47 | GObjectClass parent_class; 48 | } MsdRfkillManagerClass; 49 | 50 | GType msd_rfkill_manager_get_type (void); 51 | 52 | MsdRfkillManager * msd_rfkill_manager_new (void); 53 | gboolean msd_rfkill_manager_start (MsdRfkillManager *manager, 54 | GError **error); 55 | void msd_rfkill_manager_stop (MsdRfkillManager *manager); 56 | 57 | G_END_DECLS 58 | 59 | #endif /* __MSD_RFKILL_MANAGER_H */ 60 | -------------------------------------------------------------------------------- /plugins/rfkill/msd-rfkill-plugin.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2014 Michal Ratajsky 5 | * Copyright (C) 2012-2021 MATE Developers 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2, or (at your option) 10 | * any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, 20 | * USA. 21 | */ 22 | 23 | #ifndef __MSD_RFKILL_PLUGIN_H__ 24 | #define __MSD_RFKILL_PLUGIN_H__ 25 | 26 | #include 27 | #include 28 | #include 29 | 30 | #include "mate-settings-plugin.h" 31 | 32 | G_BEGIN_DECLS 33 | 34 | #define MSD_TYPE_RFKILL_PLUGIN (msd_rfkill_plugin_get_type ()) 35 | #define MSD_RFKILL_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_RFKILL_PLUGIN, MsdRfkillPlugin)) 36 | #define MSD_RFKILL_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_RFKILL_PLUGIN, MsdRfkillPluginClass)) 37 | #define MSD_IS_RFKILL_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_RFKILL_PLUGIN)) 38 | #define MSD_IS_RFKILL_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_RFKILL_PLUGIN)) 39 | #define MSD_RFKILL_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_RFKILL_PLUGIN, MsdRfkillPluginClass)) 40 | 41 | typedef struct _MsdRfkillPlugin MsdRfkillPlugin; 42 | typedef struct _MsdRfkillPluginClass MsdRfkillPluginClass; 43 | typedef struct _MsdRfkillPluginPrivate MsdRfkillPluginPrivate; 44 | 45 | struct _MsdRfkillPlugin 46 | { 47 | MateSettingsPlugin parent; 48 | MsdRfkillPluginPrivate *priv; 49 | }; 50 | 51 | struct _MsdRfkillPluginClass 52 | { 53 | MateSettingsPluginClass parent_class; 54 | }; 55 | 56 | GType msd_rfkill_plugin_get_type (void) G_GNUC_CONST; 57 | 58 | /* All the plugins must implement this function */ 59 | G_MODULE_EXPORT GType register_mate_settings_plugin (GTypeModule *module); 60 | 61 | G_END_DECLS 62 | 63 | #endif /* __MSD_RFKILL_PLUGIN_H__ */ 64 | -------------------------------------------------------------------------------- /plugins/rfkill/rfkill.mate-settings-plugin.desktop.in: -------------------------------------------------------------------------------- 1 | [MATE Settings Plugin] 2 | Module=rfkill 3 | IAge=0 4 | # Default Priority 5 | # Priority=100 6 | Name=Rfkill 7 | Description=Rfkill plugin 8 | Authors=Bastien Nocera 9 | Copyright=Copyright © 2013 10 | Website= 11 | -------------------------------------------------------------------------------- /plugins/smartcard/Makefile.am: -------------------------------------------------------------------------------- 1 | plugin_LTLIBRARIES = \ 2 | libsmartcard.la 3 | 4 | libsmartcard_la_SOURCES = \ 5 | msd-smartcard-plugin.h \ 6 | msd-smartcard-plugin.c \ 7 | msd-smartcard.h \ 8 | msd-smartcard.c \ 9 | msd-smartcard-manager.h \ 10 | msd-smartcard-manager.c 11 | 12 | libsmartcard_la_CPPFLAGS = \ 13 | -I$(top_srcdir)/mate-settings-daemon \ 14 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 15 | -DSYSCONFDIR=\""$(sysconfdir)"\" \ 16 | -DLIBDIR=\""$(libdir)"\" \ 17 | -DMSD_SMARTCARD_MANAGER_NSS_DB=\""$(NSS_DATABASE)"\" \ 18 | $(AM_CPPFLAGS) 19 | 20 | libsmartcard_la_CFLAGS = \ 21 | $(SETTINGS_PLUGIN_CFLAGS) \ 22 | $(MATE_CFLAGS) \ 23 | $(NSS_CFLAGS) \ 24 | $(AM_CFLAGS) \ 25 | $(WARN_CFLAGS) 26 | 27 | libsmartcard_la_LDFLAGS = \ 28 | $(MSD_PLUGIN_LDFLAGS) 29 | 30 | libsmartcard_la_LIBADD = \ 31 | $(SETTINGS_PLUGIN_LIBS) \ 32 | $(NSS_LIBS) 33 | 34 | plugin_in_files = \ 35 | smartcard.mate-settings-plugin.desktop.in 36 | 37 | plugin_DATA = $(plugin_in_files:.mate-settings-plugin.desktop.in=.mate-settings-plugin) 38 | 39 | $(plugin_DATA): $(plugin_in_files) 40 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ 41 | 42 | EXTRA_DIST = \ 43 | $(plugin_in_files) 44 | 45 | CLEANFILES = \ 46 | $(plugin_DATA) 47 | 48 | DISTCLEANFILES = \ 49 | $(plugin_DATA) 50 | 51 | -include $(top_srcdir)/git.mk 52 | -------------------------------------------------------------------------------- /plugins/smartcard/msd-smartcard-plugin.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2010 Red Hat, Inc. 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_SMARTCARD_PLUGIN_H__ 23 | #define __MSD_SMARTCARD_PLUGIN_H__ 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | #include "mate-settings-plugin.h" 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | #define MSD_TYPE_SMARTCARD_PLUGIN (msd_smartcard_plugin_get_type ()) 36 | #define MSD_SMARTCARD_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_SMARTCARD_PLUGIN, MsdSmartcardPlugin)) 37 | #define MSD_SMARTCARD_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), MSD_TYPE_SMARTCARD_PLUGIN, MsdSmartcardPluginClass)) 38 | #define MSD_IS_SMARTCARD_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_SMARTCARD_PLUGIN)) 39 | #define MSD_IS_SMARTCARD_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_SMARTCARD_PLUGIN)) 40 | #define MSD_SMARTCARD_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_SMARTCARD_PLUGIN, MsdSmartcardPluginClass)) 41 | 42 | typedef struct MsdSmartcardPluginPrivate MsdSmartcardPluginPrivate; 43 | 44 | typedef struct 45 | { 46 | MateSettingsPlugin parent; 47 | MsdSmartcardPluginPrivate *priv; 48 | } MsdSmartcardPlugin; 49 | 50 | typedef struct 51 | { 52 | MateSettingsPluginClass parent_class; 53 | } MsdSmartcardPluginClass; 54 | 55 | GType msd_smartcard_plugin_get_type (void) G_GNUC_CONST; 56 | 57 | /* All the plugins must implement this function */ 58 | G_MODULE_EXPORT GType register_mate_settings_plugin (GTypeModule *module); 59 | 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | 64 | #endif /* __MSD_SMARTCARD_PLUGIN_H__ */ 65 | -------------------------------------------------------------------------------- /plugins/smartcard/smartcard.mate-settings-plugin.desktop.in: -------------------------------------------------------------------------------- 1 | [MATE Settings Plugin] 2 | Module=smartcard 3 | IAge=0 4 | Name=Smartcard 5 | Description=Smartcard plugin 6 | Authors=Ray Strode 7 | Copyright=Copyright © 2010 Red Hat, Inc. 8 | Website= 9 | -------------------------------------------------------------------------------- /plugins/sound/Makefile.am: -------------------------------------------------------------------------------- 1 | plugin_LTLIBRARIES = \ 2 | libsound.la 3 | 4 | libsound_la_SOURCES = \ 5 | msd-sound-plugin.h \ 6 | msd-sound-plugin.c \ 7 | msd-sound-manager.h \ 8 | msd-sound-manager.c 9 | 10 | libsound_la_CPPFLAGS = \ 11 | -I$(top_srcdir)/mate-settings-daemon \ 12 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 13 | $(AM_CPPFLAGS) 14 | 15 | libsound_la_CFLAGS = \ 16 | $(SETTINGS_PLUGIN_CFLAGS) \ 17 | $(MATE_CFLAGS) \ 18 | $(PULSE_CFLAGS) \ 19 | $(AM_CFLAGS) \ 20 | $(WARN_CFLAGS) 21 | 22 | libsound_la_LDFLAGS = \ 23 | $(MSD_PLUGIN_LDFLAGS) 24 | 25 | libsound_la_LIBADD = \ 26 | $(SETTINGS_PLUGIN_LIBS) \ 27 | $(PULSE_LIBS) 28 | 29 | plugin_in_files = \ 30 | sound.mate-settings-plugin.desktop.in 31 | 32 | plugin_DATA = $(plugin_in_files:.mate-settings-plugin.desktop.in=.mate-settings-plugin) 33 | 34 | EXTRA_DIST = \ 35 | $(plugin_in_files) 36 | 37 | CLEANFILES = \ 38 | $(plugin_DATA) 39 | 40 | DISTCLEANFILES = \ 41 | $(plugin_DATA) 42 | 43 | $(plugin_DATA): $(plugin_in_files) 44 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ 45 | 46 | -include $(top_srcdir)/git.mk 47 | -------------------------------------------------------------------------------- /plugins/sound/msd-sound-manager.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2008 Lennart Poettering 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef MSD_SOUND_MANAGER_H 23 | #define MSD_SOUND_MANAGER_H 24 | 25 | #include 26 | #include 27 | 28 | G_BEGIN_DECLS 29 | 30 | #define MSD_TYPE_SOUND_MANAGER (msd_sound_manager_get_type ()) 31 | 32 | G_DECLARE_FINAL_TYPE (MsdSoundManager, msd_sound_manager, 33 | MSD, SOUND_MANAGER, GObject) 34 | 35 | MsdSoundManager * msd_sound_manager_new (void); 36 | 37 | gboolean msd_sound_manager_start (MsdSoundManager *manager, 38 | GError **error); 39 | 40 | void msd_sound_manager_stop (MsdSoundManager *manager); 41 | 42 | G_END_DECLS 43 | 44 | #endif /* MSD_SOUND_MANAGER_H */ 45 | -------------------------------------------------------------------------------- /plugins/sound/msd-sound-plugin.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2008 Lennart Poettering 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_SOUND_PLUGIN_H__ 23 | #define __MSD_SOUND_PLUGIN_H__ 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | #include "mate-settings-plugin.h" 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | #define MSD_TYPE_SOUND_PLUGIN (msd_sound_plugin_get_type ()) 36 | #define MSD_SOUND_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_SOUND_PLUGIN, MsdSoundPlugin)) 37 | #define MSD_SOUND_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), MSD_TYPE_SOUND_PLUGIN, MsdSoundPluginClass)) 38 | #define MSD_IS_SOUND_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_SOUND_PLUGIN)) 39 | #define MSD_IS_SOUND_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_SOUND_PLUGIN)) 40 | #define MSD_SOUND_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_SOUND_PLUGIN, MsdSoundPluginClass)) 41 | 42 | typedef struct MsdSoundPluginPrivate MsdSoundPluginPrivate; 43 | 44 | typedef struct 45 | { 46 | MateSettingsPlugin parent; 47 | MsdSoundPluginPrivate *priv; 48 | } MsdSoundPlugin; 49 | 50 | typedef struct 51 | { 52 | MateSettingsPluginClass parent_class; 53 | } MsdSoundPluginClass; 54 | 55 | GType msd_sound_plugin_get_type (void) G_GNUC_CONST; 56 | 57 | /* All the plugins must implement this function */ 58 | G_MODULE_EXPORT GType register_mate_settings_plugin (GTypeModule *module); 59 | 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | 64 | #endif /* __MSD_SOUND_PLUGIN_H__ */ 65 | -------------------------------------------------------------------------------- /plugins/sound/sound.mate-settings-plugin.desktop.in: -------------------------------------------------------------------------------- 1 | [MATE Settings Plugin] 2 | Module=sound 3 | IAge=0 4 | Name=Sound 5 | Description=Sound Sample Cache plugin 6 | Authors=Lennart Poettering 7 | Copyright=Copyright © 2008 8 | Website= 9 | -------------------------------------------------------------------------------- /plugins/typing-break/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | plugin_LTLIBRARIES = \ 4 | libtyping-break.la \ 5 | $(NULL) 6 | 7 | libtyping_break_la_SOURCES = \ 8 | msd-typing-break-plugin.h \ 9 | msd-typing-break-plugin.c \ 10 | msd-typing-break-manager.h \ 11 | msd-typing-break-manager.c \ 12 | $(NULL) 13 | 14 | libtyping_break_la_CPPFLAGS = \ 15 | -I$(top_srcdir)/mate-settings-daemon \ 16 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 17 | $(AM_CPPFLAGS) 18 | 19 | libtyping_break_la_CFLAGS = \ 20 | $(SETTINGS_PLUGIN_CFLAGS) \ 21 | $(AM_CFLAGS) \ 22 | $(WARN_CFLAGS) \ 23 | $(NULL) 24 | 25 | libtyping_break_la_LDFLAGS = \ 26 | $(MSD_PLUGIN_LDFLAGS) \ 27 | $(NULL) 28 | 29 | libtyping_break_la_LIBADD = \ 30 | $(SETTINGS_PLUGIN_LIBS) \ 31 | $(NULL) 32 | 33 | plugin_in_files = \ 34 | typing-break.mate-settings-plugin.desktop.in \ 35 | $(NULL) 36 | 37 | plugin_DATA = $(plugin_in_files:.mate-settings-plugin.desktop.in=.mate-settings-plugin) 38 | 39 | EXTRA_DIST = \ 40 | $(plugin_in_files) \ 41 | $(NULL) 42 | 43 | CLEANFILES = \ 44 | $(plugin_DATA) \ 45 | $(NULL) 46 | 47 | DISTCLEANFILES = \ 48 | $(plugin_DATA) \ 49 | $(NULL) 50 | 51 | $(plugin_DATA): $(plugin_in_files) 52 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ 53 | 54 | -include $(top_srcdir)/git.mk 55 | -------------------------------------------------------------------------------- /plugins/typing-break/msd-typing-break-manager.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef MSD_TYPING_BREAK_MANAGER_H 23 | #define MSD_TYPING_BREAK_MANAGER_H 24 | 25 | #include 26 | 27 | G_BEGIN_DECLS 28 | 29 | #define MSD_TYPE_TYPING_BREAK_MANAGER (msd_typing_break_manager_get_type ()) 30 | 31 | G_DECLARE_FINAL_TYPE (MsdTypingBreakManager, msd_typing_break_manager, 32 | MSD, TYPING_BREAK_MANAGER, GObject) 33 | 34 | MsdTypingBreakManager * msd_typing_break_manager_new (void); 35 | gboolean msd_typing_break_manager_start (MsdTypingBreakManager *manager, 36 | GError **error); 37 | void msd_typing_break_manager_stop (MsdTypingBreakManager *manager); 38 | 39 | G_END_DECLS 40 | 41 | #endif /* MSD_TYPING_BREAK_MANAGER_H */ 42 | -------------------------------------------------------------------------------- /plugins/typing-break/msd-typing-break-plugin.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_TYPING_BREAK_PLUGIN_H__ 23 | #define __MSD_TYPING_BREAK_PLUGIN_H__ 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | #include "mate-settings-plugin.h" 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | #define MSD_TYPE_TYPING_BREAK_PLUGIN (msd_typing_break_plugin_get_type ()) 36 | #define MSD_TYPING_BREAK_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_TYPING_BREAK_PLUGIN, MsdTypingBreakPlugin)) 37 | #define MSD_TYPING_BREAK_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_TYPING_BREAK_PLUGIN, MsdTypingBreakPluginClass)) 38 | #define MSD_IS_TYPING_BREAK_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_TYPING_BREAK_PLUGIN)) 39 | #define MSD_IS_TYPING_BREAK_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_TYPING_BREAK_PLUGIN)) 40 | #define MSD_TYPING_BREAK_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_TYPING_BREAK_PLUGIN, MsdTypingBreakPluginClass)) 41 | 42 | typedef struct MsdTypingBreakPluginPrivate MsdTypingBreakPluginPrivate; 43 | 44 | typedef struct 45 | { 46 | MateSettingsPlugin parent; 47 | MsdTypingBreakPluginPrivate *priv; 48 | } MsdTypingBreakPlugin; 49 | 50 | typedef struct 51 | { 52 | MateSettingsPluginClass parent_class; 53 | } MsdTypingBreakPluginClass; 54 | 55 | GType msd_typing_break_plugin_get_type (void) G_GNUC_CONST; 56 | 57 | /* All the plugins must implement this function */ 58 | G_MODULE_EXPORT GType register_mate_settings_plugin (GTypeModule *module); 59 | 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | 64 | #endif /* __MSD_TYPING_BREAK_PLUGIN_H__ */ 65 | -------------------------------------------------------------------------------- /plugins/typing-break/typing-break.mate-settings-plugin.desktop.in: -------------------------------------------------------------------------------- 1 | [MATE Settings Plugin] 2 | Module=typing-break 3 | IAge=0 4 | Name=Typing Break 5 | Description=Typing break plugin 6 | Authors= 7 | Copyright=Copyright © 2007 8 | Website= 9 | -------------------------------------------------------------------------------- /plugins/xrandr/msd-xrandr-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mate-desktop/mate-settings-daemon/e57d532ac69fc3f6f5a34d9ce648bbdfb6a81185/plugins/xrandr/msd-xrandr-16.png -------------------------------------------------------------------------------- /plugins/xrandr/msd-xrandr-22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mate-desktop/mate-settings-daemon/e57d532ac69fc3f6f5a34d9ce648bbdfb6a81185/plugins/xrandr/msd-xrandr-22.png -------------------------------------------------------------------------------- /plugins/xrandr/msd-xrandr-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mate-desktop/mate-settings-daemon/e57d532ac69fc3f6f5a34d9ce648bbdfb6a81185/plugins/xrandr/msd-xrandr-24.png -------------------------------------------------------------------------------- /plugins/xrandr/msd-xrandr-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mate-desktop/mate-settings-daemon/e57d532ac69fc3f6f5a34d9ce648bbdfb6a81185/plugins/xrandr/msd-xrandr-32.png -------------------------------------------------------------------------------- /plugins/xrandr/msd-xrandr-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mate-desktop/mate-settings-daemon/e57d532ac69fc3f6f5a34d9ce648bbdfb6a81185/plugins/xrandr/msd-xrandr-48.png -------------------------------------------------------------------------------- /plugins/xrandr/msd-xrandr-64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mate-desktop/mate-settings-daemon/e57d532ac69fc3f6f5a34d9ce648bbdfb6a81185/plugins/xrandr/msd-xrandr-64.png -------------------------------------------------------------------------------- /plugins/xrandr/msd-xrandr-96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mate-desktop/mate-settings-daemon/e57d532ac69fc3f6f5a34d9ce648bbdfb6a81185/plugins/xrandr/msd-xrandr-96.png -------------------------------------------------------------------------------- /plugins/xrandr/msd-xrandr-manager.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_XRANDR_MANAGER_H 23 | #define __MSD_XRANDR_MANAGER_H 24 | 25 | #include 26 | 27 | G_BEGIN_DECLS 28 | 29 | #define MSD_TYPE_XRANDR_MANAGER (msd_xrandr_manager_get_type ()) 30 | #define MSD_XRANDR_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_XRANDR_MANAGER, MsdXrandrManager)) 31 | #define MSD_XRANDR_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_XRANDR_MANAGER, MsdXrandrManagerClass)) 32 | #define MSD_IS_XRANDR_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_XRANDR_MANAGER)) 33 | #define MSD_IS_XRANDR_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_XRANDR_MANAGER)) 34 | #define MSD_XRANDR_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_XRANDR_MANAGER, MsdXrandrManagerClass)) 35 | 36 | typedef struct MsdXrandrManagerPrivate MsdXrandrManagerPrivate; 37 | 38 | typedef struct 39 | { 40 | GObject parent; 41 | MsdXrandrManagerPrivate *priv; 42 | } MsdXrandrManager; 43 | 44 | typedef struct 45 | { 46 | GObjectClass parent_class; 47 | } MsdXrandrManagerClass; 48 | 49 | GType msd_xrandr_manager_get_type (void); 50 | 51 | MsdXrandrManager * msd_xrandr_manager_new (void); 52 | gboolean msd_xrandr_manager_start (MsdXrandrManager *manager, 53 | GError **error); 54 | void msd_xrandr_manager_stop (MsdXrandrManager *manager); 55 | 56 | G_END_DECLS 57 | 58 | #endif /* __MSD_XRANDR_MANAGER_H */ 59 | -------------------------------------------------------------------------------- /plugins/xrandr/msd-xrandr-plugin.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_XRANDR_PLUGIN_H__ 23 | #define __MSD_XRANDR_PLUGIN_H__ 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | #include "mate-settings-plugin.h" 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | #define MSD_TYPE_XRANDR_PLUGIN (msd_xrandr_plugin_get_type ()) 36 | #define MSD_XRANDR_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_XRANDR_PLUGIN, MsdXrandrPlugin)) 37 | #define MSD_XRANDR_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_XRANDR_PLUGIN, MsdXrandrPluginClass)) 38 | #define MSD_IS_XRANDR_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_XRANDR_PLUGIN)) 39 | #define MSD_IS_XRANDR_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_XRANDR_PLUGIN)) 40 | #define MSD_XRANDR_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_XRANDR_PLUGIN, MsdXrandrPluginClass)) 41 | 42 | typedef struct MsdXrandrPluginPrivate MsdXrandrPluginPrivate; 43 | 44 | typedef struct 45 | { 46 | MateSettingsPlugin parent; 47 | MsdXrandrPluginPrivate *priv; 48 | } MsdXrandrPlugin; 49 | 50 | typedef struct 51 | { 52 | MateSettingsPluginClass parent_class; 53 | } MsdXrandrPluginClass; 54 | 55 | GType msd_xrandr_plugin_get_type (void) G_GNUC_CONST; 56 | 57 | /* All the plugins must implement this function */ 58 | G_MODULE_EXPORT GType register_mate_settings_plugin (GTypeModule *module); 59 | 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | 64 | #endif /* __MSD_XRANDR_PLUGIN_H__ */ 65 | -------------------------------------------------------------------------------- /plugins/xrandr/xrandr.mate-settings-plugin.desktop.in: -------------------------------------------------------------------------------- 1 | [MATE Settings Plugin] 2 | Module=xrandr 3 | IAge=0 4 | Name=XRandR 5 | Description=Set up screen size and rotation settings 6 | Authors=Various 7 | Copyright=Copyright © 2007 Novell 8 | Website= 9 | -------------------------------------------------------------------------------- /plugins/xrdb/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | SUBDIRS = \ 4 | data \ 5 | $(NULL) 6 | 7 | plugin_LTLIBRARIES = \ 8 | libxrdb.la \ 9 | $(NULL) 10 | 11 | libxrdb_la_SOURCES = \ 12 | msd-xrdb-plugin.h \ 13 | msd-xrdb-plugin.c \ 14 | msd-xrdb-manager.h \ 15 | msd-xrdb-manager.c \ 16 | $(NULL) 17 | 18 | libxrdb_la_CPPFLAGS = \ 19 | -I$(top_srcdir)/mate-settings-daemon \ 20 | -DSYSCONFDIR=\""$(sysconfdir)"\" \ 21 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 22 | $(AM_CPPFLAGS) 23 | 24 | libxrdb_la_CFLAGS = \ 25 | $(SETTINGS_PLUGIN_CFLAGS) \ 26 | $(AM_CFLAGS) \ 27 | $(WARN_CFLAGS) \ 28 | $(NULL) 29 | 30 | libxrdb_la_LDFLAGS = \ 31 | $(MSD_PLUGIN_LDFLAGS) \ 32 | $(NULL) 33 | 34 | libxrdb_la_LIBADD = \ 35 | $(SETTINGS_PLUGIN_LIBS) \ 36 | $(NULL) 37 | 38 | plugin_in_files = \ 39 | xrdb.mate-settings-plugin.desktop.in \ 40 | $(NULL) 41 | 42 | plugin_DATA = $(plugin_in_files:.mate-settings-plugin.desktop.in=.mate-settings-plugin) 43 | 44 | EXTRA_DIST = \ 45 | $(plugin_in_files) \ 46 | $(NULL) 47 | 48 | CLEANFILES = \ 49 | $(plugin_DATA) \ 50 | $(NULL) 51 | 52 | DISTCLEANFILES = \ 53 | $(plugin_DATA) \ 54 | $(NULL) 55 | 56 | $(plugin_DATA): $(plugin_in_files) 57 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ 58 | 59 | -include $(top_srcdir)/git.mk 60 | -------------------------------------------------------------------------------- /plugins/xrdb/data/Editres.ad: -------------------------------------------------------------------------------- 1 | Editres*Tree.Background: WINDOW_BACKGROUND 2 | Editres*Tree.Foreground: WINDOW_FOREGROUND 3 | Editres*Tree.Toggle.Foreground: FOREGROUND 4 | Editres*Tree.Toggle.Background: BACKGROUND 5 | Editres*Panner.Background: BACKGROUND 6 | -------------------------------------------------------------------------------- /plugins/xrdb/data/Emacs.ad: -------------------------------------------------------------------------------- 1 | Emacs.default.attributeForeground: WINDOW_FOREGROUND 2 | Emacs.default.attributeBackground: WINDOW_BACKGROUND 3 | 4 | Emacs*Foreground: WINDOW_FOREGROUND 5 | Emacs*Background: WINDOW_BACKGROUND 6 | Emacs*menubar*foreground: FOREGROUND 7 | Emacs*menubar*background: BACKGROUND 8 | Emacs*popup*Foreground: FOREGROUND 9 | Emacs*popup*Background: BACKGROUND 10 | Emacs*Dialog*foreground: FOREGROUND 11 | Emacs*Dialog*background: BACKGROUND 12 | Emacs*XlwScrollBar.Foreground: FOREGROUND 13 | Emacs*XlwScrollBar.Background: BACKGROUND 14 | Emacs*topToolBarShadowColor: BACKGROUND 15 | Emacs*bottomToolBarShadowColor: BACKGROUND 16 | Emacs*backgroundToolBarColor: BACKGROUND 17 | Emacs.scroll-bar.attributeBackground: BACKGROUND 18 | Emacs.scroll-bar.attributeForeground: FOREGROUND 19 | Emacs.mode-line.attributeForeground: FOREGROUND 20 | Emacs.tool-bar.attributeBackground: BACKGROUND 21 | Emacs.tool-bar.attributeForeground: FOREGROUND 22 | -------------------------------------------------------------------------------- /plugins/xrdb/data/General.ad: -------------------------------------------------------------------------------- 1 | *background: BACKGROUND 2 | *foreground: FOREGROUND 3 | -------------------------------------------------------------------------------- /plugins/xrdb/data/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | xrdbdir = $(sysconfdir)/xrdb 4 | xrdb_DATA = \ 5 | General.ad \ 6 | Editres.ad \ 7 | Emacs.ad \ 8 | Motif.ad \ 9 | Tk.ad \ 10 | Xaw.ad \ 11 | $(NULL) 12 | 13 | EXTRA_DIST = \ 14 | $(xrdb_DATA) \ 15 | $(NULL) 16 | 17 | -include $(top_srcdir)/git.mk 18 | -------------------------------------------------------------------------------- /plugins/xrdb/data/Motif.ad: -------------------------------------------------------------------------------- 1 | *XmScrollBar.background: BACKGROUND 2 | *XmScrollBar.foreground: FOREGROUND 3 | 4 | *XmSash.background: BACKGROUND 5 | *XmSash.foreground: FOREGROUND 6 | 7 | *XmLabel.background: BACKGROUND 8 | *XmLabel.foreground: FOREGROUND 9 | *XmLabelGadget.background: BACKGROUND 10 | *XmLabelGadget.foreground: FOREGROUND 11 | 12 | *XmCascadeButton.background: BACKGROUND 13 | *XmCascadeButton.foreground: FOREGROUND 14 | *XmCascadeButtonGadget.background: BACKGROUND 15 | *XmCascadeButtonGadget.foreground: FOREGROUND 16 | 17 | *XmToggleButton.background: BACKGROUND 18 | *XmToggleButton.foreground: FOREGROUND 19 | *XmToggleButtonGadget.background: BACKGROUND 20 | *XmToggleButtonGadget.foreground: FOREGROUND 21 | 22 | *XmPushButton.background: BACKGROUND 23 | *XmPushButton.foreground: FOREGROUND 24 | *XmPushButtonGadget.background: BACKGROUND 25 | *XmPushButtonGadget.foreground: FOREGROUND 26 | 27 | *XmSeparator.background: BACKGROUND 28 | *XmSeparator.foreground: FOREGROUND 29 | *XmSeparatorGadget.background: BACKGROUND 30 | *XmSeparatorGadget.foreground: FOREGROUND 31 | 32 | *XmTearOffButton.background: BACKGROUND 33 | *XmTearOffButton.foreground: FOREGROUND 34 | *XmTearOffButtonGadget.background: BACKGROUND 35 | *XmTearOffButtonGadget.foreground: FOREGROUND 36 | 37 | *XmMenuShell.background: BACKGROUND 38 | *XmMenuShell.foreground: FOREGROUND 39 | 40 | *XmDialogShell.background: BACKGROUND 41 | *XmDialogShell.foreground: FOREGROUND 42 | 43 | *XmFileSelectionBox.background: BACKGROUND 44 | *XmFileSelectionBox.foreground: FOREGROUND 45 | 46 | *XmSelectionBox.background: BACKGROUND 47 | *XmSelectionBox.foreground: FOREGROUND 48 | 49 | *XmMessageBox.background: BACKGROUND 50 | *XmMessageBox.foreground: FOREGROUND 51 | 52 | *XmRowColumn.background: BACKGROUND 53 | *XmRowColumn.foreground: FOREGROUND 54 | 55 | *XmFrame.background: BACKGROUND 56 | *XmFrame.foreground: FOREGROUND 57 | 58 | *XmForm.background: BACKGROUND 59 | *XmForm.foreground: FOREGROUND 60 | 61 | *XmScrolledWindow.background: BACKGROUND 62 | *XmScrolledWindow.foreground: FOREGROUND 63 | 64 | *XmPanedWindow.background: BACKGROUND 65 | *XmPanedWindow.foreground: FOREGROUND 66 | 67 | *XmText.background: WINDOW_BACKGROUND 68 | *XmText.foreground: WINDOW_FOREGROUND 69 | 70 | *XmTextField.background: WINDOW_BACKGROUND 71 | *XmTextField.foreground: WINDOW_FOREGROUND 72 | 73 | *XmList.background: WINDOW_BACKGROUND 74 | *XmList.foreground: WINDOW_FOREGROUND 75 | -------------------------------------------------------------------------------- /plugins/xrdb/data/Xaw.ad: -------------------------------------------------------------------------------- 1 | *MenuButton.background: BACKGROUND 2 | *Command.background: BACKGROUND 3 | *Toggle.background: BACKGROUND 4 | *Label.background: BACKGROUND 5 | *Scrollbar*background: BACKGROUND 6 | *SimpleMenu*background: BACKGROUND 7 | *Box.background: BACKGROUND 8 | *Form.background: BACKGROUND 9 | *Dialog.background: BACKGROUND 10 | *Text.background: WINDOW_BACKGROUND 11 | *List.background: WINDOW_BACKGROUND 12 | 13 | *MenuButton.foreground: FOREGROUND 14 | *Command.foreground: FOREGROUND 15 | *Toggle.foreground: FOREGROUND 16 | *Label.foreground: FOREGROUND 17 | *Scrollbar.foreground: FOREGROUND 18 | *SimpleMenu*foreground: FOREGROUND 19 | *Box.foreground: FOREGROUND 20 | *Form.foreground: FOREGROUND 21 | *Dialog.foreground: FOREGROUND 22 | *Text.foreground: WINDOW_FOREGROUND 23 | *List.foreground: WINDOW_FOREGROUND 24 | 25 | *ScrollbarBackground: BACKGROUND 26 | -------------------------------------------------------------------------------- /plugins/xrdb/msd-xrdb-manager.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_XRDB_MANAGER_H 23 | #define __MSD_XRDB_MANAGER_H 24 | 25 | #include 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | #define MSD_TYPE_XRDB_MANAGER (msd_xrdb_manager_get_type ()) 32 | #define MSD_XRDB_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_XRDB_MANAGER, MsdXrdbManager)) 33 | #define MSD_XRDB_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_XRDB_MANAGER, MsdXrdbManagerClass)) 34 | #define MSD_IS_XRDB_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_XRDB_MANAGER)) 35 | #define MSD_IS_XRDB_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_XRDB_MANAGER)) 36 | #define MSD_XRDB_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_XRDB_MANAGER, MsdXrdbManagerClass)) 37 | 38 | typedef struct MsdXrdbManagerPrivate MsdXrdbManagerPrivate; 39 | 40 | typedef struct 41 | { 42 | GObject parent; 43 | MsdXrdbManagerPrivate *priv; 44 | } MsdXrdbManager; 45 | 46 | typedef struct 47 | { 48 | GObjectClass parent_class; 49 | } MsdXrdbManagerClass; 50 | 51 | GType msd_xrdb_manager_get_type (void); 52 | 53 | MsdXrdbManager * msd_xrdb_manager_new (void); 54 | gboolean msd_xrdb_manager_start (MsdXrdbManager *manager, 55 | GError **error); 56 | void msd_xrdb_manager_stop (MsdXrdbManager *manager); 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | 62 | #endif /* __MSD_XRDB_MANAGER_H */ 63 | -------------------------------------------------------------------------------- /plugins/xrdb/msd-xrdb-plugin.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MSD_XRDB_PLUGIN_H__ 23 | #define __MSD_XRDB_PLUGIN_H__ 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | #include "mate-settings-plugin.h" 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | #define MSD_TYPE_XRDB_PLUGIN (msd_xrdb_plugin_get_type ()) 36 | #define MSD_XRDB_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_XRDB_PLUGIN, MsdXrdbPlugin)) 37 | #define MSD_XRDB_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_XRDB_PLUGIN, MsdXrdbPluginClass)) 38 | #define MSD_IS_XRDB_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_XRDB_PLUGIN)) 39 | #define MSD_IS_XRDB_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_XRDB_PLUGIN)) 40 | #define MSD_XRDB_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_XRDB_PLUGIN, MsdXrdbPluginClass)) 41 | 42 | typedef struct MsdXrdbPluginPrivate MsdXrdbPluginPrivate; 43 | 44 | typedef struct 45 | { 46 | MateSettingsPlugin parent; 47 | MsdXrdbPluginPrivate *priv; 48 | } MsdXrdbPlugin; 49 | 50 | typedef struct 51 | { 52 | MateSettingsPluginClass parent_class; 53 | } MsdXrdbPluginClass; 54 | 55 | GType msd_xrdb_plugin_get_type (void) G_GNUC_CONST; 56 | 57 | /* All the plugins must implement this function */ 58 | G_MODULE_EXPORT GType register_mate_settings_plugin (GTypeModule *module); 59 | 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | 64 | #endif /* __MSD_XRDB_PLUGIN_H__ */ 65 | -------------------------------------------------------------------------------- /plugins/xrdb/xrdb.mate-settings-plugin.desktop.in: -------------------------------------------------------------------------------- 1 | [MATE Settings Plugin] 2 | Module=xrdb 3 | IAge=0 4 | Name=X Resource Database 5 | Description=Manage the X resource database 6 | Authors=Ross Burton 7 | Copyright=Copyright © 2007 Ross Burton 8 | Website= 9 | -------------------------------------------------------------------------------- /plugins/xsettings/Makefile.am: -------------------------------------------------------------------------------- 1 | NULL = 2 | 3 | plugin_LTLIBRARIES = \ 4 | libxsettings.la \ 5 | $(NULL) 6 | 7 | libxsettings_la_SOURCES = \ 8 | msd-xsettings-plugin.h \ 9 | msd-xsettings-plugin.c \ 10 | msd-xsettings-manager.h \ 11 | msd-xsettings-manager.c \ 12 | xsettings-common.h \ 13 | xsettings-common.c \ 14 | xsettings-manager.h \ 15 | xsettings-manager.c \ 16 | fontconfig-monitor.h \ 17 | fontconfig-monitor.c \ 18 | wm-common.h \ 19 | wm-common.c \ 20 | $(NULL) 21 | 22 | libxsettings_la_CPPFLAGS = \ 23 | -I$(top_srcdir)/mate-settings-daemon \ 24 | -DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ 25 | $(AM_CPPFLAGS) 26 | 27 | libxsettings_la_CFLAGS = \ 28 | $(SETTINGS_PLUGIN_CFLAGS) \ 29 | $(FONTCONFIG_CFLAGS) \ 30 | $(AM_CFLAGS) \ 31 | $(WARN_CFLAGS) \ 32 | $(NULL) 33 | 34 | libxsettings_la_LDFLAGS = \ 35 | $(MSD_PLUGIN_LDFLAGS) \ 36 | $(NULL) 37 | 38 | libxsettings_la_LIBADD = \ 39 | $(SETTINGS_PLUGIN_LIBS) \ 40 | $(FONTCONFIG_LIBS) \ 41 | $(X11_LIBS) \ 42 | $(NULL) 43 | 44 | plugin_in_files = \ 45 | xsettings.mate-settings-plugin.desktop.in \ 46 | $(NULL) 47 | 48 | plugin_DATA = $(plugin_in_files:.mate-settings-plugin.desktop.in=.mate-settings-plugin) 49 | 50 | EXTRA_DIST = \ 51 | $(plugin_in_files) \ 52 | $(NULL) 53 | 54 | CLEANFILES = \ 55 | $(plugin_DATA) \ 56 | $(NULL) 57 | 58 | DISTCLEANFILES = \ 59 | $(plugin_DATA) \ 60 | $(NULL) 61 | 62 | $(plugin_DATA): $(plugin_in_files) 63 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ 64 | 65 | -include $(top_srcdir)/git.mk 66 | -------------------------------------------------------------------------------- /plugins/xsettings/fontconfig-monitor.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2008 Red Hat, Inc. 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | * Author: Behdad Esfahbod, Red Hat, Inc. 21 | */ 22 | #ifndef __FONTCONFIG_MONITOR_H 23 | #define __FONTCONFIG_MONITOR_H 24 | 25 | #include 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | void fontconfig_cache_init (void); 32 | gboolean fontconfig_cache_update (void); 33 | 34 | typedef struct _fontconfig_monitor_handle fontconfig_monitor_handle_t; 35 | 36 | fontconfig_monitor_handle_t * 37 | fontconfig_monitor_start (GFunc notify_callback, 38 | gpointer notify_data); 39 | void fontconfig_monitor_stop (fontconfig_monitor_handle_t *handle); 40 | 41 | #ifdef __cplusplus 42 | } 43 | #endif 44 | 45 | #endif /* __FONTCONFIG_MONITOR_H */ 46 | -------------------------------------------------------------------------------- /plugins/xsettings/msd-xsettings-manager.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MATE_XSETTINGS_MANAGER_H 23 | #define __MATE_XSETTINGS_MANAGER_H 24 | 25 | #include 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | #define MATE_TYPE_XSETTINGS_MANAGER (mate_xsettings_manager_get_type ()) 32 | #define MATE_XSETTINGS_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MATE_TYPE_XSETTINGS_MANAGER, MateXSettingsManager)) 33 | #define MATE_XSETTINGS_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MATE_TYPE_XSETTINGS_MANAGER, MateXSettingsManagerClass)) 34 | #define MATE_IS_XSETTINGS_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MATE_TYPE_XSETTINGS_MANAGER)) 35 | #define MATE_IS_XSETTINGS_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MATE_TYPE_XSETTINGS_MANAGER)) 36 | #define MATE_XSETTINGS_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MATE_TYPE_XSETTINGS_MANAGER, MateXSettingsManagerClass)) 37 | 38 | typedef struct MateXSettingsManagerPrivate MateXSettingsManagerPrivate; 39 | 40 | typedef struct 41 | { 42 | GObject parent; 43 | MateXSettingsManagerPrivate *priv; 44 | } MateXSettingsManager; 45 | 46 | typedef struct 47 | { 48 | GObjectClass parent_class; 49 | } MateXSettingsManagerClass; 50 | 51 | GType mate_xsettings_manager_get_type (void); 52 | 53 | MateXSettingsManager * mate_xsettings_manager_new (void); 54 | gboolean mate_xsettings_manager_start (MateXSettingsManager *manager, 55 | GError **error); 56 | void mate_xsettings_manager_stop (MateXSettingsManager *manager); 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | 62 | #endif /* __MATE_XSETTINGS_MANAGER_H */ 63 | -------------------------------------------------------------------------------- /plugins/xsettings/msd-xsettings-plugin.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 | * 3 | * Copyright (C) 2007 William Jon McCann 4 | * Copyright (C) 2012-2021 MATE Developers 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | * 20 | */ 21 | 22 | #ifndef __MATE_XSETTINGS_PLUGIN_H__ 23 | #define __MATE_XSETTINGS_PLUGIN_H__ 24 | 25 | #include 26 | #include 27 | #include 28 | 29 | #include "mate-settings-plugin.h" 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | #define MATE_TYPE_XSETTINGS_PLUGIN (mate_xsettings_plugin_get_type ()) 36 | #define MATE_XSETTINGS_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MATE_TYPE_XSETTINGS_PLUGIN, MateXSettingsPlugin)) 37 | #define MATE_XSETTINGS_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MATE_TYPE_XSETTINGS_PLUGIN, MateXSettingsPluginClass)) 38 | #define MATE_IS_XSETTINGS_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MATE_TYPE_XSETTINGS_PLUGIN)) 39 | #define MATE_IS_XSETTINGS_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MATE_TYPE_XSETTINGS_PLUGIN)) 40 | #define MATE_XSETTINGS_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MATE_TYPE_XSETTINGS_PLUGIN, MateXSettingsPluginClass)) 41 | 42 | typedef struct MateXSettingsPluginPrivate MateXSettingsPluginPrivate; 43 | 44 | typedef struct 45 | { 46 | MateSettingsPlugin parent; 47 | MateXSettingsPluginPrivate *priv; 48 | } MateXSettingsPlugin; 49 | 50 | typedef struct 51 | { 52 | MateSettingsPluginClass parent_class; 53 | } MateXSettingsPluginClass; 54 | 55 | GType mate_xsettings_plugin_get_type (void) G_GNUC_CONST; 56 | 57 | /* All the plugins must implement this function */ 58 | G_MODULE_EXPORT GType register_mate_settings_plugin (GTypeModule *module); 59 | 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | 64 | #endif /* __MATE_XSETTINGS_PLUGIN_H__ */ 65 | -------------------------------------------------------------------------------- /plugins/xsettings/wm-common.h: -------------------------------------------------------------------------------- 1 | #ifndef WM_COMMON_H 2 | #define WM_COMMON_H 3 | 4 | #define WM_COMMON_MARCO "Metacity (Marco)" 5 | #define WM_COMMON_SAWFISH "Sawfish" 6 | #define WM_COMMON_METACITY "Metacity" 7 | #define WM_COMMON_COMPIZ "Compiz" 8 | #define WM_COMMON_COMPIZ_OLD "compiz" 9 | #define WM_COMMON_UNKNOWN "Unknown" 10 | 11 | gchar *wm_common_get_current_window_manager (void); 12 | void wm_common_update_window (void); 13 | 14 | #endif /* WM_COMMON_H */ 15 | 16 | -------------------------------------------------------------------------------- /plugins/xsettings/xsettings.mate-settings-plugin.desktop.in: -------------------------------------------------------------------------------- 1 | [MATE Settings Plugin] 2 | Module=xsettings 3 | IAge=0 4 | Name=X Settings 5 | Description=Manage X Settings 6 | Authors=William Jon McCann 7 | Copyright=Copyright © 2007 William Jon McCann 8 | Website= 9 | -------------------------------------------------------------------------------- /po/LINGUAS: -------------------------------------------------------------------------------- 1 | # please keep this list sorted alphabetically 2 | af 3 | am 4 | ar 5 | as 6 | ast 7 | az 8 | be 9 | bg 10 | bn 11 | bn_IN 12 | br 13 | bs 14 | ca 15 | ca@valencia 16 | cmn 17 | crh 18 | cs 19 | cy 20 | da 21 | de 22 | dz 23 | el 24 | en_AU 25 | en_CA 26 | en_GB 27 | eo 28 | es 29 | es_AR 30 | es_CL 31 | es_CO 32 | es_CR 33 | es_DO 34 | es_EC 35 | es_ES 36 | es_MX 37 | es_NI 38 | es_PA 39 | es_PE 40 | es_PR 41 | es_SV 42 | es_UY 43 | es_VE 44 | et 45 | eu 46 | fa 47 | fi 48 | fr 49 | frp 50 | fur 51 | fy 52 | ga 53 | gl 54 | gu 55 | he 56 | hi 57 | hr 58 | hu 59 | hy 60 | id 61 | ie 62 | is 63 | it 64 | ja 65 | ka 66 | kk 67 | kn 68 | ko 69 | ku 70 | ku_IQ 71 | ky 72 | lt 73 | lv 74 | mai 75 | mg 76 | mk 77 | ml 78 | mn 79 | mr 80 | ms 81 | nb 82 | nds 83 | ne 84 | nl 85 | nn 86 | nso 87 | oc 88 | or 89 | pa 90 | pl 91 | pms 92 | ps 93 | pt 94 | pt_BR 95 | ro 96 | ru 97 | rw 98 | si 99 | sk 100 | sl 101 | sq 102 | sr 103 | sr@latin 104 | sv 105 | ta 106 | te 107 | th 108 | tr 109 | ug 110 | uk 111 | ur 112 | uz 113 | vi 114 | wa 115 | xh 116 | zh_CN 117 | zh_HK 118 | zh_TW 119 | zu 120 | -------------------------------------------------------------------------------- /po/POTFILES.skip: -------------------------------------------------------------------------------- 1 | # Files with translatable strings to skip. 2 | # Please keep this file in alphabetical order. 3 | # 4 | # The following three desktop.in files are generated files, so 5 | # it is not necessary to check them for translatable strings. 6 | # Without these files, "make distcheck" fails. Please do not 7 | # remove these unless you fix "make distcheck" a different way. 8 | # 9 | data/mate-settings-daemon.desktop.in 10 | --------------------------------------------------------------------------------