[pitivi] utils/widgets: Port ChoiceWidget to GTK3's new ComboBoxText
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] utils/widgets: Port ChoiceWidget to GTK3's new ComboBoxText
- Date: Sun, 2 Sep 2012 03:58:44 +0000 (UTC)
commit 45ec2f212978970304ca9152422914f610527dc9
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Mon Jul 30 13:37:49 2012 +0200
utils/widgets: Port ChoiceWidget to GTK3's new ComboBoxText
pitivi/utils/widgets.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/utils/widgets.py b/pitivi/utils/widgets.py
index f26f987..58b48b0 100644
--- a/pitivi/utils/widgets.py
+++ b/pitivi/utils/widgets.py
@@ -391,14 +391,14 @@ class ChoiceWidget(gtk.HBox, DynamicWidget):
"""Abstractly, represents a choice between a list of named values. The
association between value names and values is arbitrary. The current
- implementation uses a gtk.ComboBox."""
+ implementation uses a gtk.ComboBoxText for simplicity."""
def __init__(self, choices, default=None):
gtk.HBox.__init__(self)
DynamicWidget.__init__(self, default)
self.choices = None
self.values = None
- self.contents = gtk.combo_box_new_text()
+ self.contents = gtk.ComboBoxText()
self.pack_start(self.contents)
self.setChoices(choices)
self.contents.show()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]