Re: Large GTK Application design tips

I recommend you to use:

GtkBuilder instead of depending with libglade.

GtkActions, GtkActionGroups and GtkUIManager for every single action
that the user can do in your aplication, then create Toolbars or
menubars with thoose action or make your own widgets with thoose
actions, the code will be much more clear.

Use gtk_idle_add instead of g_thread_*.

Create your own widgets on top of existents, one for the main window,
one for the main worker widget, etc

I preffer to just use C. Is faster and lowest memory usage.

I try to do everything with glib and gtk as much as you can. Like not
using stdio.h. Replace printf for g_printf always and int for g_int,


2008/9/12 Jonh Wendell <jwendell gnome org>:
> On Sex, 2008-09-12 at 11:20 +0100, Lukasz Gromotowicz wrote:
>> I am writtin an embedded application (GUI) in GTK. It is my first
>> contact with GTK, and so far I learnt:
>> 1. using glade and libglade is briliant idea.
> Nowadays you can use GtkBuilder (instead of libglade) which is part of
> gtk+.
> Cheers,
> --
> Jonh Wendell
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]