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

gtk: drop MainContext check #542

Merged
merged 1 commit into from
May 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions gtk/src/rt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,6 @@ pub fn init() -> Result<(), glib::BoolError> {
let argv = ::std::env::args().take(1).collect::<Vec<_>>();

if from_glib(ffi::gtk_init_check(&mut 1, &mut argv.to_glib_none().0)) {
if !glib::MainContext::default().is_owner() {
return Err(glib::bool_error!("Failed to acquire default main context"));
}

set_initialized();
Ok(())
} else {
Expand Down