[aravis] viewer: make it compile using gtk+-3.0.



commit 2b651f51b59cb96e79a78499b06eb5ff61be6d81
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Sun May 8 20:42:06 2011 +0200

    viewer: make it compile using gtk+-3.0.

 viewer/arvviewer.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/viewer/arvviewer.c b/viewer/arvviewer.c
index b3cd3d2..2de6088 100644
--- a/viewer/arvviewer.c
+++ b/viewer/arvviewer.c
@@ -338,6 +338,7 @@ arv_viewer_select_camera_cb (GtkComboBox *combo_box, ArvViewer *viewer)
 {
 	GtkTreeIter iter;
 	GtkTreeModel *list_store;
+	GdkWindow *window;
 	GstCaps *caps;
 	GstElement *ffmpegcolorspace;
 	GstElement *ximagesink;
@@ -467,7 +468,8 @@ arv_viewer_select_camera_cb (GtkComboBox *combo_box, ArvViewer *viewer)
 
 	gst_element_set_state (viewer->pipeline, GST_STATE_PLAYING);
 
-	window_xid = GDK_WINDOW_XID (viewer->drawing_area->window);
+	window = gtk_widget_get_window (viewer->drawing_area);
+	window_xid = GDK_WINDOW_XID (window);
 	gst_x_overlay_set_xwindow_id (GST_X_OVERLAY (ximagesink), window_xid);
 
 	g_signal_connect (viewer->stream, "new-buffer", G_CALLBACK (arv_viewer_new_buffer_cb), viewer);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]