Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.
/ ChromiumGtk Public archive

ChromiumGtk is a WebView for GtkSharp using Chromium Embedded Framework (CEF) and CefGlue.

License

Notifications You must be signed in to change notification settings

lunixo/ChromiumGtk

Repository files navigation

This project is no longer being maintained!

Similar active projects:

ChromiumGtk

ChromiumGtk is a WebView for GtkSharp using Chromium Embedded Framework (CEF) and CefGlue.

Supported Platforms

  • .NET Core 3.1 on Ubuntu 20.04 (AMD64)

Dependencies

Installation

Use nuget to install ChromiumGtk.

dotnet add package Lunixo.ChromiumGtk.Linux64

Usage

static void Main()
{
    var runtime = new Runtime();
    runtime.Initialize();
    Gtk.Application.Init();
    
    using var window = new Gtk.Window("ChromiumGTK Demo")
    {
        WidthRequest = 1200,
        HeightRequest = 800
    };
    
    window.Destroyed += (sender, args) => runtime.QuitMessageLoop();
    InteropLinux.SetDefaultWindowVisual(window.Handle);
    
    using var webView = new WebView();
    webView.LoadUrl("https://dotnet.microsoft.com/");
    
    window.Add(webView);
    window.ShowAll();
    
    runtime.RunMessageLoop();
    runtime.Shutdown();
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

This repository uses code from CefGlue (MIT) and Chromely (MIT)

About

ChromiumGtk is a WebView for GtkSharp using Chromium Embedded Framework (CEF) and CefGlue.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages