summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2015-11-11 16:06:44 +0100
committerAlexander Larsson <alexl@redhat.com>2015-11-11 16:06:44 +0100
commit51dc4873fd8b4d4f14f902870b6110dd70a224e3 (patch)
treee56983907037a8e27007d27d551af9e8fd04eb0f /demos
parent402225a8e23bcff118055568ca79f4b73a3951f8 (diff)
downloadgtk+-51dc4873fd8b4d4f14f902870b6110dd70a224e3.tar.gz
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.
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/application.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/gtk-demo/application.c b/demos/gtk-demo/application.c
index 02c12f95a5..6124c3fce1 100644
--- a/demos/gtk-demo/application.c
+++ b/demos/gtk-demo/application.c
@@ -113,6 +113,7 @@ open_response_cb (GtkNativeDialog *dialog,
}
}
+ gtk_native_dialog_destroy (GTK_NATIVE_DIALOG (native));
g_object_unref (native);
}