[Bug 1390643] Re: Orientation lock switch doesn't notice gsettings changes

2014-11-17 Thread Chris Gagnon
** Also affects: ubuntu-system-settings (Ubuntu RTM)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1390643

Title:
  Orientation lock switch doesn't notice gsettings changes

To manage notifications about this bug go to:
https://bugs.launchpad.net/gsettings-qt/+bug/1390643/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1390643] Re: Orientation lock switch doesn't notice gsettings changes

2014-11-11 Thread Sebastien Bacher
the issue should be already fixed with
https://launchpad.net/ubuntu/+source/ubuntu-system-
settings/0.3+15.04.20141105.1-0ubuntu1

that's being backported to rtm next

** Changed in: ubuntu-system-settings (Ubuntu)
   Status: In Progress = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1390643

Title:
  Orientation lock switch doesn't notice gsettings changes

To manage notifications about this bug go to:
https://bugs.launchpad.net/gsettings-qt/+bug/1390643/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1390643] Re: Orientation lock switch doesn't notice gsettings changes

2014-11-10 Thread Lars Uebernickel
The problem seems to be that the binding (checked:
systemSettings.rotationLock) gets destroyed when assigning the value in
the click handler. It works if you either explicitly set the value in
onChanged of the settings object:

  GSettings {
id: systemSettings
schema.id: com.ubuntu.touch.system
onChanged: control.checked = settings.rotationLock
  }

That's a bit ugly, because now the settings object needs to know about
all UI elements that depend on it. Alternatively, you can use the
Binding element:

  Binding {
target: control
property: 'checked'
value: systemSettings.rotationLock
  }

To be honest, I don't know what the difference between the two ways of
binding properties is, but the one with the Binding element works in my
test.

(Removing gsettings-qt, as it's not a bug in that)

** Changed in: gsettings-qt
   Status: New = Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1390643

Title:
  Orientation lock switch doesn't notice gsettings changes

To manage notifications about this bug go to:
https://bugs.launchpad.net/gsettings-qt/+bug/1390643/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1390643] Re: Orientation lock switch doesn't notice gsettings changes

2014-11-10 Thread Sebastien Bacher
** Changed in: ubuntu-system-settings (Ubuntu)
   Importance: Undecided = High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1390643

Title:
  Orientation lock switch doesn't notice gsettings changes

To manage notifications about this bug go to:
https://bugs.launchpad.net/gsettings-qt/+bug/1390643/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1390643] Re: Orientation lock switch doesn't notice gsettings changes

2014-11-10 Thread MichaƂ Sawicz
We have a general lack of two-way bindings (and for a reason, they're
not trivial in async world). Using Binding { } is preferable over
assignment in a signal handler, though.

And yeah, the original binding is destroyed because the component
assigns a value to its checked property, so the binding has nowhere to
live any more. Having an explicit Binding { } object works around
this. Because checked changes onClick anyway, you should probably use
a Binding the other way, too, instead of assigning to
systemSettings.rotationLock.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1390643

Title:
  Orientation lock switch doesn't notice gsettings changes

To manage notifications about this bug go to:
https://bugs.launchpad.net/gsettings-qt/+bug/1390643/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1390643] Re: Orientation lock switch doesn't notice gsettings changes

2014-11-10 Thread Sebastien Bacher
** Changed in: ubuntu-system-settings (Ubuntu)
   Status: Confirmed = In Progress

** Changed in: ubuntu-system-settings (Ubuntu)
 Assignee: (unassigned) = Sebastien Bacher (seb128)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1390643

Title:
  Orientation lock switch doesn't notice gsettings changes

To manage notifications about this bug go to:
https://bugs.launchpad.net/gsettings-qt/+bug/1390643/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1390643] Re: Orientation lock switch doesn't notice gsettings changes

2014-11-10 Thread Launchpad Bug Tracker
** Branch linked: lp:~seb128/ubuntu-system-settings/orientation-use-
binding

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1390643

Title:
  Orientation lock switch doesn't notice gsettings changes

To manage notifications about this bug go to:
https://bugs.launchpad.net/gsettings-qt/+bug/1390643/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1390643] Re: Orientation lock switch doesn't notice gsettings changes

2014-11-10 Thread Olli Ries
** Tags added: rtm14 touch-2014-11-06

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1390643

Title:
  Orientation lock switch doesn't notice gsettings changes

To manage notifications about this bug go to:
https://bugs.launchpad.net/gsettings-qt/+bug/1390643/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1390643] Re: Orientation lock switch doesn't notice gsettings changes

2014-11-07 Thread Charles Kerr
Adding gsettings-qt for another pair of eyes because at first glance the
u-s-s code looks alright:

http://bazaar.launchpad.net/~system-settings-touch/ubuntu-system-
settings/rtm-14.09/view/head:/plugins/orientation-
lock/EntryComponent.qml?start_revid=935

control: Switch {
id: control
objectName: orientationLockSwitch
checked: systemSettings.rotationLock
onClicked: {
systemSettings.rotationLock = checked
}
GSettings {
id: systemSettings
schema.id: com.ubuntu.touch.system
}
}

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1390643

Title:
  Orientation lock switch doesn't notice gsettings changes

To manage notifications about this bug go to:
https://bugs.launchpad.net/gsettings-qt/+bug/1390643/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1390643] Re: Orientation lock switch doesn't notice gsettings changes

2014-11-07 Thread Omer Akram
** Changed in: ubuntu-system-settings (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1390643

Title:
  Orientation lock switch doesn't notice gsettings changes

To manage notifications about this bug go to:
https://bugs.launchpad.net/gsettings-qt/+bug/1390643/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1390643] Re: Orientation lock switch doesn't notice gsettings changes

2014-11-07 Thread Charles Kerr
** Also affects: gsettings-qt
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1390643

Title:
  Orientation lock switch doesn't notice gsettings changes

To manage notifications about this bug go to:
https://bugs.launchpad.net/gsettings-qt/+bug/1390643/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs