Re: Large GTK Application design tips
- From: "Diego Jacobi" <jacobidiego gmail com>
- To: gtk-list gnome org
- Subject: Re: Large GTK Application design tips
- Date: Fri, 12 Sep 2008 10:59:23 -0300
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 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
> http://www.bani.com.br
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]