/// <summary>
		/// Initializes a new instance of <see cref="GeckoWebBrowser"/>.
		/// </summary>
		public GeckoWebBrowser()
		{
#if GTK
			if (Xpcom.IsMono)
				m_wrapper = new GtkDotNet.GtkReparentingWrapperNoThread(new Gtk.Window(Gtk.WindowType.Popup), this);
#endif
		}
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of <see cref="GeckoWebBrowser"/>.
        /// </summary>
        public GeckoWebBrowser()
        {
            #if GTK
            if (Xpcom.IsMono)
                m_wrapper = new GtkDotNet.GtkReparentingWrapperNoThread(new Gtk.Window(Gtk.WindowType.Popup), this);
            #endif

            NavigateFinishedNotifier = new NavigateFinishedNotifier(this);

            // Optimize: only enable Console Message Notification when event handler attached to ConsoleMessage Event.
            EnableConsoleMessageNotfication();
        }
Exemplo n.º 3
0
		/// <summary>
		/// Initializes a new instance of <see cref="GeckoWebBrowser"/>.
		/// </summary>
		public GeckoWebBrowser()
		{
#if GTK
			if (Xpcom.IsMono)
			{
				GtkDotNet.GtkOnceOnly.Init();
				m_wrapper = new GtkDotNet.GtkReparentingWrapperNoThread(new Gtk.Window(Gtk.WindowType.Popup), this);
			}
#endif
			NavigateFinishedNotifier = new NavigateFinishedNotifier(this);
		}