macOS: window title problem
This is for macOS and the GeditWindow titlebar.
In gedit-app-osx.m
, gtk_window_set_titlebar()
is called to set the titlebar to NULL.
This causes problems down the road, when trying to access the titlebar elements in gedit-window.c
which no longer exist (the headerbar etc).
See #559
All this code is a bit hard to read and to follow, GeditWindow is a big class and comes with gedit-window.ui.
gedit-window.ui creates the "titlebar" child, but on macOS all its elements refer to freed memory (e.g. priv->headerbar
in gedit-window.c is not NULL, but should be (on macOS)).