Re: Link in GtkLabel

From: Date: Mon, 01 May 2006 12:53:29 +0000
Subject: Re: Link in GtkLabel
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6900@lists.php.net to get a copy of this message
Christian Weiske wrote:
Does somebody know how to add a clickable link to a GtkLabel (PHP-Gtk2)? I doubt that it's possible, but what other possibilities do I have? I basically want to list some items (in one line, no real list) and make them clickable. When the user clicks on them, I get a callback and can do some action.
What about wrapping the label in a GtkEventBox? $eventBox->connect('clicked', array($this, 'linkHandler')); //... public function linkHandler($box) {
    $label = $box->get_child();
    //...
} -- Scott Mattocks Author of: Pro PHP-GTK http://www.crisscott.com

« previous php.gtk.general (#6900) next »