Re: [gtk2-perl-xs] Setting a cursor on a label
- From: "muppet" <scott asofyet org>
- To: gtk-perl-list gnome org
- Subject: Re: [gtk2-perl-xs] Setting a cursor on a label
- Date: Thu, 12 Jun 2003 16:09:53 -0400 (EDT)
JörnReder said:
Jörn Reder wrote:
Aaah, I like talking to myself ;)
innit fun?
I got it. I set
$label->set_selectable(1);
which also changes the mouse pointer (to a text cursor), and obviously
my own cursor setting is ignored due to it. Any idea how I can set my
own cursor on a selectable label widget?
when you have selectable true, the label has its own window. the event box is
now unnecessary. according to the source, the cursor is set immediately after
the window is created, and the cursor to which it's set is hard-coded. the
window gets created when you set_selectable(1) after the widget is realized,
or when the widget is realized if it's already selectable.
so, make sure you set_selectable(1) before the widget is realized, and change
the cursor in the realize handler.
--
muppet <scott at asofyet dot org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]