[pitivi] utils/widgets: Port our spinbutton widgets to GTK3
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] utils/widgets: Port our spinbutton widgets to GTK3
- Date: Sun, 2 Sep 2012 03:58:19 +0000 (UTC)
commit 01d8a1bc4a654e43a626eafea5dba49f0f1deee0
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Mon Jul 30 12:51:42 2012 +0200
utils/widgets: Port our spinbutton widgets to GTK3
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 28a8256..f26f987 100644
--- a/pitivi/utils/widgets.py
+++ b/pitivi/utils/widgets.py
@@ -212,7 +212,7 @@ class NumericWidget(gtk.HBox, DynamicWidget):
range = upper - lower
self.adjustment.props.lower = lower
self.adjustment.props.upper = upper
- self.spinner = gtk.SpinButton(self.adjustment)
+ self.spinner = gtk.SpinButton(adjustment=self.adjustment)
self.pack_end(self.spinner, expand=not hasattr(self, 'slider'))
self.spinner.show()
@@ -243,7 +243,7 @@ class NumericWidget(gtk.HBox, DynamicWidget):
minimum = self.lower
if self.upper is not None:
maximum = self.upper
- self.adjustment.set_all(value, minimum, maximum, step, page, 0)
+ self.adjustment.configure(value, minimum, maximum, step, page, 0)
self.spinner.set_adjustment(self.adjustment)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]