💾 Archived View for gemini.hitchhiker-linux.org › software › gemview.gmi captured on 2023-06-14 at 14:15:03. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

🚧 View Differences

-=-=-=-=-=-=-

Gemview

Introduction

GemView is a gemini protocol browser widget for gtk+ (version 4) implemented in Rust.

Features

Usage

Cargo.toml

[dependencies]
gemview = 0.2.0

[dependencies.gtk]
version = "~0.4"
package = "gtk4"

Rust source code

use gemview::GemView;
use gtk::prelude::*;

fn main() {
    let browser = GemView::default();
    let scroller = gtk::builders::ScrolledWindowBuilder::new()
        .child(&browser)
        .hexpand(true)
        .vexpand(true)
        .build();
    let window = gtk::builders::WindowBuilder::new()
        .child(&scroller)
        .title("GemView")
        .build()
    window.show();
    browser.visit("gemini://gemini.circumlunar.space");
}

Tags for this page

software

gemview

rust

gtk

Home

All content for this site is licensed as CC BY-SA.

© 2022 by JeanG3nie

Finger

Contact