phosh-arch/gtk3-mobile/Add-org.gtk.Settings.Purism.patch
2024-08-13 08:17:11 -07:00

46 lines
1.6 KiB
Diff

From: Mohammed Sadiq <sadiq@sadiqpk.org>
Date: Thu, 27 Aug 2020 14:45:07 +0530
Subject: Add org.gtk.Settings.Purism
---
gtk/meson.build | 1 +
gtk/org.gtk.Settings.Purism.gschema.xml | 18 ++++++++++++++++++
2 files changed, 19 insertions(+)
create mode 100644 gtk/org.gtk.Settings.Purism.gschema.xml
diff --git a/gtk/meson.build b/gtk/meson.build
index 40feabc..e50a4bc 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -964,6 +964,7 @@ gtk_settings_schemas = [
'org.gtk.Settings.ColorChooser.gschema.xml',
'org.gtk.Settings.EmojiChooser.gschema.xml',
'org.gtk.Settings.Debug.gschema.xml',
+ 'org.gtk.Settings.Purism.gschema.xml',
]
install_data(gtk_settings_schemas, install_dir: gtk_schemasdir)
gnome.compile_schemas(depend_files: files(gtk_settings_schemas),
diff --git a/gtk/org.gtk.Settings.Purism.gschema.xml b/gtk/org.gtk.Settings.Purism.gschema.xml
new file mode 100644
index 0000000..f5637dd
--- /dev/null
+++ b/gtk/org.gtk.Settings.Purism.gschema.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schemalist>
+
+ <schema id='org.gtk.Settings.Purism' path='/org/gtk/settings/purism/'>
+ <key name='is-phone' type='b'>
+ <default>false</default>
+ <summary>Enable hacks for small screens</summary>
+ <description>
+ If this setting is true, GTK enables various tweaks to let it
+ work on small screens.
+
+ This is a temporary workaround until automatic adaptive UIs
+ are implemented based on the workarea size.
+ </description>
+ </key>
+ </schema>
+
+</schemalist>