[gtk/wip/baedert/for-master: 2/4] mediastream demo: Add a weak pointer to the window
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 2/4] mediastream demo: Add a weak pointer to the window
- Date: Sat, 1 Aug 2020 06:59:51 +0000 (UTC)
commit 954a144336160e0090aef9d3744a48fb3329e217
Author: Timm Bäder <mail baedert org>
Date: Sat Aug 1 08:07:43 2020 +0200
mediastream demo: Add a weak pointer to the window
Do what other demos do as well.
Fixes 2983
demos/gtk-demo/paintable_mediastream.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/demos/gtk-demo/paintable_mediastream.c b/demos/gtk-demo/paintable_mediastream.c
index f9c4c42ffe..022c156d8a 100644
--- a/demos/gtk-demo/paintable_mediastream.c
+++ b/demos/gtk-demo/paintable_mediastream.c
@@ -293,6 +293,7 @@ do_paintable_mediastream (GtkWidget *do_widget)
gtk_widget_get_display (do_widget));
gtk_window_set_title (GTK_WINDOW (window), "Nuclear MediaStream");
gtk_window_set_default_size (GTK_WINDOW (window), 300, 200);
+ g_object_add_weak_pointer (G_OBJECT (window), (gpointer *)&window);
nuclear = gtk_nuclear_media_stream_new ();
gtk_media_stream_set_loop (GTK_MEDIA_STREAM (nuclear), TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]