Bug 34813

Summary: provide convenience functions that use GBindings
Product: Telepathy Reporter: Danielle Madeley <danielle>
Component: tp-glibAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium Keywords: patch
Version: git master   
Hardware: Other   
OS: All   
URL: http://git.collabora.co.uk/?p=user/danni/telepathy-glib.git;a=shortlog;h=refs/heads/gbindings
Whiteboard:
i915 platform: i915 features:

Description Danielle Madeley 2011-02-27 22:26:55 UTC
GBindings are pretty cool, I have recently found myself binding the TpAccount:connection-status property to GtkWidget:sensitive to make parts of the UI only go sensitive when the connection is connected.

There is a little bit of code required to set them up, since we're not just binding boolean properties together, so it would be nice to put this in tp-glib.
Comment 2 Will Thompson 2011-02-28 05:23:35 UTC
Nifty!
Comment 3 Danielle Madeley 2011-02-28 05:26:00 UTC
Merged.
Comment 4 Danielle Madeley 2011-02-28 16:59:36 UTC
Having explored this a bit further, I wonder if we need to support an inversion (i.e. False if connected). This allows us to bind the "visible" property of a GtkInfoBar that will appear when the account is disconnected.
Comment 5 Danielle Madeley 2011-02-28 17:22:17 UTC
http://git.collabora.co.uk/?p=user/danni/telepathy-glib.git;a=shortlog;h=refs/heads/gbindings

One more patch to add an @invert parameter.
Comment 6 Guillaume Desmottes 2011-03-03 02:28:15 UTC
Looks good to me. I merged it to master.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.