[longomatch] Connect the signal from our own widget and not the toplevel one.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Connect the signal from our own widget and not the toplevel one.
- Date: Tue, 8 Jun 2010 22:52:13 +0000 (UTC)
commit e94c42d9135d3d68c54f4ab6a90ded42eb7236e8
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Jun 9 00:48:06 2010 +0200
Connect the signal from our own widget and not the toplevel one.
If the configure-event is connected to the gtk top level the configure event
will be sent even when the object no longer exists.
libcesarplayer/src/gst-camera-capturer.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libcesarplayer/src/gst-camera-capturer.c b/libcesarplayer/src/gst-camera-capturer.c
index eb5fbe7..08d54bc 100644
--- a/libcesarplayer/src/gst-camera-capturer.c
+++ b/libcesarplayer/src/gst-camera-capturer.c
@@ -579,8 +579,8 @@ gst_camera_capturer_realize (GtkWidget * widget)
GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED);
/* Connect to configure event on the top level window */
- g_signal_connect (G_OBJECT (gtk_widget_get_toplevel (widget)),
- "configure-event", G_CALLBACK (gst_camera_capturer_configure_event), gcc);
+ g_signal_connect (G_OBJECT (widget), "configure-event",
+ G_CALLBACK (gst_camera_capturer_configure_event), gcc);
/* nice hack to show the logo fullsize, while still being resizable */
get_media_size (GST_CAMERA_CAPTURER (widget), &w, &h);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]