Skip to content

Commit e3bfa83

Browse files
committed
First commit with code.
1 parent 04c1806 commit e3bfa83

File tree

3 files changed

+73
-0
lines changed

3 files changed

+73
-0
lines changed

patch/patch.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "Replace eventsview setting by general settings",
3+
"description": "Force the little cog settings in EventsView to redirect to general settings isntead of events view settings.",
4+
"category": "homescreen",
5+
"infos": {
6+
"maintainer": "lp35"
7+
}
8+
}

patch/unified_diff.patch

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
--- /usr/share/lipstick-jolla-home-qt5/eventsview/EventsView.qml.orig 2017-11-26 16:45:34.510592790 +0100
2+
+++ /usr/share/lipstick-jolla-home-qt5/eventsview/EventsView.qml 2017-11-26 16:45:55.102429510 +0100
3+
@@ -354,7 +354,7 @@
4+
icon.source: "image://theme/icon-s-setting"
5+
6+
onClicked: {
7+
- favoriteSettingsLoader.showEventsSettings()
8+
+ favoriteSettingsLoader.showSettings()
9+
}
10+
}
11+
}
12+
13+
--- /usr/share/lipstick-jolla-home-qt5/eventsview/FavoriteSettingsLoader.qml.orig 2017-11-26 16:44:13.273346709 +0100
14+
+++ /usr/share/lipstick-jolla-home-qt5/eventsview/FavoriteSettingsLoader.qml 2017-11-26 16:45:07.278163752 +0100
15+
@@ -28,6 +28,10 @@
16+
settingsDbus.call("showEventsSettings", [])
17+
}
18+
19+
+ function showSettings() {
20+
+ settingsDbus.call("showSettings", [])
21+
+ }
22+
+
23+
DBusInterface {
24+
id: settingsDbus
25+

rpm/sailfish-os-patch-eventssettings

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Name: sailfishos-patch-eventsview-settings
2+
BuildArch: noarch
3+
Summary: Force the little cog setting icon in EventsView to redirect to general settings isntead of events view settings.
4+
Version: 1.0
5+
Release: 1
6+
Group: System/Patches
7+
License: GPLv2
8+
URL: https://github.com/lp35/sailfish-os-patch-eventsview-settings
9+
Source0: %{name}-%{version}.tar.xz
10+
Requires: patchmanager
11+
Requires: sailfish-version >= 2.1.3.7
12+
13+
%description
14+
%{summary}
15+
16+
%prep
17+
%setup -q -n %{name}-%{version}
18+
19+
20+
%build
21+
22+
%install
23+
rm -rf %{buildroot}
24+
25+
mkdir -p %{buildroot}/usr/share/patchmanager/patches/%{name}
26+
cp -r patch/* %{buildroot}/usr/share/patchmanager/patches/%{name}
27+
28+
%pre
29+
if [ -d /var/lib/patchmanager/ausmt/patches/%{name} ]; then
30+
/usr/sbin/patchmanager -u %{name} || true
31+
fi
32+
33+
%preun
34+
if [ -d /var/lib/patchmanager/ausmt/patches/%{name} ]; then
35+
/usr/sbin/patchmanager -u %{name} || true
36+
fi
37+
38+
%files
39+
%defattr(-,root,root,-)
40+
%{_datadir}/patchmanager/patches/%{name}

0 commit comments

Comments
 (0)