Re: ItemFactory

From: Date: Fri, 09 Mar 2001 10:22:44 +0000
Subject: Re: ItemFactory
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-605@lists.php.net to get a copy of this message
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

« previous php.gtk (#605) next »