Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Creating ApplicationWindow in main causes segfault #84

Open
@ColonelThirtyTwo

Description

@ColonelThirtyTwo

Dumb program that doesn't work cuz I forgot how to use gtk the right way (ie the activate signal):

use gio::prelude::*;
use gtk::prelude::*;
use std::env::args;

fn main() {
	let app = gtk::Application::new(None, gio::ApplicationFlags::default()).unwrap();
	gtk::ApplicationWindow::new(&app).show();
	app.run(&args().collect::<Vec<_>>());
}

The gtk::ApplicationWindow::new call causes a segfault though, in the g_object_new call of gtk::application_window::<impl gtk::auto::application_window::ApplicationWindow>::new

Versions are:

gio = "0.9.1"
glib = "0.10.2"
gtk = "0.9.2"

No feature flags for the versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggtk

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions