Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-01-30 09:24:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-01-30 09:24:51 +0400
commit5f47f1370e63a54a98e7cce5b5aee91da1214aae (patch)
treec31568cb524a27a82ce21733968170c15202ce5e /release/scripts/startup/bl_ui/space_sequencer.py
parent9598990b9b6ef4fb129943ea1288d9087dff9f9b (diff)
UI: move toggle icons out of layout checks into rna
Diffstat (limited to 'release/scripts/startup/bl_ui/space_sequencer.py')
-rw-r--r--release/scripts/startup/bl_ui/space_sequencer.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py
index eab4f5ea541..d7acffa05c7 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -427,12 +427,12 @@ class SEQUENCER_PT_edit(SequencerButtonsPanel, Panel):
sub = row.row(align=True)
sub.active = (not strip.mute)
sub.prop(strip, "blend_alpha", text="Opacity", slider=True)
- row.prop(strip, "mute", toggle=True, icon='RESTRICT_VIEW_ON' if strip.mute else 'RESTRICT_VIEW_OFF', text="")
- row.prop(strip, "lock", toggle=True, icon='LOCKED' if strip.lock else 'UNLOCKED', text="")
+ row.prop(strip, "mute", toggle=True, icon_only=True)
+ row.prop(strip, "lock", toggle=True, icon_only=True)
else:
row = layout.row(align=True)
- row.prop(strip, "mute", toggle=True, icon='RESTRICT_VIEW_ON' if strip.mute else 'RESTRICT_VIEW_OFF')
- row.prop(strip, "lock", toggle=True, icon='LOCKED' if strip.lock else 'UNLOCKED')
+ row.prop(strip, "mute", toggle=True, icon_only=True)
+ row.prop(strip, "lock", toggle=True, icon_only=True)
col = layout.column()
sub = col.column()