Exemple #1
0
        protected void OnAddIcon(object ob, EventArgs args)
        {
            ProjectIconSet icon = new ProjectIconSet();

            using (EditIconDialog dlg = new EditIconDialog(project, icon)) {
                if (dlg.Run() == (int)Gtk.ResponseType.Ok)
                {
                    project.IconFactory.Icons.Add(icon);
                    customIconList.Refresh();
                    customIconList.Selection = icon.Name;
                    project.Modified         = true;
                }
            }
        }
        protected void OnAddIcon(object ob, EventArgs args)
        {
            ProjectIconSet icon = new ProjectIconSet();

            using (EditIconDialog dlg = new EditIconDialog(project, icon)) {
                if (parent != null)
                {
                    dlg.TransientFor = parent.Toplevel as Gtk.Window;
                }
                if (dlg.Run() == (int)Gtk.ResponseType.Ok)
                {
                    project.IconFactory.Icons.Add(icon);
                    customIconList.Refresh();
                    customIconList.Selection = icon.Name;
//					project.Modified = true;
                }
            }
        }