/// <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 }
/// <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(); }
/// <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); }