Mullin Yu wrote:
> Hi all,
>
> I saw from the tutorial that we can write a simple GTK application like
> the following:
>
> #include <gtk/gtk.h>
>
> int main( int argc,
> char *argv[] )
> {
> ....
> }
>
> But now, I want to put it inside a function that will call to pop up a
> window. What should I do? What should I need to pass as argc and argv[]?
Hi Mullin, you just need to cvall gtk_init() once passing in the
argc/argv your program was given (you're using unix, right?). After
that, you can do anything you like. The later tutorial examples give
some more ideas.
John
==========================================================
Fabric of Vision
Dress and Drapery in Painting
19 June - 8 September 2002
For information and tickets:
http://www.nationalgallery.org.uk/exhibitions/fabric/
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list