mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 13:25:56 +00:00
Rename more density stuff to timeline
This commit is contained in:
parent
f17d2000c8
commit
8747ab3a6e
1 changed files with 7 additions and 7 deletions
|
@ -355,8 +355,8 @@ class TimelineFeature (FeatureBase):
|
|||
|
||||
self.timeline = TimelineWidget ()
|
||||
self.timeline.add_events (gtk.gdk.ALL_EVENTS_MASK) # FIXME
|
||||
self.timeline.connect ("button-press-event", self.handle_density_button_press_event)
|
||||
self.timeline.connect ("motion-notify-event", self.handle_density_motion_notify_event)
|
||||
self.timeline.connect ("button-press-event", self.handle_timeline_button_press_event)
|
||||
self.timeline.connect ("motion-notify-event", self.handle_timeline_motion_notify_event)
|
||||
box.pack_start (self.timeline, False, False, 0)
|
||||
self.timeline.hide ()
|
||||
|
||||
|
@ -411,25 +411,25 @@ class TimelineFeature (FeatureBase):
|
|||
else:
|
||||
self.timeline.hide ()
|
||||
|
||||
def handle_density_button_press_event (self, widget, event):
|
||||
def handle_timeline_button_press_event (self, widget, event):
|
||||
|
||||
if event.button != 1:
|
||||
return True
|
||||
|
||||
pos = int (event.x)
|
||||
self.goto_density (pos)
|
||||
self.goto_time_position (pos)
|
||||
return False
|
||||
|
||||
def handle_density_motion_notify_event (self, widget, event):
|
||||
def handle_timeline_motion_notify_event (self, widget, event):
|
||||
|
||||
if not event.state & gtk.gdk.BUTTON1_MASK:
|
||||
return True
|
||||
|
||||
pos = int (event.x)
|
||||
self.goto_density (pos)
|
||||
self.goto_time_position (pos)
|
||||
return False
|
||||
|
||||
def goto_density (self, pos):
|
||||
def goto_time_position (self, pos):
|
||||
|
||||
data = self.timeline.sentinel.data
|
||||
if not data:
|
||||
|
|
Loading…
Reference in a new issue