'attach_to_status_icon' not working

Bug #86010 reported by Adolfo González Blázquez
16
Affects Status Importance Assigned to Milestone
notify-python (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

'attach_to_status_icon' is not worknig in current fesity.

When trying to use it, it says:
AttributeError: ‘pynotify.Notification’ object has no attribute ‘attach_to_status_icon’

==> Example code:
#! /usr/bin/python
# -*- coding: UTF-8 -*-

import pygtk
pygtk.require("2.0")
import gtk
import pynotify

icon = gtk.StatusIcon()
icon.set_from_file('icon.png')

pynotify.init('example')
n = pynotify.Notification('foo', 'bar')
n.attach_to_status_icon(icon)
n.show()

gtk.main()

==> Error reported:
Traceback (most recent call last):
  File "icon.py", line 14, in ?
    n.attach_to_status_icon(icon)
AttributeError: 'pynotify.Notification' object has no attribute 'attach_to_status_icon'

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
Changed in notify-python:
status: New → In Progress
Changed in notify-python:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Argh, sorry for this. I fixed it already in Feisty, someone synced the package without checking the diff, and I re-fixed it in gutsy a while ago. It is sufficient to remove src/pynotify.c in debian/rules before build, so that it gets regenerated properly.

Somehow I managed to not get it uploaded, done so now:

 notify-python (0.1.1-1ubuntu1) gutsy; urgency=low
 .
   * debian/rules: Remove src/pynotify.c on clean, so that it actually gets
     regenerated on build. Otherwise some functions like
     attach_to_status_icon() are missing.
   * debian/control: Set Ubuntu maintainer.

Changed in notify-python:
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.