Re: GtkText Problem - Getting the text

From: Date: Thu, 27 Dec 2001 17:21:52 +0000
Subject: Re: GtkText Problem - Getting the text
References: 1 2 3 4 5  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-931@lists.php.net to get a copy of this message
OK, it's looking for the gtkaccelgroup 'activate' parameters. This is because it's been told to look for a GtkObject method that doesn't exist .... not your fault, GTK's fault. They've fully replaced the text widget now, they say it's very broken. Unfortunately 'now' is still a series of development releases, we're a few months from getting GTK2 (and when we do it's up to Andrei to write a new set of language bindings for it, because the internal workings of GTK have been radically altered in the meantime). Is it possible for you to use a GtkEntry widget for the entered text? - because I think you'll find that's the only way to pick up an 'activate' signal. The alternative is to use a button, as you already kind of have. Other than that, your 'problem' errors have been highlighted by Hakan already. Cheers anon, Steph ----- Original Message ----- From: "Steph" <Steph.Fox@btinternet.com> To: <php-gtk-general@lists.php.net>; "Hakan Kuecuekyilmaz" <hakan@lisas.de> Sent: Thursday, December 27, 2001 4:57 PM Subject: Re: [PHP-GTK] GtkText Problem - Getting the text yeah, but the 'activate' still isn't working off GtkText when you do that, I'm up to that point too ;) ----- Original Message ----- From: "Hakan Kuecuekyilmaz" <hakan@lisas.de> To: <php-gtk-general@lists.php.net> Sent: Thursday, December 27, 2001 4:52 PM Subject: Re: [PHP-GTK] GtkText Problem - Getting the text > Quoting sascha schulz <s.schulz@ooe.net>: > > > > function gettext($text1, $text2) > > > > { > > > > global $text1; > > global $text2; > > global $string; > > > > $text1->freeze(); > > $string = $text1->get_chars(0,-1); > > $text2->insert_text($string); > > $text2->insert_text($string,0); > > $text1->thaw(); > } > > $table = &new GtkTable(1, 3, false); > //$table->set_row_spacing(0,2); > > $table->set_col_spacing(0,2); > > $window->add($table); > > > regards and mfg > -- > Hakan Kuecuekyilmaz, presently intern at > Tecnomatix Technologies Germany | Tel: +49 711 1389- 257 > Mittlerer Pfad 9 | <hakan@lisas.de> > 70 499 Stuttgart | <hkuecuekyilmaz@tecnomatix.de> > Studenten, Absolventen und Young Professionals > <http://www.c-cn.de> > > > > ------------------------------------------------- > This mail sent through IMP: webmail.fht-esslingen.de > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-gtk-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net For additional commands, e-mail: php-gtk-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

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