[pitivi] Disable non-functional widgets
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Disable non-functional widgets
- Date: Sat, 21 Jul 2012 19:59:42 +0000 (UTC)
commit 34854ccc97dafaf015875bed97413ee5bfdd980b
Author: Paul Lange <palango gmx de>
Date: Wed Jun 27 17:11:34 2012 +0200
Disable non-functional widgets
pitivi/timeline/layer.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/layer.py b/pitivi/timeline/layer.py
index 3301e27..faabd88 100644
--- a/pitivi/timeline/layer.py
+++ b/pitivi/timeline/layer.py
@@ -66,6 +66,7 @@ class BaseLayerControl(gtk.Table, Loggable):
name_entry.set_property("primary-icon-name", icon_mapping[layer_type])
name_entry.connect("focus-in-event", self._focusChangeCb, False)
name_entry.connect("focus-out-event", self._focusChangeCb, True)
+ name_entry.props.sensitive = False
# 'Solo' toggle button
solo_button = gtk.ToggleButton()
@@ -74,11 +75,13 @@ class BaseLayerControl(gtk.Table, Loggable):
solo_image = gtk.Image()
solo_image.set_from_icon_name("avatar-default-symbolic", gtk.ICON_SIZE_MENU)
solo_button.add(solo_image)
+ solo_button.props.sensitive = False
# CheckButton
visible_option = gtk.CheckButton()
visible_option.connect("toggled", self._visibilityChangedCb)
visible_option.set_active(True)
+ visible_option.props.sensitive = False
# Temporary delete button
del_button = gtk.Button()
@@ -98,6 +101,7 @@ class BaseLayerControl(gtk.Table, Loggable):
# Lower bar
self.lower_hbox = gtk.HBox()
+ self.lower_hbox.props.sensitive = False
self.attach(upper, 1, 2, 0, 1)
self.attach(self.lower_hbox, 1, 2, 1, 2)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]