[Gtk-sharp-list] iconview

MDK mdk at mdk.org.pl
Tue Aug 2 09:44:50 EDT 2005

> On 7/29/05, ritchie turner <ritchie at ipowerhouse.com> wrote:
> > Hi, I'm a C#, mono, and GTK# newbie :), I'm looking for an iconview
> > class does that exist, or what's an alternative? I can't find in the
> > latest mono distribution.
> the class is called Gtk.IconView but it is only available since Gtk+
> 2.6, so you will need to used gtk-sharp-2.5.5 or gtk-sharp svn
> (there is an iconview demo in the gtk-sharp sources in the
> samples/GtkDemo folder, called DemoIconView.cs)

BTW, is it only me, or is the IconView.SelectedItems property seriously
broken right now? 

SelectedItems.Count seems to work. But accessing SelectedItems[0]
crashes everything. I'm using this rather awfull hack:

	if (SelectedItems.Count == 0)
		return null;

	TreePath path = new TreePath ("0");
	while (! PathIsSelected (path))
        	path.Next ();

... to get the selected path. 

Michał Dominik K.
mdk at mdk.org.pl


More information about the Gtk-sharp-list mailing list