After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 623033 - gtk.Adjustment.configure is missing
gtk.Adjustment.configure is missing
Status: RESOLVED FIXED
Product: pygtk
Classification: Bindings
Component: general
2.14.x
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2010-06-28 11:02 UTC by Frédéric Bertolus
Modified: 2011-03-26 10:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Frédéric Bertolus 2010-06-28 11:02:56 UTC
GTK 2.14 introduce some new functions.

One is named gtk-adjustment-configure : http://library.gnome.org/devel/gtk/stable/GtkAdjustment.html#gtk-adjustment-configure

This function is partially documentated but totally absent in pygtk 2.14: http://library.gnome.org/devel/pygtk/stable/class-gtkadjustment.html

However, in package pygtk 2.16, the documentation not change but the fonction exists and works. In the source code of pygtk, the python binding contains the following code in the file gtk/gtk-2.14.defs :

(define-method configure
  (of-object "GtkAdjustment")
  (c-name "gtk_adjustment_configure")
  (return-type "none")
  (parameters
    '("gdouble" "value")
    '("gdouble" "lower")
    '("gdouble" "upper")
    '("gdouble" "step_increment")
    '("gdouble" "page_increment")
    '("gdouble" "page_size")
  )
)

This file exist on pygtk 2.14 but there is no reference to this method definition.

Using this function lead to this error :

AttributeError: 'gtk.Adjustment' object has no attribute 'configure'
Comment 1 Dieter Verfaillie 2011-03-26 10:12:46 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.