Avoid using NULL GtkSettings pointer
Seems to happen when running tests
This commit is contained in:
parent
23e3323655
commit
17de4e31fb
1 changed files with 7 additions and 4 deletions
|
|
@ -1036,10 +1036,13 @@ void wxSystemSettingsModule::OnExit()
|
|||
{
|
||||
#ifdef __WXGTK3__
|
||||
GtkSettings* settings = gtk_settings_get_default();
|
||||
g_signal_handlers_disconnect_by_func(settings,
|
||||
(void*)notify_gtk_theme_name, NULL);
|
||||
g_signal_handlers_disconnect_by_func(settings,
|
||||
(void*)notify_gtk_font_name, NULL);
|
||||
if (settings)
|
||||
{
|
||||
g_signal_handlers_disconnect_by_func(settings,
|
||||
(void*)notify_gtk_theme_name, NULL);
|
||||
g_signal_handlers_disconnect_by_func(settings,
|
||||
(void*)notify_gtk_font_name, NULL);
|
||||
}
|
||||
#else
|
||||
if (gs_tlw_parent)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue