Re: Large GTK Application design tips

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

 



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,
etc.

Cheers.
Diego



2008/9/12 Jonh Wendell <jwendell@xxxxxxxxx>:
> 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
> http://www.bani.com.br
>
> _______________________________________________
> gtk-list mailing list
> gtk-list@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux