using System;
using Gtk;
using Gnome;
public class MyWindow : Gtk.Window
{
public IconList i;
public MyWindow () : base ("MyWindow")
{
i= new IconList(128,null,0);
this.SetDefaultSize (400, 300);
this.DeleteEvent += new DeleteEventHandler (OnMyWindowDelete);
i.Append ( "69", "Nombre");
Add(i);
i.IconSelected += new IconSelectedHandler (IconSelect);
this.ShowAll ();
}
void IconSelect(object o, Gnome.IconSelectedArgs a){
if (a==null||a.Event == null || o==null)
return;
Console.WriteLine ("click: the filename of the icon is:");
Console.WriteLine(i.GetIconFilename(0));
}
void OnMyWindowDelete (object sender, DeleteEventArgs a)
{
Application.Quit ();
a.RetVal = true;
}
}