Re: GParamSpec
- From: Tim Janik <timj gtk org>
- To: Owen Taylor <otaylor redhat com>
- Cc: Chema Celorio <chema ximian com>, Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: GParamSpec
- Date: Wed, 20 Jun 2001 06:12:28 +0200 (CEST)
On 19 Jun 2001, Owen Taylor wrote:
> Chema Celorio <chema ximian com> writes:
>
> > I restarted work on glade2 (already on the GNOME CVS) and i am starting
> > to query gtk to get the widget parameters. You asked me in GUADEC to let
> > you know about problems i have with it and not add that info in glade2
> > and try to add it inside gtk. So here are the first two problems i've
> > encountered.
> >
> > - I need to change the name of the paramters, gtk gives me for example
> > "type" (for type of window) I need to have "Type" in the editor. For the
> > enum values it returns "popup" and "toplevel", I need "Popup" and
> > "Toplevel". Another thing that we need is to be able to translate the
> > parameters, so the solution can be to just have in the current xml that
> > describes a widget a mapping between the name of the widget and the
> > translated name. Or how did you planned to do translations ?
>
> Each parameter has three strings associated with it:
>
> gchar *name;
> gchar *nick;
> gchar *blurb;
>
> name: the name of the property "Type"
> nick: The programmatic name of the property "type"
> blurb: tooltip "
>
> Whether for better or worse (worse being bloat and translator
> fun), name and blurb are marked for translation, and when
> you retrieve them from GTK+, you'll get them in translated
> form. The nick is not marked for translation, should not
> be translated, and would not be expected to appear in
> your interface, only in the glade file.
you confused name with nick here. name is the canonical "border_width",
i.e. the property name, while nick is internationalizable and suitable
for GUIs "Border Width".
>
> Regards,
> Owen
>
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]