get xid for windows correctly
This commit is contained in:
parent
9437d0ac2f
commit
a45d74024d
|
@ -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()
|
||||
|
|
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue