Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
pitivi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
198
Issues
198
List
Boards
Labels
Service Desk
Milestones
Merge Requests
25
Merge Requests
25
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
pitivi
Commits
ec18c353
Commit
ec18c353
authored
Jan 10, 2014
by
Alexandru Băluț
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ruler: Clarify what constructor parameter is
parent
7a301c87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
pitivi/timeline/ruler.py
pitivi/timeline/ruler.py
+8
-8
No files found.
pitivi/timeline/ruler.py
View file @
ec18c353
...
...
@@ -88,7 +88,7 @@ class ScaleRuler(Gtk.DrawingArea, Zoomable, Loggable):
[
GObject
.
TYPE_UINT64
])
}
def
__init__
(
self
,
instanc
e
,
hadj
):
def
__init__
(
self
,
timelin
e
,
hadj
):
Gtk
.
DrawingArea
.
__init__
(
self
)
Zoomable
.
__init__
(
self
)
Loggable
.
__init__
(
self
)
...
...
@@ -99,7 +99,7 @@ class ScaleRuler(Gtk.DrawingArea, Zoomable, Loggable):
self
.
connect
(
"focus-in-event"
,
self
.
_focusInCb
)
self
.
connect
(
"focus-out-event"
,
self
.
_focusOutCb
)
self
.
app
=
instanc
e
self
.
timeline
=
timelin
e
self
.
_seeker
=
Seeker
()
self
.
hadj
=
hadj
hadj
.
connect
(
"value-changed"
,
self
.
_hadjValueChangedCb
)
...
...
@@ -139,11 +139,11 @@ class ScaleRuler(Gtk.DrawingArea, Zoomable, Loggable):
def
_focusInCb
(
self
,
unused_widget
,
unused_arg
):
self
.
log
(
"Ruler has grabbed focus"
)
self
.
app
.
gui
.
timeline_ui
.
setActionsSensitivity
(
True
)
self
.
timeline
.
setActionsSensitivity
(
True
)
def
_focusOutCb
(
self
,
unused_widget
,
unused_arg
):
self
.
log
(
"Ruler has lost focus"
)
self
.
app
.
gui
.
timeline_ui
.
setActionsSensitivity
(
False
)
self
.
timeline
.
setActionsSensitivity
(
False
)
def
_hadjValueChangedCb
(
self
,
hadj
):
self
.
pixbuf_offset
=
self
.
hadj
.
get_value
()
...
...
@@ -234,18 +234,18 @@ class ScaleRuler(Gtk.DrawingArea, Zoomable, Loggable):
# Control + scroll = zoom
if
event
.
scroll
.
direction
==
Gdk
.
ScrollDirection
.
UP
:
Zoomable
.
zoomIn
()
self
.
app
.
gui
.
timeline_ui
.
zoomed_fitted
=
False
self
.
timeline
.
zoomed_fitted
=
False
elif
event
.
scroll
.
direction
==
Gdk
.
ScrollDirection
.
DOWN
:
Zoomable
.
zoomOut
()
self
.
app
.
gui
.
timeline_ui
.
zoomed_fitted
=
False
self
.
timeline
.
zoomed_fitted
=
False
else
:
# No modifier key held down, just scroll
if
(
event
.
scroll
.
direction
==
Gdk
.
ScrollDirection
.
UP
or
event
.
scroll
.
direction
==
Gdk
.
ScrollDirection
.
LEFT
):
self
.
app
.
gui
.
timeline_ui
.
scroll_left
()
self
.
timeline
.
scroll_left
()
elif
(
event
.
scroll
.
direction
==
Gdk
.
ScrollDirection
.
DOWN
or
event
.
scroll
.
direction
==
Gdk
.
ScrollDirection
.
RIGHT
):
self
.
app
.
gui
.
timeline_ui
.
scroll_right
()
self
.
timeline
.
scroll_right
()
def
setProjectFrameRate
(
self
,
rate
):
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment