Re: ItemFactory

From: Date: Fri, 09 Mar 2001 14:19:37 +0000
Subject: Re: ItemFactory
References: 1 2  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-613@lists.php.net to get a copy of this message
again, don't worry .. found the answer in the mailing list archives (guess I should have looked there first...) barry On Fri, Mar 09, 2001 at 10:22:44AM +0000, Barry Mitchelson wrote: > just give more details on the problem : > > I'm trying to do the following : > > $accel = &new GtkAccelGroup(); > $item_factory = &new GtkItemFactory(GTK_TYPE_MENU_BAR,"<main>",$accel); > > when I try and run the script I get the following error : > > gtkitemfactory() expects argument 1 to be integer, string given in > <b>./xml.php</b> on line <b>147</b><br> > > I've searched the source for "GTK_TYPE_MENU_BAR" but can't find anything. > > Am I calling the function correctly ? > > thanks, > > barry > > > On Thu, Mar 08, 2001 at 11:42:33PM +0000, Barry Mitchelson wrote: > > hi, > > > > can someone give me a brief example of using GtkItemFactory ? > > > > i've spent the last few hours trying to convert some of my original C code to php, > > and looking through gtk.defs & gtk.overrides looking for a pointer on getting it to work, but > > I'm beat :( > > > > thanks, > > > > barry > > > > -- > > http://www.theshining.org > > > > -- > > PHP GTK Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net > > For additional commands, e-mail: php-gtk-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > http://www.theshining.org > > -- > PHP GTK Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net > For additional commands, e-mail: php-gtk-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- http://www.theshining.org

« previous php.gtk (#613) next »