Re: ItemFactory

From: Date: Fri, 09 Mar 2001 14:56:52 +0000
Subject: Re: ItemFactory
References: 1 2  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-616@lists.php.net to get a copy of this message
On Fri, 09 Mar 2001, 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 ? Try this: $item_factory = &new GtkItemFactory(GtkMenuBar::get_type(), "<main>", $accel); -Andrei Nobody tried to design Windows - it just grew in random directions without any kind of thought behind it.

« previous php.gtk (#616) next »