Accepting request 648449 from home:qkzhu:branches:GNOME:Factory

- Add gsettings-desktop-schemas-fate324570-Add-key-for-GDM-background-configuration.patch: 
  + Add settings for org.gnome.desktop.background.lockdialog
    This key is for the background of lockDialogGroup which makes login
    and lock background configurable. The default behavior will be
    retained to what it is currently.
  + This patch is required by a patch in GNOME Shell
    gnome-shell-fate324570-Make-GDM-background-image-configurable.patch
  (fate#324570, glgo#GNOME/gnome-shell#680).

OBS-URL: https://build.opensuse.org/request/show/648449
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gsettings-desktop-schemas?expand=0&rev=111
This commit is contained in:
Dominique Leuenberger 2018-11-14 09:54:09 +00:00 committed by Git OBS Bridge
parent ce26ec867e
commit 0817f936f6
3 changed files with 128 additions and 0 deletions

View File

@ -0,0 +1,110 @@
From 02c40aeea16cd570cc8238628ca9e77e76ce9d73 Mon Sep 17 00:00:00 2001
From: Chingkai <chuchingkai@gmail.com>
Date: Fri, 19 Oct 2018 13:37:15 +0800
Subject: [PATCH] schemas: Add settings for
org.gnome.desktop.background.lockdialog
This key is for the background of lockDialogGroup which makes login
and lock background configurable. The default behavior will be
retained to what it is currently.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/680
---
schemas/Makefile-schemas.include | 1 +
schemas/Makefile.in | 1 +
...me.desktop.background.lockdialog.gschema.xml.in | 59 ++++++++++++++++++++++
3 files changed, 61 insertions(+)
create mode 100644 schemas/org.gnome.desktop.background.lockdialog.gschema.xml.in
diff --git a/schemas/Makefile-schemas.include b/schemas/Makefile-schemas.include
index f9f8514..fca5af6 100644
--- a/schemas/Makefile-schemas.include
+++ b/schemas/Makefile-schemas.include
@@ -15,6 +15,7 @@ desktop_gschemas_in = \
org.gnome.desktop.thumbnailers.gschema.xml.in \
org.gnome.desktop.session.gschema.xml.in \
org.gnome.desktop.background.gschema.xml.in \
+ org.gnome.desktop.background.lockdialog.gschema.xml.in \
org.gnome.desktop.calendar.gschema.xml.in \
org.gnome.desktop.datetime.gschema.xml.in \
org.gnome.desktop.media-handling.gschema.xml.in \
diff --git a/schemas/Makefile.in b/schemas/Makefile.in
index d0b1b9a..1a81b00 100644
--- a/schemas/Makefile.in
+++ b/schemas/Makefile.in
@@ -298,6 +298,7 @@ desktop_gschemas_in = \
org.gnome.desktop.thumbnailers.gschema.xml.in \
org.gnome.desktop.session.gschema.xml.in \
org.gnome.desktop.background.gschema.xml.in \
+ org.gnome.desktop.background.lockdialog.gschema.xml.in \
org.gnome.desktop.calendar.gschema.xml.in \
org.gnome.desktop.datetime.gschema.xml.in \
org.gnome.desktop.media-handling.gschema.xml.in \
diff --git a/schemas/org.gnome.desktop.background.lockdialog.gschema.xml.in b/schemas/org.gnome.desktop.background.lockdialog.gschema.xml.in
new file mode 100644
index 0000000..b38e699
--- /dev/null
+++ b/schemas/org.gnome.desktop.background.lockdialog.gschema.xml.in
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schemalist gettext-domain="gsettings-desktop-schemas">
+ <schema id="org.gnome.desktop.background.lockdialog" path="/org/gnome/desktop/background/lockdialog/">
+ <key name="picture-options" enum="org.gnome.desktop.GDesktopBackgroundStyle">
+ <default>'wallpaper'</default>
+ <summary>Picture Options</summary>
+ <description>
+ Determines how the image set by wallpaper_filename is rendered.
+ Possible values are “none”, “wallpaper”, “centered”, “scaled”,
+ “stretched”, “zoom”, “spanned”.
+ </description>
+ </key>
+ <key name="picture-uri" type="s">
+ <default>'resource:///org/gnome/shell/theme/noise-texture.png'</default>
+ <summary>Picture URI</summary>
+ <description>
+ URI to use for the background image. Note that the backend only supports
+ local (file://) URIs.
+ </description>
+ </key>
+ <key name="picture-opacity" type="i">
+ <range min="0" max="100"/>
+ <default>100</default>
+ <summary>Picture Opacity</summary>
+ <description>
+ Opacity with which to draw the background picture.
+ </description>
+ </key>
+ <key name="primary-color" type="s">
+ <default>'#2e3436'</default>
+ <summary>Primary Color</summary>
+ <description>
+ Left or Top color when drawing gradients, or the solid color.
+ </description>
+ </key>
+ <key name="secondary-color" type="s">
+ <default>'#2e3436'</default>
+ <summary>Secondary Color</summary>
+ <description>
+ Right or Bottom color when drawing gradients, not used for solid color.
+ </description>
+ </key>
+ <key name="color-shading-type" enum="org.gnome.desktop.GDesktopBackgroundShading">
+ <default>'solid'</default>
+ <summary>Color Shading Type</summary>
+ <description>
+ How to shade the background color. Possible values are “horizontal”,
+ “vertical”, and “solid”.
+ </description>
+ </key>
+ <key name="show-desktop-icons" type="b">
+ <default>false</default>
+ <summary>Have file manager handle the desktop</summary>
+ <description>
+ If set to true, then file manager will draw the icons on the desktop.
+ </description>
+ </key>
+ </schema>
+</schemalist>
--
2.13.7

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Mon Nov 12 07:16:13 UTC 2018 - qkzhu@suse.com
- Add gsettings-desktop-schemas-fate324570-Add-key-for-GDM-background-configuration.patch:
+ Add settings for org.gnome.desktop.background.lockdialog
This key is for the background of lockDialogGroup which makes login
and lock background configurable. The default behavior will be
retained to what it is currently.
+ This patch is required by a patch in GNOME Shell
gnome-shell-fate324570-Make-GDM-background-image-configurable.patch
(fate#324570, glgo#GNOME/gnome-shell#680).
-------------------------------------------------------------------
Wed Sep 5 23:46:56 UTC 2018 - bjorn.lie@gmail.com

View File

@ -25,6 +25,10 @@ License: LGPL-2.1-or-later
Group: System/GUI/GNOME
URL: https://gnome.org/
Source0: http://download.gnome.org/sources/gsettings-desktop-schemas/3.28/%{name}-%{version}.tar.xz
# PATCH-FEATURE-OPENSUSE gsettings-desktop-schemas-fate324570-Add-key-for-GDM-background-configuration.patch fate#324570, glgo#GNOME/gnome-shell#680 qkzhu@suse.com -- This key is used by gnome-shell-fate324570-Make-GDM-background-image-configurable.patch
Patch0: gsettings-desktop-schemas-fate324570-Add-key-for-GDM-background-configuration.patch
BuildRequires: glib2-devel >= 2.31.0
BuildRequires: gobject-introspection-devel >= 1.31.0
BuildRequires: intltool
@ -53,6 +57,7 @@ This package contains development files.
%prep
%setup -q
%patch0 -p1
translation-update-upstream
%build
@ -73,6 +78,7 @@ translation-update-upstream
%{_datadir}/glib-2.0/schemas/org.gnome.desktop.a11y.magnifier.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.desktop.app-folders.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.desktop.background.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.desktop.background.lockdialog.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.desktop.calendar.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.desktop.datetime.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.desktop.default-applications.gschema.xml