Example #1
0
        public FileActions()
        {
            New = new Gtk.Action ("New", Mono.Unix.Catalog.GetString ("New..."), null, "gtk-new");
            Open = new Gtk.Action ("Open", Mono.Unix.Catalog.GetString ("Open..."), null, "gtk-open");
            OpenRecent = new RecentAction ("OpenRecent", Catalog.GetString ("Open Recent"), null, "gtk-open",
                                           RecentManager.Default);

            RecentFilter recentFilter = new RecentFilter ();
            recentFilter.AddApplication ("Pinta");

            (OpenRecent as RecentAction).AddFilter (recentFilter);

            recentData = new RecentData ();
            recentData.AppName = "Pinta";
            recentData.AppExec = GetExecutablePathname ();
            recentData.MimeType = "image/*";

            Close = new Gtk.Action ("Close", Mono.Unix.Catalog.GetString ("Close"), null, "gtk-close");
            Save = new Gtk.Action ("Save", Mono.Unix.Catalog.GetString ("Save"), null, "gtk-save");
            SaveAs = new Gtk.Action ("SaveAs", Mono.Unix.Catalog.GetString ("Save As..."), null, "gtk-save-as");
            Print = new Gtk.Action ("Print", Mono.Unix.Catalog.GetString ("Print"), null, "gtk-print");
            Exit = new Gtk.Action ("Exit", Mono.Unix.Catalog.GetString ("Quit"), null, "gtk-quit");

            //			OpenRecent.Sensitive = false;
            Close.Sensitive = false;
            Print.Sensitive = false;
        }
Example #2
0
        public FileActions()
        {
            New = new Gtk.Action ("New", Catalog.GetString ("New..."), null, Stock.New);
            Open = new Gtk.Action ("Open", Catalog.GetString ("Open..."), null, Stock.Open);
            OpenRecent = new RecentAction ("OpenRecent", Catalog.GetString ("Open Recent"), null, Stock.Open, RecentManager.Default);

            RecentFilter recentFilter = new RecentFilter ();
            recentFilter.AddApplication ("Pinta");

            (OpenRecent as RecentAction).AddFilter (recentFilter);

            recentData = new RecentData ();
            recentData.AppName = "Pinta";
            recentData.AppExec = GetExecutablePathname ();
            recentData.MimeType = "image/*";

            lastDialogDir = System.Environment.GetFolderPath (Environment.SpecialFolder.MyPictures);

            Close = new Gtk.Action ("Close", Catalog.GetString ("Close"), null, Stock.Close);
            Save = new Gtk.Action ("Save", Catalog.GetString ("Save"), null, Stock.Save);
            SaveAs = new Gtk.Action ("SaveAs", Catalog.GetString ("Save As..."), null, Stock.SaveAs);
            Print = new Gtk.Action ("Print", Catalog.GetString ("Print"), null, Stock.Print);
            Exit = new Gtk.Action ("Exit", Catalog.GetString ("Quit"), null, Stock.Quit);

            New.ShortLabel = Catalog.GetString ("New");
            Open.ShortLabel = Catalog.GetString ("Open");
            Open.IsImportant = true;
            Save.IsImportant = true;

            Close.Sensitive = false;
            Print.Sensitive = false;
        }
Example #3
0
        public FileActions()
        {
            New = new Gtk.Action ("New", Catalog.GetString ("New..."), null, Stock.New);
            NewScreenshot = new Gtk.Action ("NewScreenshot", Catalog.GetString ("New Screenshot..."), null, Stock.Fullscreen);
            Open = new Gtk.Action ("Open", Catalog.GetString ("Open..."), null, Stock.Open);
            OpenRecent = new RecentAction ("OpenRecent", Catalog.GetString ("Open Recent"), null, Stock.Open, RecentManager.Default);

            RecentFilter recentFilter = new RecentFilter ();
            recentFilter.AddApplication ("Pinta");

            (OpenRecent as RecentAction).AddFilter (recentFilter);

            Close = new Gtk.Action ("Close", Catalog.GetString ("Close"), null, Stock.Close);
            Save = new Gtk.Action ("Save", Catalog.GetString ("Save"), null, Stock.Save);
            SaveAs = new Gtk.Action ("SaveAs", Catalog.GetString ("Save As..."), null, Stock.SaveAs);
            Print = new Gtk.Action ("Print", Catalog.GetString ("Print"), null, Stock.Print);
            Exit = new Gtk.Action ("Exit", Catalog.GetString ("Quit"), null, Stock.Quit);

            New.ShortLabel = Catalog.GetString ("New");
            Open.ShortLabel = Catalog.GetString ("Open");
            Open.IsImportant = true;
            Save.IsImportant = true;

            Close.Sensitive = false;
            Print.Sensitive = false;
        }