[gtkada] Disabling Tree Collapse-Expand signal during double-click

Jean-Etienne Doucet doucet at laas.fr
Fri Apr 6 09:26:46 CEST 2001


From: "Wells, Larisa" <lwells at dcscorp.com>
| 
| I am using a double click on a file tree node to spawn an editing session on
| that file.  Does anyone know how I can effectively keep the tree node from
| collapsing/expanding on a Gdk_2button_Press event?  I am accomplishing that
| now by using Toggle_Expansion in my double-click callback, but the method is
| kind of ugly and it flickers as it quickly expands and collapses.  I need to
| keep the tree_expand and tree_collapse signal functionality for a selection
| (single-click).
| 

You should try a (function) callback that returns the boolean value True;
this keeps Gtk from executing its usual duty (e.g. collapse/expand) after
execution of your callback.
_______________________________________________________________________________
Jean-Etienne Doucet / LAAS-CNRS / Toulouse, France       E-mail: doucet at laas.fr




More information about the gtkada mailing list