public static void ShowAboutDialog(Gtk.Window win)
        {
            AboutDialog ad = new AboutDialog ();

            ad.ProgramName = "CsBoard";
            ad.Authors = new string[]
            {
            "Nickolay V. Shmyrev <*****@*****.**>",
                    "Ravi Kiran U V S <*****@*****.**>"};
            ad.TranslatorCredits =
                Catalog.GetString ("translator_credits");
            ad.Documenters = new string[]
            {
            "Nickolay V. Shmyrev <*****@*****.**>"};
            ad.Logo =
                new Gdk.Pixbuf (Config.prefix +
                        "/share/pixmaps/csboard.png");
            ad.Website = "http://csboard.berlios.de";

            ad.TransientFor = win;

            ad.Run ();
            ad.Hide ();
            ad.Dispose ();
        }
        public void on_about_activate(System.Object b, EventArgs e)
        {
            AboutDialog ad = new AboutDialog ();

                        ad.Name = "CsBoard";
                        ad.Authors = new string [] {"Nickolay V. Shmyrev <*****@*****.**>","Ravi Kiran U V S <*****@*****.**>"};
                        ad.TranslatorCredits = Catalog.GetString("translator_credits");
                        ad.Documenters = new string [] {"Nickolay V. Shmyrev <*****@*****.**>"};
                        ad.Logo = new Gdk.Pixbuf(Config.prefix + "/share/pixmaps/csboard.png");
                        ad.Website = "http://csboard.berlios.de";

                        ad.TransientFor = csboardWindow;

                        ad.Run ();
                        ad.Hide ();
                        ad.Dispose ();
        }
Exemple #3
0
        /// <summary>
        /// Shows about window.
        /// </summary>
        public static void Show()
        {
            AboutDialog about = new AboutDialog();
            Assembly asm = Assembly.GetExecutingAssembly();
            Pixbuf icon = null;

            try
            {
                icon = IconTheme.Default.LoadIcon("glippy", 128, Gtk.IconLookupFlags.GenericFallback);
            }
            catch (System.Exception ex)
            {
                Core.Tools.PrintInfo(ex, typeof(AboutWindow));
            }

            about.ProgramName = Name;
            about.Version = Core.EnvironmentVariables.Version;
            about.Comments = Description;
            about.Copyright = (asm.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false)[0] as AssemblyCopyrightAttribute).Copyright;
            about.Website = "https://launchpad.net/glippy";
            about.Authors = authors;
            about.Artists = artists;
            about.License = license;
            about.TranslatorCredits = translators;
            about.Icon = icon;
            about.Logo = IconTheme.Default.LoadIcon("glippy", 48, Gtk.IconLookupFlags.GenericFallback);
            about.Run();

            if (icon != null)
                icon.Dispose();

            if (about.Logo != null)
                about.Logo.Dispose();

            about.Destroy();
            about.Dispose();
        }