To: lablgtk at math.nagoya-u.ac.jp Subject: Question on TreeView behavior: multiple callings of selection#select_function? From: David MENTRE Organization: none Date: Sun, 05 Feb 2006 17:11:13 +0100 Message-ID: <87ek2hss4e.fsf at linux-france.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hello, I'm using several TreeView in my application and to follow user choices in the tree view, I'm using selection#set_select_function to attach a call back on the tree view. I noticed that this callback is called multiples times for the same row. Any explanation for this behavior? For example, if in my tree view row 0 is selected and I click on row 1, I observe following calls: select_function: path=1 selected=false select_function: path=0 selected=true select_function: path=1 selected=false Any idea why a third call to select_function callback? The GTK doc says the callback is called before any node is selected or unselected[1]. But there is no explanation on this behavior. Best wishes, d. Footnotes: [1] http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeSelection.html#gtk-tree-selection-set-select-function -- pub 1024D/A3AD7A2A 2004-10-03 David MENTRE 5996 CC46 4612 9CA4 3562 D7AC 6C67 9E96 A3AD 7A2A