Re: Bug in GtkCombo?

From: Date: Fri, 24 May 2002 12:49:21 +0000
Subject: Re: Bug in GtkCombo?
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2046@lists.php.net to get a copy of this message
Steph....you're a genius! much thanks, --rdp On Thu, 23 May 2002, Steph wrote: > Rich, hi, > > Try $list->show_all(); after the append. > > The show_all() from the $window won't necessarily reach to the nether depths. > > > ----- Original Message ----- > From: "Rich Payne" <rdp@talisman.mv.com> > To: <php-gtk-general@lists.php.net> > Cc: "Andrei Zmievski" <andrei@ispi.net> > Sent: Thursday, May 23, 2002 6:13 PM > Subject: [PHP-GTK] Bug in GtkCombo? > > > > > > I'm having a little trouble here with a GtkCombo widget. According to the > > docs a Combo is just really a GtkEntry and a GtkList, and I can access the > > later via GtkCombo->list. However it's doesn't seem to behave the same > > way. Example: > > > > $list = &new GtkList(); > > for ($i = 0; $i<10; $i++) > > $listitems[] = &new GtkListItem($i); > > > > $list->append_items ($listitems); > > > > > > now that works fine, however this doesn't > > > > $combo = &new GtkCombo(); > > $list = $combo->list; > > > > for ($i = 0; $i<10; $i++) > > $listitems[] = &new GtkListItem($i); > > > > $list->append_items ($listitems); > > > > > > Only the first element will be in the list. Is this a bug or is this me? > > > > thanks, > > --rdp > > > > -- > > Rich Payne > > http://talisman.mv.com > > > > > > -- > > PHP-GTK General Mailing List (http://gtk.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- Rich Payne http://talisman.mv.com

« previous php.gtk.general (#2046) next »