Changes between Initial Version and Version 1 of Ticket #1163
- Timestamp:
- 04/24/09 16:41:52 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1163 – description
initial v1 1 1 Hi. I'm not totally sure what I'm talking about, but it seems to me that the return type of treeModelSortGetModel should be TypedTreeModelClass a rather than a generic TreeModel. 2 2 3 {{{ 3 4 treeModelSortNewWithModel :: (TreeModelClass (childModel row), TypedTreeModelClass childModel) => childModel row -> IO (TypedTreeModelSort row) 5 }}} 6 4 7 Creates a new TreeModelSort, that will be a sorted view of the given model. 5 8 Methods 6 9 7 10 {{{ 8 11 treeModelSortGetModel :: TreeModelSortClass self => self -> IO TreeModel 12 }}} 9 13 Returns the underlying model the TreeModelSort is sorting. 10 14 … … 12 16 I'm having problems getting the currently selected row. 13 17 18 {{{ 14 19 showSelectedProgramme ref = do 15 20 xml <- liftM stXML $ readIORef ref … … 28 33 p <- MV.treeModelGetRow rawmodel cIter 29 34 displayProgrammeDetail ref p 35 }}} 30 36 31 37 (where ref is an IORef) 32 38 33 The following line is erroring 'p <- MV.treeModelGetRow rawmodel cIter'since there doesn't seem to be a way of converting rawmodel to a typed ListStore.39 The following line is erroring {{{p <- MV.treeModelGetRow rawmodel cIter}}} since there doesn't seem to be a way of converting rawmodel to a typed ListStore.