Add gtk_native_dialog_destroy()

Its very easy to get extra references to the NativeDialog so that
when you release your last reference any visible dialog is not
hidden. We handle this by adding a destroy method similar to how
you destroy regular toplevels.
This commit is contained in:
Alexander Larsson
2015-11-11 16:06:44 +01:00
parent 402225a8e2
commit 51dc4873fd
6 changed files with 41 additions and 2 deletions

View File

@ -113,6 +113,7 @@ open_response_cb (GtkNativeDialog *dialog,
}
}
gtk_native_dialog_destroy (GTK_NATIVE_DIALOG (native));
g_object_unref (native);
}