display: Stop night light dialog being destroyed twice

The night light dialog is both marked as "destroy_with_parent" and explicitly
destroyed in the panel. Drop one of these.

Causes the warning after opening the dialog then closing the app:
(gnome-control-center:19887): Gtk-CRITICAL **: 11:00:01.370: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

This bug was introduced in ed36688c58
This commit is contained in:
Robert Ancell 2018-10-12 10:58:40 +13:00 committed by Robert Ancell
parent 7b12c0028f
commit 044eeb0d06

View file

@ -4,7 +4,6 @@
<property name="can_focus">False</property>
<property name="resizable">False</property>
<property name="modal">True</property>
<property name="destroy_with_parent">True</property>
<property name="type_hint">dialog</property>
<signal name="delete-event" handler="gtk_widget_hide_on_delete" object="CcNightLightDialog" swapped="no" />
<child internal-child="vbox">