CheckForUpdates() public method

public CheckForUpdates ( bool verbose ) : void
verbose bool
return void
Beispiel #1
0
        public void Initialize()
        {
            // TODO check for updates and other cool stuff
            version_updater.CheckForUpdates(false);

            elements_service         = ServiceManager.Get <GtkElementsService> ();
            interface_action_service = ServiceManager.Get <InterfaceActionService> ();

            if (!ServiceStart())
            {
                ServiceManager.ServiceStarted += OnServiceStarted;
            }

            // add check for updates action
            interface_action_service.GlobalActions.Add(new Gtk.ActionEntry[] {
                new Gtk.ActionEntry("CheckForUpdatesAction", null,
                                    Catalog.GetString("Check for Updates"), null,
                                    null, CheckForUpdatesEvent)
            });

            // merge check for updates menu item
            interface_action_service.UIManager.AddUiFromString(@"
              <ui>
                <menubar name=""MainMenu"">
                  <menu name=""HelpMenu"" action=""HelpMenuAction"">
                    <placeholder name=""CheckForUpdatesPlaceholder"">
                    <menuitem name=""CheckForUpdates"" action=""CheckForUpdatesAction""/>
                    </placeholder>
                  </menu>
                </menubar>
              </ui>
            ");
        }