diff options
author | Christoph Korn <c_korn@gmx.de> | 2009-09-08 10:09:45 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-09-08 10:09:45 -0500 |
commit | 85799abbe897e0f1e08b8d594716ab34b543d9fd (patch) | |
tree | 193e939ef6385ec5bdf59ba578e1ffd3c7b83375 /data | |
parent | a5b8008742a719b77a7f3a13f81c2af02f6e4550 (diff) | |
parent | 1f47c9e8827165634149f6e21a4588fe577479d8 (diff) | |
download | ayatana-indicator-session-85799abbe897e0f1e08b8d594716ab34b543d9fd.tar.gz ayatana-indicator-session-85799abbe897e0f1e08b8d594716ab34b543d9fd.tar.bz2 ayatana-indicator-session-85799abbe897e0f1e08b8d594716ab34b543d9fd.zip |
Adding a GConf key to suppress confirmation dialogs
Diffstat (limited to 'data')
-rw-r--r-- | data/Makefile.am | 32 | ||||
-rw-r--r-- | data/indicator-session.schemas.in | 17 |
2 files changed, 47 insertions, 2 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index 434e7d6..9ba0d97 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -9,9 +9,37 @@ dbus_services_DATA = $(service_in_files:.service.in=.service) %.service: %.service.in sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@ +############################## +# GConf Schema +############################## + +schemadir = \ + $(GCONF_SCHEMA_FILE_DIR) + +schema_in_files = \ + indicator-session.schemas.in + +schema_DATA = \ + $(schema_in_files:.schemas.in=.schemas) + +@INTLTOOL_SCHEMAS_RULE@ + + #$(dbus_services_DATA): $(service_in_files) Makefile # sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@ -EXTRA_DIST = $(service_in_files) +EXTRA_DIST = \ + $(service_in_files) \ + $(schema_in_files) + +CLEANFILES = \ + $(dbus_services_DATA) \ + $(schema_DATA) -CLEANFILES = $(dbus_services_DATA) +if GCONF_SCHEMAS_INSTALL +install-data-local: + GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \ + gconftool-2 --makefile-install-rule $(schema_DATA) +else +install-data-local: +endif diff --git a/data/indicator-session.schemas.in b/data/indicator-session.schemas.in new file mode 100644 index 0000000..1db9226 --- /dev/null +++ b/data/indicator-session.schemas.in @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<gconfschemafile> + <schemalist> + <schema> + <key>/schemas/apps/indicator-session/suppress_logout_restart_shutdown</key> + <applyto>/apps/indicator-session/suppress_logout_restart_shutdown</applyto> + <owner>indicator-session</owner> + <type>bool</type> + <default>FALSE</default> + <locale name="C"> + <short>Suppress the dialog to confirm logout, restart and shutdown action</short> + <long>Whether or not to show confirmation dialogs for logout, + restart and shutdown actions.</long> + </locale> + </schema> + </schemalist> +</gconfschemafile> |