diff options
author | Simon Schampijer <simon@schampijer.de> | 2011-10-31 13:06:22 (GMT) |
---|---|---|
committer | Sascha Silbe <silbe@activitycentral.com> | 2011-11-15 21:43:30 (GMT) |
commit | 3e5d38bf49cbb39a8efe6acd40eaafee9214aca9 (patch) | |
tree | b78e0fef2f25d8e93e179f57755cfb30fe329f07 | |
parent | 93b84923786a1d20e46715bf0a7d58b9d2fa6495 (diff) |
Pass all parameters to ComboBox.set_row_separator_func()
With PyGTK, the func and data parameters to ComboBox.set_row_separator_func()
had defaults [1]. With GTK3+pygi both values must be passed [2].
[1] http://developer.gnome.org/pygtk/stable/class-gtkcombobox.html#method-gtkcombobox--set-row-separator-func
[2] http://developer.gnome.org/gtk/stable/GtkComboBox.html#gtk-combo-box-set-row-separator-func
[replaced description]
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
-rw-r--r-- | src/sugar3/graphics/combobox.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sugar3/graphics/combobox.py b/src/sugar3/graphics/combobox.py index 09554e5..b56604a 100644 --- a/src/sugar3/graphics/combobox.py +++ b/src/sugar3/graphics/combobox.py @@ -39,7 +39,7 @@ class ComboBox(gtk.ComboBox): gobject.TYPE_BOOLEAN) self.set_model(self._model) - self.set_row_separator_func(self._is_separator) + self.set_row_separator_func(self._is_separator, None) def get_value(self): """ @@ -166,5 +166,5 @@ class ComboBox(gtk.ComboBox): """ self._model.clear() - def _is_separator(self, model, row): + def _is_separator(self, model, row, data): return model[row][3] |