[Telepathy] tp_cli_connection_manager_run_request_connection(): What parameter types.

Murray Cumming murrayc at murrayc.com
Mon Oct 27 12:29:57 PDT 2008

On Mon, 2008-10-27 at 19:03 +0000, Will Thompson wrote:
> > Thanks. Shouldn't there be a varargs version of this function. It's
> > generally unpleasant to deal with GValues. For instance,
> > http://library.gnome.org/devel/gtk/unstable/GtkListStore.html#gtk-list-store-set
> >   
> Well, we could construct a function that lets you say something like:
>     g_hash_table_build (parameters, "account", G_TYPE_STRING,
>     "murrayc at murrayc.com", "require-encryption", G_TYPE_BOOLEAN, TRUE,
>     NULL);

The G_TYPE_STRING would be unnecessary, because telepathy-glib should
know what type to expect for the "account" value. That's what
GtkTreeModel and similar APIs do.

It leads to weird crashes if you get it wrong, but that's C.

Murray Cumming
murrayc at murrayc.com

More information about the Telepathy mailing list