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,6 +2253,10 @@ class ChatControl(ChatControlBase):
fixed = self.xml.get_object('outgoing_fixed')
fixed.set_no_show_all(False)
video_hbox.show_all()
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:

View File

@ -5391,11 +5391,19 @@ class VoIPCallReceivedDialog(object):
fixed = ctrl.xml.get_object('outgoing_fixed')
fixed.set_no_show_all(False)
video_hbox.show_all()
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'):
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