Re: Cursor change using Mdk 10.1 error
- From: muppet <scott asofyet org>
- To: "Dirk van der Walt" <vrygesel highveldmail co za>
- Cc: gtk-perl-list gnome org
- Subject: Re: Cursor change using Mdk 10.1 error
- Date: Tue, 15 Feb 2005 07:53:55 -0500
On Feb 15, 2005, at 5:37 AM, Dirk van der Walt wrote:
I've tried this sample from the mailing list, but it gives me the
following error:
Can't locate object method "set_cursor" via package "Gtk2::Window" at
./cursor.pl line 17.
...
$e->realize;
$e->set_cursor (Gtk2::Gdk::Cursor->new ('hand2'));
That should be
$e->window->set_cursor (...);
set_cursor works on *gdk* windows, not gtk windows. The point in
calling realize on the widget is to make sure the GdkWindow exists
before trying to use it.
--
Walk softly, and carry a BFG-9000.
-- unknown
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]