Avoid using NULL GtkSettings pointer
Seems to happen when running tests
This commit is contained in:
@@ -1036,10 +1036,13 @@ void wxSystemSettingsModule::OnExit()
|
|||||||
{
|
{
|
||||||
#ifdef __WXGTK3__
|
#ifdef __WXGTK3__
|
||||||
GtkSettings* settings = gtk_settings_get_default();
|
GtkSettings* settings = gtk_settings_get_default();
|
||||||
g_signal_handlers_disconnect_by_func(settings,
|
if (settings)
|
||||||
(void*)notify_gtk_theme_name, NULL);
|
{
|
||||||
g_signal_handlers_disconnect_by_func(settings,
|
g_signal_handlers_disconnect_by_func(settings,
|
||||||
(void*)notify_gtk_font_name, NULL);
|
(void*)notify_gtk_theme_name, NULL);
|
||||||
|
g_signal_handlers_disconnect_by_func(settings,
|
||||||
|
(void*)notify_gtk_font_name, NULL);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
if (gs_tlw_parent)
|
if (gs_tlw_parent)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user