changeset e2610f6f9e2d in /home/hg/repos/gajim
branches: gtk3 details:http://hg.gajim.org/gajim?cmd=changeset;node=e2610f6f9e2d description: move incoming and outgoing video stream in chat window when we receive the video call.
diffstat:
src/dialogs.py | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-)
diffs (27 lines):
diff -r fb414656cbf0 -r e2610f6f9e2d src/dialogs.py --- a/src/dialogs.py Fri Jul 05 21:10:16 2013 +0200 +++ b/src/dialogs.py Sat Jul 06 21:27:30 2013 +0200 @@ -5278,6 +5278,23 @@ if audio and not audio.negotiated: ctrl.set_audio_state('connecting', self.sid) if video and not video.negotiated: + video_hbox = ctrl.xml.get_object('video_hbox') + video_hbox.set_no_show_all(False) + if gajim.config.get('video_see_self'): + fixed = ctrl.xml.get_object('outgoing_fixed') + fixed.set_no_show_all(False) + video_hbox.show_all() + in_xid = ctrl.xml.get_object('incoming_drawingarea').window.xid + out_xid = ctrl.xml.get_object('outgoing_drawingarea').window.xid + content = session.get_content('video') + # move outgoing stream to chat window + if gajim.config.get('video_see_self'): + b = content.pipeline.get_by_name('bin2') + c = b.get_by_name('autovideosink0') + d = c.get_by_name('autovideosink0-actual-sink-xvimage') + d.set_xwindow_id(out_xid) + content.out_xid = out_xid + content.in_xid = in_xid ctrl.set_video_state('connecting', self.sid) # Now, accept the content/sessions. # This should be done after the chat control is running