[gtkada] Signals and selecting rows in Gtk_Tree_View

Manuel Op de Coul manuel.op.de.coul at eon-benelux.com
Sun Nov 23 23:12:59 CET 2003


Hoi Rob,

declare
   Sel : Gtk_Tree_Selection;
begin
   Sel := Get_Selection(The_Tree_View);
   Set_Mode (Sel, Selection_Browse);
   -- Or any other type
   Tree_Selection_Callback.Connect
     (Sel, "changed", On_Tree_View_Selection_Changed'Access, False);

Another useful one is

   Tree_View_Callback.Connect
     (The_Tree_View, "row_activated", On_Tree_View_Row_Activated'Access,
False);


This happens on a double-click or enter press on a row.

Manuel





More information about the gtkada mailing list