Re: Gtk::Text get text



Martynas Jocius wrote:

On Fri, Dec 28, 2001 at 12:17:52PM +0000, Martynas Jocius wrote:
$text = new Gtk::Editable;
[...]

In each test program I tried, I got this error:

Usage: Gtk::Object::new(Class, ...) at /usr/lib/perl5/Gtk.pm line 215

I looked to Gtk.pm and Types.pm, and I tried this:
$text = new Gtk::Editable("Gtk::Text");

While this works. A better/safer way is:

     $text = Gtk::Editable->new;

./borup




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]