[colord] no cd_devce_get_profiles_sync in cd-device-sync.c

Richard Hughes hughsient at gmail.com
Tue Feb 25 01:37:12 PST 2014


On 25 February 2014 05:58, Sanford Rockowitz <rockowitz at minsoft.com> wrote:
> There's no cd_device_get_profiles_sync function in cd-device-sync.c, and
> corresponding function for Python Colord.Device.

Hi Sanford. There's no sync version as the method doesn't do anything,
i.e. it's an accessor rather than something that can take time (noted
by the lack of a GCancellable). It's also something that can't fail
(noted by the lack of GError), so the method really shouldn't
segfault.

I've just tried here, and this program seems to reproduce the problem
you're seeing:

from gi.repository import Colord
from gi.repository import Gio
cancellable = Gio.Cancellable.new();
client = Colord.Client.new()
client.connect_sync(cancellable)
devices = client.get_devices_sync(cancellable)
for d in devices:
    d.connect_sync(cancellable)
    profiles = d.get_profiles()
    for p in profiles:
        p.connect_sync(cancellable)
        print p.get_filename()

I'll debug now and see what I can find.

Richard


More information about the colord mailing list