~jamiebennett/entertainer/bug-372452-disable-screensaver

« back to all changes in this revision

Viewing changes to entertainerlib/tests/mock.py

  • Committer: Paul Hummer
  • Date: 2009-06-29 04:11:31 UTC
  • mfrom: (378.3.13 reactive_videoOSD)
  • Revision ID: paul@eventuallyanyway.com-20090629041131-kv4na4byjgdrghgy
The video screen is now reactive to pointer events. (Samuel Buffet)

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
        'stop' : ( gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, () ),
142
142
        'skip-forward' : ( gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, () ),
143
143
        'skip-backward' : ( gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, () ),
144
 
        'position_changed' : ( gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, () ),
 
144
        'position-changed' : ( gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, () ),
 
145
        'refresh' : ( gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, () ),
145
146
        }
146
147
 
147
148
    def __init__(self, stage=None, width=None, height=None):
148
149
        '''Override any actual media player set up.'''
149
150
        gobject.GObject.__init__(self)
 
151
        self.is_playing = False
150
152
 
151
153
    def has_media(self):
152
154
        '''See `MediaPlayer.has_media`.'''
153
155
        return False
154
156
 
155
 
    def is_playing(self):
156
 
        '''See `MediaPlayer.is_playing`.'''
157
 
        return False
158
 
 
159
157
    def play(self):
160
158
        '''See `MediaPlayer.play`.'''
161
159