Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
pitivi
Commits
571fb919
Commit
571fb919
authored
Jul 18, 2012
by
Jeff Fortin Tam
Browse files
Disable keyboard shortcuts in the transformation spinbuttons
parent
d205a510
Changes
1
Hide whitespace changes
Inline
Side-by-side
pitivi/clipproperties.py
View file @
571fb919
...
...
@@ -592,8 +592,14 @@ class TransformationProperties(gtk.Expander):
spinbtn
.
set_value
(
self
.
effect
.
get_property
(
name
))
def
_getAndConnectToEffect
(
self
,
widget_name
,
property_name
):
"""
Create a spinbutton widget and connect its signals to change property
values. While focused, disable the timeline actions' sensitivity.
"""
spinbtn
=
self
.
builder
.
get_object
(
widget_name
)
spinbtn
.
connect
(
"output"
,
self
.
_onValueChangedCb
,
property_name
)
spinbtn
.
connect
(
"focus-in-event"
,
self
.
_disableTimelineActionsCb
)
spinbtn
.
connect
(
"focus-out-event"
,
self
.
_enableTimelineActionsCb
)
self
.
spin_buttons
[
property_name
]
=
spinbtn
self
.
default_values
[
property_name
]
=
spinbtn
.
get_value
()
...
...
@@ -614,6 +620,12 @@ class TransformationProperties(gtk.Expander):
if
box
and
box
.
clicked_point
==
0
:
box
.
update_from_effect
(
self
.
effect
)
def
_disableTimelineActionsCb
(
self
,
unused_widget
,
unused_event
):
self
.
app
.
gui
.
setActionsSensitive
(
False
)
def
_enableTimelineActionsCb
(
self
,
unused_widget
,
unused_event
):
self
.
app
.
gui
.
setActionsSensitive
(
True
)
def
_flushPipeLineCb
(
self
,
widget
):
self
.
app
.
current
.
pipeline
.
flushSeek
()
...
...
Write
Preview
Supports
Markdown
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