[9498] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: gtk_init wierdness
daemon@ATHENA.MIT.EDU (Rostedt, Steven)
Thu Oct 22 09:30:58 1998
Date: Thu, 22 Oct 1998 09:30:47 -0400
From: "Rostedt, Steven" <steven.rostedt@lmco.com>
To: "'gtk-list@redhat.com'" <gtk-list@redhat.com>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
> -----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>
>
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null