Esempio n. 1
0
 def do_button_release_event(self, event):
     if event.button == 1:
         PlaylistButtonControl.do_button_release_event(self, event)
     elif event.button == 2:
         event = event.copy()
         event.button = 1
         x, y = self.translate_coordinates(self.progressbar, int(event.x),
                                           int(event.y))
         event.x, event.y = float(x), float(y)
         self.progressbar.emit('button-release-event', event)
Esempio n. 2
0
    def do_button_release_event(self, event):
        """
            Forwards the event to the rating widget
        """
        allocation = self.rating_widget.get_allocation()

        if allocation.x < event.x < allocation.x + allocation.width:
            x, y = self.translate_coordinates(self.rating_widget, int(event.x), int(event.y))
            event.x, event.y = float(x), float(y)
            self.rating_widget.emit("button-release-event", event.copy())
Esempio n. 3
0
 def do_button_release_event(self, event):
     if event.button == 1:
         PlaylistButtonControl.do_button_release_event(self, event)
     elif event.button == 2:
         event = event.copy()
         event.button = 1
         x, y = self.translate_coordinates(self.progressbar,
             int(event.x), int(event.y))
         event.x, event.y = float(x), float(y)
         self.progressbar.emit('button-release-event', event)
Esempio n. 4
0
    def do_button_release_event(self, event):
        """
            Forwards the event to the rating widget
        """
        allocation = self.rating_widget.get_allocation()

        if allocation.x < event.x < allocation.x + allocation.width:
            x, y = self.translate_coordinates(self.rating_widget, int(event.x),
                                              int(event.y))
            event.x, event.y = float(x), float(y)
            self.rating_widget.emit('button-release-event', event.copy())
Esempio n. 5
0
    def do_motion_notify_event(self, event):
        """
            Forwards the event to the rating widget
        """
        allocation = self.rating_widget.get_allocation()

        if allocation.x < event.x < allocation.x + allocation.width:
            x, y = self.translate_coordinates(self.rating_widget,
                int(event.x), int(event.y))
            event.x, event.y = float(x), float(y)
            self.rating_widget.emit('motion-notify-event', event.copy())
Esempio n. 6
0
 def do_button_press_event(self, event):
     """
         Trigger normal toggle action or seek
     """
     if event.button == 1:
         PlaylistButtonControl.do_button_press_event(self, event)
     elif event.button == 2:
         event = event.copy()
         event.button = 1
         x, y = self.translate_coordinates(self.progressbar, int(event.x),
                                           int(event.y))
         event.x, event.y = float(x), float(y)
         self.progressbar.emit('button-press-event', event)
Esempio n. 7
0
 def do_button_press_event(self, event):
     """
         Trigger normal toggle action or seek
     """
     if event.button == 1:
         PlaylistButtonControl.do_button_press_event(self, event)
     elif event.button == 2:
         event = event.copy()
         event.button = 1
         x, y = self.translate_coordinates(self.progressbar,
             int(event.x), int(event.y))
         event.x, event.y = float(x), float(y)
         self.progressbar.emit('button-press-event', event)
Esempio n. 8
0
 def do_leave_notify_event(self, event):
     """
         Forwards the event to the rating widget
     """
     self.rating_widget.emit('leave-notify-event', event.copy())
Esempio n. 9
0
 def do_leave_notify_event(self, event):
     event = event.copy()
     x, y = self.translate_coordinates(self.progressbar, int(event.x),
                                       int(event.y))
     event.x, event.y = float(x), float(y)
     self.progressbar.emit('leave-notify-event', event)
Esempio n. 10
0
 def do_leave_notify_event(self, event):
     event = event.copy()
     x, y = self.translate_coordinates(self.progressbar, int(event.x), int(event.y))
     event.x, event.y = float(x), float(y)
     self.progressbar.emit('leave-notify-event', event)
Esempio n. 11
0
 def do_leave_notify_event(self, event):
     """
         Forwards the event to the rating widget
     """
     self.rating_widget.emit("leave-notify-event", event.copy())