get xid for windows correctly

This commit is contained in:
Yann Leboulanger 2014-02-28 11:02:26 +01:00
parent 9437d0ac2f
commit a45d74024d
2 changed files with 18 additions and 6 deletions

View File

@ -2253,8 +2253,12 @@ class ChatControl(ChatControlBase):
fixed = self.xml.get_object('outgoing_fixed')
fixed.set_no_show_all(False)
video_hbox.show_all()
out_xid = self.xml.get_object(
'outgoing_drawingarea').get_window().xid
if os.name == 'nt':
out_xid = self.xml.get_object(
'outgoing_drawingarea').get_window().handle
else:
out_xid = self.xml.get_object(
'outgoing_drawingarea').get_window().xid
else:
out_xid = None
video_hbox.show_all()

View File

@ -5391,13 +5391,21 @@ class VoIPCallReceivedDialog(object):
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').\
get_window().xid
if os.name == 'nt':
in_xid = ctrl.xml.get_object('incoming_drawingarea').\
get_window().handle
else:
in_xid = ctrl.xml.get_object('incoming_drawingarea').\
get_window().xid
content = session.get_content('video')
# move outgoing stream to chat window
if gajim.config.get('video_see_self'):
out_xid = ctrl.xml.get_object('outgoing_drawingarea').\
get_window().xid
if os.name == 'nt':
out_xid = ctrl.xml.get_object('outgoing_drawingarea').\
get_window().handle
else:
out_xid = ctrl.xml.get_object('outgoing_drawingarea').\
get_window().xid
b = content.src_bin
found = False
for e in b.elements():