Bug 18056

Summary: tp_connection_manager_get_name() would be nice
Product: Telepathy Reporter: Murray Cumming <murrayc>
Component: tp-glibAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Murray Cumming 2008-10-14 02:07:24 UTC
This is tedious:

  /* Get the connection manager name: */
  gchar *cm_name = NULL;
  g_object_get (G_OBJECT(cm),
    "connection-manager", &cm_name,
    NULL);

So this would be nicer:

gchar* cm_name = tp_connection_manager_get_name (cm);
Comment 1 Simon McVittie 2008-10-14 03:20:12 UTC
The idea was that you'd just use the read-only member connection_manager->name (which is marked as public at the moment).

I realise public struct members are often considered harmful; we're gradually introducing C convenience API and deprecating direct access (TpProxy will get this in the next version, TpChannel already has it).
Comment 2 Simon McVittie 2009-02-16 10:03:49 UTC
Fixed in 0.7.26, along with lots of other "C bindings" for TpConnectionManager

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.