[Gtk-sharp-list] gtk_tree_selection_get_selected_rows() custom or generated?

Lee Mallabone gnome@fonicmonkey.net
21 Feb 2003 19:08:02 -0500


On Fri, 2003-02-21 at 13:35, George Farris wrote:

> Ah I see,  I tried SelectedForeach but I did the following and it
> complained:
>   selectionInfo.SelectedForeach(recordRow);
> 
> One would think you would be able to do this without the
> "new TreeSelectionForeachFunc" call.

That's caught me out once or twice before... It's necessary because of
the way C# treats delegates, (ie. function pointers).

> The other problem I had was that when Multiple selections were enabled
> the "Changed" signal that called GetSelected(out model, ref iter) died
> because GetSelected does work with Multiple selections.

How did it die? Can you be more specific about what it should do? Do you think it should throw an exception of some kind? (I know that's the sort of thing that would be desirable in Java-land, not so sure about C#).

Lee.