mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-19 18:26:13 +03:00
apprt/gtk-ng: assert that GTK is uninitialized in setGtkEnv (#7965)
This commit is contained in:
@ -541,6 +541,8 @@ pub const GhosttyApplication = extern struct {
|
|||||||
///
|
///
|
||||||
/// This must be called BEFORE GTK initialization.
|
/// This must be called BEFORE GTK initialization.
|
||||||
fn setGtkEnv(config: *const Config) error{NoSpaceLeft}!void {
|
fn setGtkEnv(config: *const Config) error{NoSpaceLeft}!void {
|
||||||
|
assert(gtk.isInitialized() == 0);
|
||||||
|
|
||||||
var gdk_debug: struct {
|
var gdk_debug: struct {
|
||||||
/// output OpenGL debug information
|
/// output OpenGL debug information
|
||||||
opengl: bool = false,
|
opengl: bool = false,
|
||||||
|
Reference in New Issue
Block a user