Perl Gtk: right mouse button context menu




Hi,


I'm using Perl Gtk 0.5000 with gtk-1.0.6 and try to create a right mouse
context menu on a tree-item widget.

Connecting the signal handler etc. works fine, but I fail to create a
new window which is positioned under the mouse pointer.

The Gtk info file says, the Window widget has an user option "position"
which can be set to something like "pos_mouse". Perl Gtk aborts with an
error if I try to set this option.

	my $win = new Gtk::Widget "Gtk::Window",
                        type => -popup,
                        border_width => 0;
                        position => -pos_mouse;


	Unknown argument position of GtkWindow at ./test.pl line 232.

Am I completely wrong or is this a Perl Gtk problem only? What is the
usual way to implement such a context menu?

Thanks,


Joern


-- 
Joern Reder            dimedis GmbH   http://www.dimedis.de/
Software Development   50674 Koeln    joern@dimedis.de

supporting: http://www.zyn.de/ http://www.netcologne.de/~nc-joernre/



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