hi,
Wallace Owen wrote:
On Mon, 2005-10-24 at 17:21 -0400, Tristan Van Berkom wrote:
...
I just wanted to point out that the user data argument is usable and
efficient (since nobody had mentioned that yet).
Ofcourse there are cases where it isn't convenient to use the user_data;
I might as we
On Mon, 2005-10-24 at 17:21 -0400, Tristan Van Berkom wrote:
> ...
> I just wanted to point out that the user data argument is usable and
> efficient (since nobody had mentioned that yet).
>
> Ofcourse there are cases where it isn't convenient to use the user_data;
> I might as well also note that
Gus Koppel wrote:
Tristan Van Berkom wrote:
Every widget callback comes with a "user_data" argument,
and you can pass the desired data through that argument
(which is just as fast as using a global variable and is
just as clean as using a lookup_widget type of routine).
Right. However, if y
Tristan Van Berkom wrote:
> Every widget callback comes with a "user_data" argument,
> and you can pass the desired data through that argument
> (which is just as fast as using a global variable and is
> just as clean as using a lookup_widget type of routine).
Right. However, if you want your sig
] En nombre de César Leonardo
Blum Silveira
Enviado el: Sunday, 23 October, 2005 12:32
Para: Gus Koppel; gtk-app-devel-list
Asunto: Re: Programming style
Thanks for your answer!
So, as my app is a Glade app, I can use that lookup_widget() function you
mentioned? Otherwise I would use your
On Sat, 2005-10-22 at 11:49, César Leonardo Blum Silveira wrote:
> Hello all,
>
> I have a few doubts about the way I code my GTK applications. One of
> them is: Is it ok to use many global variables for the widgets? For
> example, in a glade app where callbacks are of the form
>
> void callback(
César Leonardo Blum Silveira wrote:
Hello all,
I have a few doubts about the way I code my GTK applications. One of
them is: Is it ok to use many global variables for the widgets? For
example, in a glade app where callbacks are of the form
void callback(GtkWidget *widget)
Note that you dont h
César Leonardo Blum Silveira wrote:
> Thanks for your answer!
>
> So, as my app is a Glade app, I can use that lookup_widget() function
> you mentioned? Otherwise I would use your function :-)
That's correct. For fully Glade-built UIs both functions are usable.
Mine is just a more generic versio
Thanks for your answer!
So, as my app is a Glade app, I can use that lookup_widget() function
you mentioned? Otherwise I would use your function :-)
Thanks again
On 10/23/05, Gus Koppel <[EMAIL PROTECTED]> wrote:
> César Leonardo Blum Silveira wrote:
>
> > I have a few doubts about the way I cod
César Leonardo Blum Silveira wrote:
> I have a few doubts about the way I code my GTK applications. One of
> them is: Is it ok to use many global variables for the widgets? For
> example, in a glade app where callbacks are of the form
>
> void callback(GtkWidget *widget)
>
> I can only have acce
the case of a Glade app again, is it ok to have my GladeXML
variable global or is that a bad programming style?
Thanks a lot,
--
César Leonardo Blum Silveira
Graduando em Ciência da Computação - Unisinos
Centro de Simulação de Humanos Virtuais
http://cesarbs.blogspot.com/
MSN: ce
the case of a Glade app again, is it ok to have my GladeXML
variable global or is that a bad programming style?
Thanks a lot,
--
César Leonardo Blum Silveira
Graduando em Ciência da Computação - Unisinos
Centro de Simulação de Humanos Virtuais
http://cesarbs.blogspot.com/
MSN: ce
12 matches
Mail list logo