Date: Fri, 7 Nov 2003 11:05:32 +0100 From: Claudio Sacerdoti Coen To: lablgtk at kaba.or.jp Subject: GTree row selection event Message-ID: <20031107100532.GA17659 at cs.unibo.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Dear alls, this question should probably be just a Gtk2 question. I have a GTree that I use to render a table and I want to call a call-back when a row is clicked, receiving also the ~event informations to determine whether a single or double clicked occurred. #selection#set_selection_function is not useful: double-clicking on an already selected row does not call the call-back twice (nor I have an event object) #selection#connect#change does not give me the event object; moreover when I call the selection#get_selected_rows to find the rows selected and no row has been selected so far, I am told that the row 0 is selected (???). And when I click on a row when no row is selected, I receive two times the changed event! (and the first time I get the "row 0" false answer) How I hate porting code from lablgtk to lablgkt2! Annoyed, C.S.C. -- ---------------------------------------------------------------- Real name: Claudio Sacerdoti Coen PhD Student in Computer Science at University of Bologna E-mail: sacerdot@cs.unibo.it http://www.cs.unibo.it/~sacerdot ----------------------------------------------------------------