From af2902c8c2053609153187a83b2e20f0a29e8f4b Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 4 Oct 2022 13:08:44 +0200 Subject: gschema: bring back org.gnome.nm-applet schema In commit 6b1aaade74cf ('gschema: move "org.gnome.nm-applet.gschema.xml" from network-manager-applet to libnma'), both "org.gnome.nm-applet" and "org.gnome.nm-applet.eap" have been moved over to libnma, whereas only the latter should have been. Bring it back. See-also: https://gitlab.gnome.org/GNOME/libnma/-/merge_requests/42 --- .gitignore | 4 ++-- Makefile.am | 3 +++ configure.ac | 1 + meson.build | 12 ++++++++++++ org.gnome.nm-applet.gschema.xml.in | 40 ++++++++++++++++++++++++++++++++++++++ po/POTFILES.in | 1 + 6 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 org.gnome.nm-applet.gschema.xml.in diff --git a/.gitignore b/.gitignore index 73fb6976..4b47a47f 100644 --- a/.gitignore +++ b/.gitignore @@ -87,6 +87,8 @@ test-*.log nm-applet.conf nm-applet.desktop nm-connection-editor.desktop +org.gnome.nm-applet.gschema.xml +org.gnome.nm-applet.gschema.valid org.gnome.nm-connection-editor.appdata.xml src/connection-editor/nm-connection-editor src/connection-editor/nm-connection-editor-service-glue.h @@ -153,7 +155,5 @@ libnma.types # but they were on older versions. Thus keep ignoring them # otherwise when switching branches these untracked files show # up. -/org.gnome.nm-applet.gschema.xml -/org.gnome.nm-applet.gschema.valid src/wireless-security/ws-resources.c src/wireless-security/ws-resources.h diff --git a/Makefile.am b/Makefile.am index 9ce11178..95bfa7d5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -616,6 +616,9 @@ desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) nm-connection-editor.desktop: nm-connection-editor.desktop.in $(AM_V_GEN)$(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ +gsettings_SCHEMAS = org.gnome.nm-applet.gschema.xml +@GSETTINGS_RULES@ + appdatadir = $(datadir)/metainfo appdata_DATA = $(appdata_in_files:.xml.in=.xml) appdata_in_files = nm-connection-editor.appdata.xml.in diff --git a/configure.ac b/configure.ac index c8968c00..e9fa60cb 100644 --- a/configure.ac +++ b/configure.ac @@ -176,6 +176,7 @@ AC_CONFIG_FILES([ Makefile man/nm-applet.1 man/nm-connection-editor.1 +org.gnome.nm-applet.gschema.xml po/Makefile.in ]) AC_OUTPUT diff --git a/meson.build b/meson.build index babc6de2..9d4741a9 100644 --- a/meson.build +++ b/meson.build @@ -289,6 +289,18 @@ if appstream_util.found() ) endif +schema_conf = configuration_data() +schema_conf.set('GETTEXT_PACKAGE', nma_name) + +schema = 'org.gnome.nm-applet.gschema.xml' + +configure_file( + input: schema + '.in', + output: schema, + install_dir: join_paths(nma_datadir, 'glib-2.0', 'schemas'), + configuration: schema_conf +) + install_data( 'nm-applet.convert', install_dir: join_paths(nma_datadir, 'GConf', 'gsettings') diff --git a/org.gnome.nm-applet.gschema.xml.in b/org.gnome.nm-applet.gschema.xml.in new file mode 100644 index 00000000..09631a70 --- /dev/null +++ b/org.gnome.nm-applet.gschema.xml.in @@ -0,0 +1,40 @@ + + + + + false + Disable connected notifications + Set this to true to disable notifications when connecting to a network. + + + false + Disable disconnected notifications + Set this to true to disable notifications when disconnecting from a network. + + + false + Disable VPN notifications + Set this to true to disable notifications when connecting to or disconnecting from a VPN. + + + false + Suppress networks available notifications + Set this to true to disable notifications when Wi-Fi networks are available. + + + 0 + Stamp + Used to determine whether settings should be migrated to a new version. + + + false + Disable WiFi Create + Set to true to disable creation of adhoc networks when using the applet. + + + true + Show the applet in notification area + Set to FALSE to disable displaying the applet in the notification area. + + + diff --git a/po/POTFILES.in b/po/POTFILES.in index a5521ae0..5937dd9c 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -3,6 +3,7 @@ nm-applet.desktop.in nm-connection-editor.appdata.xml.in nm-connection-editor.desktop.in +org.gnome.nm-applet.gschema.xml.in shared/nm-utils/nm-shared-utils.c src/8021x.ui src/ap-menu-item.c -- cgit v1.2.1