public void Dispose()
 {
     if (statusBar != null) {
         statusBar.Dispose();
         statusBar = null;
     }
 }
Ejemplo n.º 2
0
        public HtmlViewPane(bool showNavigation)
        {
            Shadow = Gtk.ShadowType.In;
            VBox mainbox = new VBox (false, 2);
            status = (SdStatusBar) Runtime.Gui.StatusBar.Control;

            if (showNavigation) {

                nav.Back += new EventHandler (OnBackClicked);
                nav.Forward += new EventHandler (OnForwardClicked);
                nav.Stop += new EventHandler (OnStopClicked);
                nav.Reload += new EventHandler (OnRefreshClicked);
                nav.Go += new EventHandler (OnEntryActivated);

                topPanel.PackStart (nav);
                mainbox.PackStart (topPanel, false, false, 2);
            }

            htmlControl = new MozillaControl ();
            htmlControl.NetStart += new EventHandler (OnNetStart);
            htmlControl.NetStop += new EventHandler (OnNetStop);
            htmlControl.LocChange += new EventHandler (OnLocationChanged);
            htmlControl.ShowAll ();

            mainbox.PackStart (htmlControl);
            this.Add (mainbox);
            this.ShowAll ();
        }
 public DefaultStatusBarService()
 {
     statusBar = new SdStatusBar(this);
 }