Re: Custom widget (saga cont.)



On 02/20/01 dLux wrote:
I have been written a custom widget, called Gtk::pimPAQ::DateTimeEdit;

The problem I ran into that when I want to call the
Gtk::pimPAQ::DateTimeEdit->init, perl throw a segfault at the
Gtk::Button->register_subtype ($class).

"debug" calls are used to print out debug message if $DEBUG is true.
I got only one debug message, which tells that init is called, but
not finished.

If someone is professional about it, please look at the code, I
really need it.

Did you call Gtk->init() before register_subtype()
(Gnome->init, if you use gnome)?
Most of the functions in gtk require that you initialize
the system before using them. The notable exceptions are:

Gtk->set_locale();
Gtk->add_default_file($filename); # rc file

and a few others rarely used.

lupus

-- 
-----------------------------------------------------------------
lupus debian org                                     debian/rules
lupus ximian com                             Monkeys do it better




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