Gtk2::Notebook and switch-page signal



Dear folks,

I spent several hours with this problem without any success.

I have a Gtk2::Notebook object and I want to issue a switch-page
signal for it.

Page http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/Notebook.html#SIGNALS
writes:

SIGNALS
switch-page (Gtk2::Notebook, gpointer, Glib::UInt)

I can't figure out what the second argument must be.
How could I get any gpointer type data here?

I tried several constructions like this:

my $notebook = $gui->get_widget('main_notebook');
$notebook->signal_emit('switch-page', $notebook->get('group'), 2);

... with various second argument.
Most of them led to segmentation fault. (Eeeerrr....)

I have no more ideas. Any help will be appreciated.

I have Debian Linux 5.0 (lenny) with these packages:
libgtk1.2*              1.2.10-18.1
libgtk2-perl*           1:1.190-1
libgtk2.0-0*            2.12.12-1~lenny2

Regards

Gabor

-- 
No smoke, no drugs, no vindoze.



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