[pitivi] dynamic.py: make ChoiceWidget insensitive if there are no choices
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] dynamic.py: make ChoiceWidget insensitive if there are no choices
- Date: Tue, 17 Aug 2010 07:07:17 +0000 (UTC)
commit fa9a37bdfbcb09512e5c0395efa92679d3723c5b
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date: Fri Oct 16 16:00:00 2009 -0700
dynamic.py: make ChoiceWidget insensitive if there are no choices
pitivi/ui/dynamic.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/dynamic.py b/pitivi/ui/dynamic.py
index 496039f..8c09020 100644
--- a/pitivi/ui/dynamic.py
+++ b/pitivi/ui/dynamic.py
@@ -272,6 +272,8 @@ class ChoiceWidget(gtk.VBox):
self.contents = gtk.combo_box_new_text()
for choice, value in choices:
self.contents.append_text(_(choice))
+ if len(choices) <= 1:
+ self.contents.set_sensitive(False)
self.pack_start(self.contents)
self.contents.show()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]