Reply
Thread Tools
Posts: 32 | Thanked: 2 times | Joined on Jun 2014
#641
Originally Posted by J4ZZ View Post
Your VolumeSlider.qml in
Code:
/usr/share/jolla-settings/pages/sounds/
should look like this

Code:
import QtQuick 2.0
import Sailfish.Silica 1.0
import com.jolla.settings.system 1.0
import org.nemomobile.systemsettings 1.0
import Sailfish.Ambience 1.0

Slider {
    id: slider

    property string entryPath

    //% "Default ringtone volume"
    label: qsTrId("settings_sounds_la_volume")
    maximumValue: 100
    minimumValue: 1
    value: profileControl.ringerVolume

    onValueChanged: profileControl.ringerVolume = value
    onPressAndHold: cancel()

    Profile {
        id: profileControl
        onRingerVolumeChanged: slider.value = profileControl.ringerVolume
    }
}

then the patch will work!
Hi @J4ZZ thank you for your hint but still not works. Command line looks like this:
Code:
patch --dry-run -p 1 -d / -i /usr/share/patchmanager/patches/                                       sailfishos-eventsview-controls-remastered-patch/unified_diff.patch
patching file usr/share/lipstick-jolla-home-qt5/eventsview/EventsView.qml
patching file usr/share/lipstick-jolla-home-qt5/eventsview/EventsViewList.qml
patching file usr/share/lipstick-jolla-home-qt5/eventsview/FavoritesZoneControls                                       .qml
patching file usr/share/jolla-settings/pages/sounds/VolumeSlider.qml
Reversed (or previously applied) patch detected!  Assume -R? [n] y
patching file usr/share/jolla-settings/pages/mobilenetworking/DataConnection.qml
patching file usr/share/jolla-settings/pages/bluetooth/EnableSwitch.qml
patching file usr/share/jolla-settings/pages/gps_and_location/LocationSwitch.qml
[root@Jolla nemo]#
To be honest I have no idea what happened but the patch is still not working :-(.I tried this run from command line and I tried run the patch from patchmanager, still "Failed to install patch".

Do you know what is wrong please?
 
Eminem's Avatar
Posts: 212 | Thanked: 184 times | Joined on May 2010 @ Sweden
#642
Originally Posted by J4ZZ View Post
I'm pretty sure you do!
Oops, got the folder but not the file.
Attached Images
 
__________________
And the natural balance is restored to the universe
 
Posts: 539 | Thanked: 518 times | Joined on May 2010 @ nanaurbusiness
#643
Originally Posted by cizi View Post
Hi @J4ZZ thank you for your hint but still not works. Command line looks like this:
[CODE]patch --dry-run -p 1 -d / -i /usr/share/patchmanager/patches/ sailfishos-eventsview-controls-remastered-patch/unified_diff.patch
patching file usr/share/jolla-settings/pages/sounds/VolumeSlider.qml
Reversed (or previously applied) patch detected! Assume -R? [n] y
CODE]

To be honest I have no idea what happened but the patch is still not working :-(.I tried this run from command line and I tried run the patch from patchmanager, still "Failed to install patch".

Do you know what is wrong please?
Sorry mate, I accently provided the content of an already patched VolumeSlider.qml...

here's the correct one (unpatched) VolumeSlider.qml

Code:
import QtQuick 2.0
import Sailfish.Silica 1.0
import com.jolla.settings.system 1.0
import org.nemomobile.systemsettings 1.0


Slider {
    id: slider

    property string entryPath

    //% "Default ringtone volume"
    label: qsTrId("settings_sounds_la_volume")
    maximumValue: 100
    minimumValue: 1
    value: profileControl.ringerVolume

    onValueChanged: profileControl.ringerVolume = value
    onPressAndHold: cancel()

    ProfileControl {
        id: profileControl
        onRingerVolumeChanged: slider.value = profileControl.ringerVolume
    }
}
__________________

N900 ~ $ make me a sandwich
-bash: no, make it yourself
N900 ~ $ sudo make me a sandwich
-bash: ok then...

Last edited by J4ZZ; 2014-12-30 at 14:24.
 
Posts: 539 | Thanked: 518 times | Joined on May 2010 @ nanaurbusiness
#644
Originally Posted by Eminem View Post
Oops, got the folder but not the file.
Could you post the output of
Code:
patch --dry-run -p 1 -d / -i /usr/share/patchmanager/patches/sailfishos-eventsview-controls-remastered-patch/unified_diff.patch
please?
__________________

N900 ~ $ make me a sandwich
-bash: no, make it yourself
N900 ~ $ sudo make me a sandwich
-bash: ok then...
 
Eminem's Avatar
Posts: 212 | Thanked: 184 times | Joined on May 2010 @ Sweden
#645
Code:
[root@Jolla Downloads]# patch --dry-run -p 1 -d / -i /usr/share/patchmanager/patches/sailfishos-eventsview-controls-remastered-patch/unified_diff.patch
patching file usr/share/lipstick-jolla-home-qt5/eventsview/EventsView.qml
patching file usr/share/lipstick-jolla-home-qt5/eventsview/EventsViewList.qml
The next patch would create the file usr/share/lipstick-jolla-home-qt5/eventsview/FavoritesZoneControls.qml,
which already exists!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
patching file usr/share/jolla-settings/pages/sounds/VolumeSlider.qml
Hunk #2 FAILED at 18.
1 out of 2 hunks FAILED -- saving rejects to file usr/share/jolla-settings/pages/sounds/VolumeSlider.qml.rej
patching file usr/share/jolla-settings/pages/mobilenetworking/DataConnection.qml
patching file usr/share/jolla-settings/pages/bluetooth/EnableSwitch.qml
patching file usr/share/jolla-settings/pages/gps_and_location/LocationSwitch.qml
[root@Jolla Downloads]#
__________________
And the natural balance is restored to the universe
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#646
You just wait a bit. I'll update patches tomorrow.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 3 Users Say Thank You to coderus For This Useful Post:
Posts: 56 | Thanked: 34 times | Joined on Dec 2011 @ finland
#647
Everyones talking about control center but how can I get 5x6 appgrid working? or is it working for every1 else and I just messed up something?

Last edited by TrD; 2014-12-30 at 18:35.
 
Posts: 539 | Thanked: 518 times | Joined on May 2010 @ nanaurbusiness
#648
Originally Posted by Eminem View Post
Code:
[root@Jolla Downloads]# 
The next patch would create the file usr/share/lipstick-jolla-home-qt5/eventsview/FavoritesZoneControls.qml
patching file usr/share/jolla-settings/pages/sounds/VolumeSlider.qml
edit the content of your VolumeSlider.qml like I described above for user cizi and additionally remove or rename FavoritesZoneControls.qml... I marked the paths in red.
__________________

N900 ~ $ make me a sandwich
-bash: no, make it yourself
N900 ~ $ sudo make me a sandwich
-bash: ok then...
 

The Following User Says Thank You to J4ZZ For This Useful Post:
Posts: 539 | Thanked: 518 times | Joined on May 2010 @ nanaurbusiness
#649
Originally Posted by TrD View Post
Everyones talking about control center but how can I get 5x6 appgrid working? or is it working for every1 else and I just messed up something?
Yes it works fine, but is also included in launcher-combined-patches
So basically 5x6 patch is not needed anymore.
__________________

N900 ~ $ make me a sandwich
-bash: no, make it yourself
N900 ~ $ sudo make me a sandwich
-bash: ok then...
 
Eminem's Avatar
Posts: 212 | Thanked: 184 times | Joined on May 2010 @ Sweden
#650
Originally Posted by J4ZZ View Post
edit the content of your VolumeSlider.qml like I described above for user cizi and additionally remove or rename FavoritesZoneControls.qml... I marked the paths in red.
Output after editing is:

Code:
[root@Jolla ~]# patch --dry-run -p 1 -d / -i /usr/share/patchmanager/patches/sailfishos-eventsview-controls-remastered-patch/unified_diff.patch
patching file usr/share/lipstick-jolla-home-qt5/eventsview/EventsView.qml
patching file usr/share/lipstick-jolla-home-qt5/eventsview/EventsViewList.qml
patching file usr/share/lipstick-jolla-home-qt5/eventsview/FavoritesZoneControls.qml
patching file usr/share/jolla-settings/pages/sounds/VolumeSlider.qml
patching file usr/share/jolla-settings/pages/mobilenetworking/DataConnection.qml
patching file usr/share/jolla-settings/pages/bluetooth/EnableSwitch.qml
patching file usr/share/jolla-settings/pages/gps_and_location/LocationSwitch.qml
[root@Jolla ~]#
__________________
And the natural balance is restored to the universe
 
Reply

Tags
patchmanager, sailfish os


 
Forum Jump


All times are GMT. The time now is 05:35.