Package gnome-tweaks init with version 3.34.0
This commit is contained in:
parent
e26e1c85bc
commit
f087e1e0b9
12
0002-extensions-Fix-preferences-opening.patch
Normal file
12
0002-extensions-Fix-preferences-opening.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up ./gtweak/tweaks/tweak_group_shell_extensions.py.orig ./gtweak/tweaks/tweak_group_shell_extensions.py
|
||||
--- ./gtweak/tweaks/tweak_group_shell_extensions.py.orig 2019-09-27 13:15:56.000000000 +0200
|
||||
+++ ./gtweak/tweaks/tweak_group_shell_extensions.py 2020-04-04 12:47:37.398869243 +0200
|
||||
@@ -159,7 +159,7 @@ class _ShellExtensionTweak(Gtk.ListBoxRo
|
||||
sw.set_active(False)
|
||||
|
||||
def _on_configure_clicked(self, btn, uuid):
|
||||
- execute_subprocess(['gnome-shell-extension-prefs', uuid], block=False)
|
||||
+ execute_subprocess(['gnome-extensions', 'prefs', uuid], block=False)
|
||||
|
||||
def _on_extension_toggled(self, sw, active, uuid):
|
||||
if not sw.get_active():
|
||||
Binary file not shown.
84
gnome-tweaks-3.34.0-use-libhandy1_port_to_libhandy1-60.patch
Normal file
84
gnome-tweaks-3.34.0-use-libhandy1_port_to_libhandy1-60.patch
Normal file
@ -0,0 +1,84 @@
|
||||
From 031369f8aa4afa5a1bd1761236953112be3ee2b6 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?X=E2=84=B9=20Ruoyao?= <xry111@mengyan1223.wang>
|
||||
Date: Thu, 8 Oct 2020 15:53:35 +0800
|
||||
Subject: [PATCH] port to libhandy-1
|
||||
|
||||
---
|
||||
README.md | 2 +-
|
||||
gnome-tweaks | 2 +-
|
||||
gtweak/tweakview.py | 14 ++++++--------
|
||||
3 files changed, 8 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/README.md b/README.md
|
||||
index daa1cc7..8f6a143 100644
|
||||
--- a/README.md
|
||||
+++ b/README.md
|
||||
@@ -21,7 +21,7 @@ RUNTIME DEPENDENCIES
|
||||
- GLib (>= 2.58)
|
||||
- GTK+ 3 (>= 3.12)
|
||||
- gnome-desktop (>= 3.30)
|
||||
- - libhandy
|
||||
+ - libhandy (>= 1.0)
|
||||
- libsoup
|
||||
- libnotify
|
||||
- Pango
|
||||
diff --git a/gnome-tweaks b/gnome-tweaks
|
||||
index d4a6455..a244a85 100755
|
||||
--- a/gnome-tweaks
|
||||
+++ b/gnome-tweaks
|
||||
@@ -12,7 +12,7 @@ import sys
|
||||
|
||||
import gi
|
||||
gi.require_version("Gtk", "3.0")
|
||||
-gi.require_version("Handy", "0.0")
|
||||
+gi.require_version("Handy", "1")
|
||||
|
||||
import gtweak
|
||||
from gtweak.defs import VERSION
|
||||
diff --git a/gtweak/tweakview.py b/gtweak/tweakview.py
|
||||
index 5de11d6..a02e52d 100644
|
||||
--- a/gtweak/tweakview.py
|
||||
+++ b/gtweak/tweakview.py
|
||||
@@ -23,8 +23,7 @@ class Window(Gtk.ApplicationWindow):
|
||||
self.hsize_group = Gtk.SizeGroup(mode=Gtk.SizeGroupMode.HORIZONTAL)
|
||||
|
||||
self.main_box = Handy.Leaflet()
|
||||
- self.main_box.set_mode_transition_type(Handy.LeafletModeTransitionType.SLIDE)
|
||||
- self.main_box.set_child_transition_type(Handy.LeafletChildTransitionType.SLIDE)
|
||||
+ self.main_box.set_transition_type(Handy.LeafletTransitionType.SLIDE)
|
||||
|
||||
left_box = self.sidebar()
|
||||
right_box = self.main_content()
|
||||
@@ -68,14 +67,13 @@ class Window(Gtk.ApplicationWindow):
|
||||
def titlebar(self):
|
||||
|
||||
header = Handy.Leaflet()
|
||||
- header.set_mode_transition_type(Handy.LeafletModeTransitionType.SLIDE)
|
||||
- header.set_child_transition_type(Handy.LeafletChildTransitionType.SLIDE)
|
||||
+ header.set_transition_type(Handy.LeafletTransitionType.SLIDE)
|
||||
header.connect("notify::visible-child", self._update_decorations)
|
||||
header.connect("notify::fold", self._update_decorations)
|
||||
|
||||
- left_header = Gtk.HeaderBar()
|
||||
+ left_header = Handy.HeaderBar()
|
||||
left_header.props.show_close_button = True
|
||||
- right_header = Gtk.HeaderBar()
|
||||
+ right_header = Handy.HeaderBar()
|
||||
right_header.props.show_close_button = True
|
||||
right_header.props.hexpand = True
|
||||
|
||||
@@ -226,9 +224,9 @@ class Window(Gtk.ApplicationWindow):
|
||||
def _update_decorations(self, *_):
|
||||
header = self.get_titlebar()
|
||||
if header.props.folded:
|
||||
- self.header_group.set_focus(header.get_visible_child())
|
||||
+ self.header_group.set_decorate_all(True)
|
||||
else:
|
||||
- self.header_group.set_focus(None)
|
||||
+ self.header_group.set_decorate_all(False)
|
||||
|
||||
def _after_key_press(self, widget, event):
|
||||
if not self.button.get_active() or not self.entry.is_focus():
|
||||
--
|
||||
GitLab
|
||||
|
||||
BIN
gnome-tweaks-3.34.0.tar.xz
Normal file
BIN
gnome-tweaks-3.34.0.tar.xz
Normal file
Binary file not shown.
@ -1,60 +1,61 @@
|
||||
Name: gnome-tweaks
|
||||
Version: 3.30.2
|
||||
Release: 3
|
||||
Summary: Customize advanced GNOME 3 options
|
||||
|
||||
Version: 3.34.0
|
||||
Release: 1
|
||||
Summary: Previously known as Tweak Tool. Graphical interface for advanced GNOME 3 settings.
|
||||
License: GPLv3 and CC0
|
||||
URL: https://wiki.gnome.org/action/show/Apps/Tweaks
|
||||
Source0: https://download.gnome.org/sources/gnome-tweaks/3.30/gnome-tweaks-3.30.2.tar.xz
|
||||
|
||||
Patch0001: 0001-extensions-Fix-opening-system-installed-extensions-i.patch
|
||||
|
||||
BuildRequires: gettext desktop-file-utils meson libappstream-glib python3-devel
|
||||
Requires: gnome-desktop3 gnome-settings-daemon gnome-shell >= 3.24 gnome-shell-extension-user-theme pango
|
||||
Requires: gobject-introspection gsettings-desktop-schemas gtk3 libnotify libsoup mutter python3dist(pygobject)
|
||||
Provides: gnome-tweak-tool = %{version}-%{release}
|
||||
Obsoletes: gnome-tweak-tool < 3.27.3-4
|
||||
URL: https://wiki.gnome.org/Apps/Tweaks
|
||||
Source0: https://download.gnome.org/sources/%{name}/3.34/%{name}-%{version}.tar.xz
|
||||
Patch0: 0001-extensions-Fix-opening-system-installed-extensions-i.patch
|
||||
Patch1: 0002-extensions-Fix-preferences-opening.patch
|
||||
Patch3: gnome-tweaks-3.34.0-use-libhandy1_port_to_libhandy1-60.patch
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: meson desktop-file-utils libappstream-glib gettext
|
||||
|
||||
Requires: python3 python3-gobject >= 3.10 gnome-settings-daemon sound-theme-freedesktop
|
||||
Requires: glib2 >= 2.58 gtk3 >= 3.12 gnome-desktop3 >= 3.30 libhandy >= 1.0 libsoup libnotify
|
||||
Requires: pango gsettings-desktop-schemas >= 3.33.0 gnome-shell >= 3.24 mutter gnome-software
|
||||
Requires: nautilus gnome-shell-extension-desktop-icons
|
||||
|
||||
Provides: gnome-tweak-tool = %{version}-%{release}
|
||||
|
||||
%description
|
||||
This package allows advanced configuration adjustments
|
||||
in GNOME 3 to replace things like users.
|
||||
GNOME Tweaks allows customizing looks, behavior or settings of your desktop in GNOME 3.
|
||||
The concrete settings inclute fonts, themes, colors, windows and so on.
|
||||
Tweaks is designed for GNOME Shell but can be used in other desktops.
|
||||
A few features will be missing when Tweaks is run on a different desktop.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
|
||||
%build
|
||||
%meson
|
||||
%meson_build
|
||||
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/metainfo/org.gnome.tweaks.appdata.xml \
|
||||
https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnome-tweak-tool/a.png \
|
||||
https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnome-tweak-tool/b.png
|
||||
|
||||
%find_lang gnome-tweaks
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
%check
|
||||
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.tweaks.desktop
|
||||
appstream-util validate-relax --nonet $RPM_BUILD_ROOT/%{_datadir}/metainfo/org.gnome.tweaks.appdata.xml
|
||||
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
|
||||
appstream-util validate-relax --nonet $RPM_BUILD_ROOT/%{_datadir}/metainfo/*.appdata.xml
|
||||
|
||||
|
||||
%files -f gnome-tweaks.lang
|
||||
%files -f %{name}.lang
|
||||
%doc AUTHORS NEWS README.md
|
||||
%license LICENSES/
|
||||
%license LICENSES/*
|
||||
%{_bindir}/gnome-tweaks
|
||||
%{_libexecdir}/gnome-tweak-tool-lid-inhibitor
|
||||
%{python3_sitelib}/gtweak/
|
||||
%{_datadir}/gnome-tweaks/
|
||||
%{_datadir}/icons/hicolor/*
|
||||
%{_datadir}/metainfo/org.gnome.tweaks.appdata.xml
|
||||
%{_datadir}/applications/org.gnome.tweaks.desktop
|
||||
|
||||
%{_libexecdir}/gnome-tweak-tool-lid-inhibitor
|
||||
%{_datadir}/applications/*.desktop
|
||||
%{_datadir}/gnome-tweaks/*
|
||||
%{_datadir}/icons/hicolor/*/apps/org.gnome.tweaks.svg
|
||||
%{_datadir}/icons/hicolor/symbolic/apps/org.gnome.tweaks-symbolic.svg
|
||||
%{_datadir}/metainfo/*.appdata.xml
|
||||
|
||||
%changelog
|
||||
* Tue Sep 16 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 3.34.0-1
|
||||
- Package gnome-tweaks init with version 3.34.0
|
||||
|
||||
* Thu Nov 14 2019 wangye<wangye54@huawei.com> - 3.30.2-3
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user