Re: :multiple selection mode of tree view selection
Espen S Johnsen <[email protected]> 09 Jul 2007 15:45:08 +0200
| Newsgroups | gmane.lisp.clg.devel |
|---|---|
| Message-ID | <[email protected]> |
Chisheng Huang <[email protected]> writes: > The following code was adapted from the "list" example in testgtk.lisp. > The selection mode of the tree view is set to :MULTIPLE; however, no > matter how I click the rows in the tree view, there is only one row > selected at any one time. This is odd and contrary to my expection. > I ran the testgtk that came with the gtk+-2.10.13 source code and its > "list" example allows multiple rows to be selected at the same time. Multiple selections does in fact work in your example, but one has to hold down the ctrl (or shift) key while selecting (which is in accordance with the Gnome HIG). The list example in testgtk.c has a slightly different (probably more intuitive) behavior, but is based on the deprecated GtkList widget. I haven't found any way to get the same behavior with GtkTreeView. > Also, calling GTK:TREE-SELECTION-MODE will generate a segmentation > violation. This was caused by errors in the definition of the tree-view slot for tree-selection, but should work now. -- Espen ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/