diff --git a/pympress/media_overlays/gst_backend.py b/pympress/media_overlays/gst_backend.py index b129bae3..39e98845 100644 --- a/pympress/media_overlays/gst_backend.py +++ b/pympress/media_overlays/gst_backend.py @@ -55,7 +55,7 @@ def __init__(self, *args, **kwargs): self.media_overlay.remove(self.movie_zone) self.media_overlay.pack_start(self.sink.props.widget, True, True, 0) self.media_overlay.reorder_child(self.sink.props.widget, 0) - self.sink.props.widget.show() + self.sink.props.widget.hide() # Create bus to get events from GStreamer playin bus = self.playbin.get_bus() @@ -101,6 +101,7 @@ def on_play(self, *args): """ GLib.idle_add(self.do_update_duration) GLib.timeout_add(200, self.do_update_time) + self.sink.props.widget.show() def do_update_duration(self, *args): @@ -150,6 +151,7 @@ def do_stop(self): """ self.playbin.set_state(Gst.State.NULL) self.playbin.set_state(Gst.State.READY) + self.sink.props.widget.hide() return False diff --git a/pympress/share/xml/media_overlay.glade b/pympress/share/xml/media_overlay.glade index bc37ac99..7d0931e0 100644 --- a/pympress/share/xml/media_overlay.glade +++ b/pympress/share/xml/media_overlay.glade @@ -7,19 +7,6 @@ False vertical - - - True - False - GDK_BUTTON_PRESS_MASK | GDK_STRUCTURE_MASK - - - - True - True - 0 - - True @@ -99,6 +86,21 @@ False False + end + 0 + + + + + True + False + GDK_BUTTON_PRESS_MASK | GDK_STRUCTURE_MASK + + + + True + True + end 1