public SelectIconDialog(Gtk.Window parent, Stetic.IProject project) { this.parent = parent; this.project = project; Glade.XML xml = new Glade.XML (null, "stetic.glade", "SelectIconDialog", null); xml.Autoconnect (this); // Stock icon list iconList = new StockIconList (); iconList.SelectionChanged += new EventHandler (OnIconSelectionChanged); iconScrolledwindow.AddWithViewport (iconList); // Custom icon list customIconList = new ProjectIconList (project, project.IconFactory); customIconList.SelectionChanged += new EventHandler (OnCustomIconSelectionChanged); customIconScrolledwindow.AddWithViewport (customIconList); dialog.ShowAll (); UpdateIconSelection (); UpdateButtons (); }
public SelectIconDialog(Gtk.Window parent, Stetic.IProject project) { this.parent = parent; this.project = project; Glade.XML xml = new Glade.XML(null, "stetic.glade", "SelectIconDialog", null); xml.Autoconnect(this); // Stock icon list iconList = new StockIconList(); iconList.SelectionChanged += new EventHandler(OnIconSelectionChanged); iconScrolledwindow.AddWithViewport(iconList); // Custom icon list customIconList = new ProjectIconList(project, project.IconFactory); customIconList.SelectionChanged += new EventHandler(OnCustomIconSelectionChanged); customIconScrolledwindow.AddWithViewport(customIconList); dialog.ShowAll(); UpdateIconSelection(); UpdateButtons(); }