RE: Large GTK Application design tips
- From: Paul Stuart <Paul_Stuart seektech com>
- To: Diego Jacobi <jacobidiego gmail com>, "gtk-list gnome org" <gtk-list gnome org>
- Subject: RE: Large GTK Application design tips
- Date: Fri, 12 Sep 2008 07:48:21 -0700
Great, thanks for the advice!
I'm curious; a number of people have recommended to "make your own widget". Is this recommendation purely to give one's application a unique feel, or is there an efficiency gain to be had in creating a custom widget?
Thanks again for the great tips everyone has given
-----Original Message-----
From: gtk-list-bounces gnome org [mailto:gtk-list-bounces gnome org] On Behalf Of Diego Jacobi
Sent: Friday, September 12, 2008 6:59 AM
To: gtk-list gnome org
Subject: 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,
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
>
_______________________________________________
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]