[Gossip-dev] Re: [Telepathy] GossipProtocol problems

Xavier Claessens xclaesse at gmail.com
Tue Oct 17 11:46:48 CEST 2006


Le mardi 17 octobre 2006 à 09:55 +0100, Martyn Russell a écrit :
> > 
> > The point of the standard parameter names as defined in the spec is that
> > you can ship translations for these and use them. If you don't know what
> > a parameter is, it's not
> 
> I disagree here. It makes sense for the backend to state in friendly 
> terms what the parameter is for because the backend knows better than 
> the UI what it is for and for UIs implementing a generic interface it 
> will just work (TM).

If translation and a short help text for each parameter is given by the
UI we'll get different naming in each UI and duplicated work for
translators. I think it really make sense to have it in the backend.

> >> We also would need default/example parameters for usernames/ports, etc.
> >> I think having no value is less informative and it doesn't harm to have
> >> it. We also make use of the example username in the username field
> >> (where it would apply on a per protocol basis of course) and select it
> >> so that users have a clue as to the format of the username.
> > 
> > Similar to above, you should probably just recognise which format of
> > account names different protocols have, and show an example if you know it.
> 
> I agree and disagree here :)
> 
> For somethings, it desn't really matter (like the port) I think. For 
> things like "username" I think it is important to have a default value 
> because otherwise it means new users to a protocol will not know the 
> format to use for creating a new account. This sort of thing is helpful 
> to the user and makes the UI much more friendly.

Maybe what we can do in gossip is to not use default values to set the
value of parameters but instead keep this value separately as an example
for the UI.

We can have something like that:

typedef struct {
	GossipAccountParamFlags flags;
	/* The value set by the user,
	 * or let unset to tell tp to use the default. */
	GValue                  value;
	/* The default value from tp, used as example in UI */
	GValue                  example;
} GossipAccountParam;

What about that ?

Xavier.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.imendio.com/pipermail/gossip-dev/attachments/20061017/e7b9729a/attachment.pgp


More information about the Gossip-dev mailing list