Find what row was dbl clicked on
- From: CountZero <countzero cyberdeck org>
- To: gtk-list redhat com
- Subject: Find what row was dbl clicked on
- Date: Mon, 17 Jan 2000 03:04:49 -0600
I have a GtkCList object that I have attached a button_press_event hander to.
My handler checks GdkEvent->type for 2button_press and correctly runs
a subroutine when ever there is a double click event. My question is, how do I determine
what row was the target of the double click event in the first place? The button_press_event
passes the CList and a GDKEvent to my event handler. I can query the CList for selection,
but on a left button double click, there is NO selection when the button_press_event is called.
The selection gets set AFTER the button_press_event is triggered. The GDKEvent does
not seem to contain any CList specific info (such as the row) nor should it in my humble opionion
since the button_press_event is a GtkWidget event, not a GtkCList event.
Anyway, the short question is: how do I determine what row in a GtkCList was the target of a
button_press_event (more specifically, of a 2button_press event)?
-Steve (Count Zero)
CSCMail 1.4
http://www.cyberdeck.org/cscmail
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]