[9500] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: gtk_init wierdness

daemon@ATHENA.MIT.EDU (Scott Stone)
Thu Oct 22 09:36:14 1998

Date: Thu, 22 Oct 1998 22:35:40 +0900 (JST)
From: Scott Stone <sstone@ume.pht.co.jp>
To: "'gtk-list@redhat.com'" <gtk-list@redhat.com>
In-Reply-To: <99AA2270B1E6D111BCE10000F805F17F010A17A4@emss35m02.owg.fs.lmco.com>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

On Thu, 22 Oct 1998, Rostedt, Steven wrote:

> 
> 
> > -----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>
> > 

I stand corrected, I should have checked that more carefully (sorry).

--------------------------------------------------
Scott M. Stone <sstone@pht.com, sstone@turbolinux.com>
               <sstone@pht.co.jp>
Head of TurboLinux Development/Systems Administrator
Pacific HiTech, Inc (USA) / Pacific HiTech, KK (Japan)
http://www.pht.com		http://armadillo.pht.co.jp
http://www.pht.co.jp	        http://www.turbolinux.com


-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post