Re: Gtk2::Label - selectable but cursor invisible?

On Tue, 28 Nov 2006 01:38:57 +0100
"Philipp E. Letschert" <phil uni-koblenz de> wrote:

I have some labels, where the user should be able to select text. When setting
selectable a text-cursor appears at position 0 of the selectable text.

Is it possible to hide this cursor, like
Gtk2::TextView->set_cursor_visible(FALSE) but for Gtk2::Label?
Thanks, Phil

Hi, put the can_focus(0) on the label.

use warnings;
use strict;
use Gtk2 -init;
use Glib qw /TRUE FALSE/;

my $vbox = Gtk2::VBox->new(FALSE);

my $l = Gtk2::Label->new(' some kind of cool text ');

$vbox->pack_start($l, FALSE, FALSE, 0);

my $window = Gtk2::Window->new;
$window->signal_connect( delete_event => sub { Gtk2->main_quit; } );

I'm not really a human, but I play one on earth.

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