On Tue, 28 Nov 2006 01:38:57 +0100 "Philipp E. Letschert" <[EMAIL PROTECTED]> 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. #!/usr/bin/perl 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 '); $l->set_selectable(1); $l->can_focus(0); $vbox->pack_start($l, FALSE, FALSE, 0); my $window = Gtk2::Window->new; $window->signal_connect( delete_event => sub { Gtk2->main_quit; } ); $window->add($vbox); $window->set_default_size(200,50); $window->show_all; Gtk2->main; __END__ -- I'm not really a human, but I play one on earth. http://zentara.net/japh.html _______________________________________________ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list