RE: [gtk-list] Re: gtk_init wierdness
- From: "Rostedt, Steven" <steven rostedt lmco com>
- To: "'gtk-list redhat com'" <gtk-list redhat com>
- Subject: RE: [gtk-list] Re: gtk_init wierdness
- Date: Thu, 22 Oct 1998 09:30:47 -0400
> -----Original Message-----
> From: Scott Stone [SMTP:sstone@ume.pht.co.jp]
> Sent: Thursday, October 22, 1998 9:25 AM
> To: gtk-list@redhat.com
> Subject: [gtk-list] Re: gtk_init wierdness
>
> On Thu, 22 Oct 1998, katre wrote:
>
> the call to gtk_init should look like:
>
> gtk_init(argc,&argv);
>
> ie, no & in front of argc, like you have below.
>
>
[Steven Rostedt]
You need to pass the address of argc as well, since the
gtk_init is going to remove all the parameters it uses
so your application can act on the rest of the arguments.
the following "is" correct.
> /* initialization */
> > printf("Starting gtk.\n");
> > gtk_init(&argc, &argv);
> > printf("Gtk has started.\n");
> > return EXIT_SUCCESS;
> > }
> <sstone@pht.co.jp>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]