Bug 34813 - provide convenience functions that use GBindings
Summary: provide convenience functions that use GBindings
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-glib (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL: http://git.collabora.co.uk/?p=user/da...
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2011-02-27 22:26 UTC by Danielle Madeley
Modified: 2011-03-03 02:28 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.