AttributeError in Volume Control: 'gtk.HScale' object has no attribute 'add_mark'

Bug #566567 reported by MeskiuxXx
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Awn Extras
Fix Released
Medium
onox

Bug Description

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 1462, in init_start
    applet_class(applet)
  File "/usr/share/avant-window-navigator/applets/volume-control/volume-control.py", line 100, in __init__
    self.setup_main_dialog(prefs)
  File "/usr/share/avant-window-navigator/applets/volume-control/volume-control.py", line 119, in setup_main_dialog
    self.volume_scale.add_mark(100, gtk.POS_BOTTOM, "<small>%s</small>" % "100%")
AttributeError: 'gtk.HScale' object has no attribute 'add_mark'

Related branches

onox (onox)
tags: added: applet traceback volume-control
Revision history for this message
onox (onox) wrote :

What distribution do you have? add_mark() exists in Gtk+ since 2.16

Changed in awn-extras:
assignee: nobody → onox (onox)
importance: Undecided → Medium
milestone: none → 0.4.2
status: New → Confirmed
Revision history for this message
onox (onox) wrote :

Fixed in revision 1291.

Changed in awn-extras:
status: Confirmed → Fix Committed
Revision history for this message
geo (geozback) wrote :

I have 2.6.28-18-generic Ubuntu Jaunty 9.04

cgb (cgb-domestec)
Changed in awn-extras:
status: Fix Committed → Fix Released
status: Fix Released → Fix Committed
Revision history for this message
geo (geozback) wrote :

hum hum
today after update to (apparatly 1294), i have already the same bug (same traceback)
but the
       if gtk.gtk_version >= (2, 16, 0):
            self.volume_scale.add_mark(100, gtk.POS_BOTTOM, "<small>%s</small>" % "100%")
is write in
/usr/share/avant-window-navigator/applets/volume-control/volume-control.py

???

Traceback (most recent call last):
  File "/var/lib/python-support/python2.6/awn/extras/awnlib.py", line 1462, in init_start
    applet_class(applet)
  File "/usr/share/avant-window-navigator/applets/volume-control/volume-control.py", line 100, in __init__
    self.setup_main_dialog(prefs)
  File "/usr/share/avant-window-navigator/applets/volume-control/volume-control.py", line 121, in setup_main_dialog
    self.volume_scale.add_mark(100, gtk.POS_BOTTOM, "<small>%s</small>" % "100%")
AttributeError: 'gtk.HScale' object has no attribute 'add_mark'

Revision history for this message
geo (geozback) wrote :

dpkg -l | grep 'The GTK+ graphical'
ii libgtk2.0-0 2.16.1-0ubuntu2 The GTK+ graphical user interface library

Revision history for this message
onox (onox) wrote :

Are you trying to say you still get the the traceback even with if gtk.gtk_version >= (2, 16, 0)?

Revision history for this message
onox (onox) wrote :

It seems jaunty only has python-gtk2 version 2.14.1, which does not cover the 2.16 API of Gtk+ (python-gtk2-2.15.0 is needed for this). I've committed revision 1296 which also tests the version of PyGTK.

Revision history for this message
geo (geozback) wrote :

"Are you trying to say you still get the the traceback even with if gtk.gtk_version >= (2, 16, 0)?"

YES and always the same bug today after update ...

my GTK version is 2.16.1-0ubuntu2 on Jaunty (only the AWN depot is on test (or developpement), ALL other are normal version)

what trace do you want? I can send you

Revision history for this message
geo (geozback) wrote :

depot = repository

Revision history for this message
onox (onox) wrote :

Look at the version of the PPA, it's 1294 atm, not >= 1296.

Revision history for this message
geo (geozback) wrote :

version on my laptop (installed) is 0.4.1~bzr1294-1.9.04
i'm waiting for 1296 ;)

Revision history for this message
Observer (dbvweb) wrote :

I'm running Jaunty with all the updates.

Traceback (most recent call last):
  File "/var/lib/python-support/python2.6/awn/extras/awnlib.py", line 1462, in init_start
    applet_class(applet)
  File "/usr/share/avant-window-navigator/applets/volume-control/volume-control.py", line 100, in __init__
    self.setup_main_dialog(prefs)
  File "/usr/share/avant-window-navigator/applets/volume-control/volume-control.py", line 121, in setup_main_dialog
    self.volume_scale.add_mark(100, gtk.POS_BOTTOM, "<small>%s</small>" % "100%")
AttributeError: 'gtk.HScale' object has no attribute 'add_mark'

Revision history for this message
onox (onox) wrote :

@Observer: you need to be more precise; what version of extras? bzr1294 or bzr1297?

And pasting a traceback that is basically the same as the one in the description fields is not gonna help.

Revision history for this message
Observer (dbvweb) wrote :

@onox: Silly me! The extras version is bzr1294-1.9.04.

Not to state the obvious, but the only reason I paste those here is because that is the only piece of information provided in the error dialog. :)

Oh, and the applet version is 0.4.1 ...
Is there any other info I should provide? :)

Revision history for this message
onox (onox) wrote :

No, but update to bzr1297 because this version contains the fix.

Povilas Kanapickas (p12)
Changed in awn-extras:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.