GtkCList and mouse right click
| From: | Yrgo | Date: | Mon, 03 Jun 2002 11:04:11 +0000 |
| Subject: | GtkCList and mouse right click | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-2078@lists.php.net to get a copy of this message | ||
Hi,
I have an application with GtkCList. I would like to distinguish between double-click and
right-click events. How could i do that
# $list is my GtkCList object
...
$list->connect('event', array(&$this, 'my_func'));
...
function my_func($obj, $evt) {
if ( double-click-detected )
$this->handle-doubleclick();
if ( right-click-detected )
$this->handle-right-click();
}
So, I'd like to know how to catch double-click-detected and right-click-detected?
I've fount GDK_2BUTTON_PRESS, but it didn't seemed to work for me.
What should I do?
-----------------------------------------
Teatri- , kino- ja kontserdipiletid nüüd hiirekliki kaugusel!
http://www.hot.ee