mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +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 = TimelineWidget ()
|
||||||
self.timeline.add_events (gtk.gdk.ALL_EVENTS_MASK) # FIXME
|
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 ("button-press-event", self.handle_timeline_button_press_event)
|
||||||
self.timeline.connect ("motion-notify-event", self.handle_density_motion_notify_event)
|
self.timeline.connect ("motion-notify-event", self.handle_timeline_motion_notify_event)
|
||||||
box.pack_start (self.timeline, False, False, 0)
|
box.pack_start (self.timeline, False, False, 0)
|
||||||
self.timeline.hide ()
|
self.timeline.hide ()
|
||||||
|
|
||||||
|
@ -411,25 +411,25 @@ class TimelineFeature (FeatureBase):
|
||||||
else:
|
else:
|
||||||
self.timeline.hide ()
|
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:
|
if event.button != 1:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
pos = int (event.x)
|
pos = int (event.x)
|
||||||
self.goto_density (pos)
|
self.goto_time_position (pos)
|
||||||
return False
|
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:
|
if not event.state & gtk.gdk.BUTTON1_MASK:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
pos = int (event.x)
|
pos = int (event.x)
|
||||||
self.goto_density (pos)
|
self.goto_time_position (pos)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def goto_density (self, pos):
|
def goto_time_position (self, pos):
|
||||||
|
|
||||||
data = self.timeline.sentinel.data
|
data = self.timeline.sentinel.data
|
||||||
if not data:
|
if not data:
|
||||||
|
|
Loading…
Reference in a new issue