Steffen Gutmann napisa?(a):
> Consider the following macros:
> 
> #define WindowObject gtk_widget_new(GTK_TYPE_WINDOW
> #define VBoxObject gtk_widget_new(GTK_TYPE_VBOX
[...]
> #define End NULL)
> 
> ... allows to write code like this:
> 
>     GtkWidget *win, *label, *ok, *cancel;
> 
>     win = WindowObject,
>         "child", VBoxObject,
>             "child", label = LabelObject,
>                 "label", _("Hello world!"),
>                 "wrap", FALSE.
>                 End,

Well, I don't want to let You down, but to me it looks
totally unreadable because of introducing a non-C-like
syntax. If I want to be readable - I'd rather follow the C-like syntax,
because it's very schematic and despite of its disadventages,
it's quite easy to browse for a developer with some basic GTK experience.

And if I want to be compact - that's what libglade is for.
Of course, it's just MY OWN opinion and it's likely that
someone would disagree with me :-)

Best regards,
Waldek


----------------------------------------------------------------------
Kliknij i zacznij dobrze zarabiac. Zyskaj 7% na lokacie! 
A moze jeszcze wiecej na najlepszych funduszach! 
Oferta dostepna tylko w Open Finance: http://link.interia.pl/f19ae



_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to