Re: How to put GTK into a C function?
- From: John Cupitt ng-london org uk
- To: mullin yu softwareag com
- Cc: gtk-list gnome org
- Subject: Re: How to put GTK into a C function?
- Date: Thu, 5 Sep 2002 19:43:22 +0100
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/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]