Public bug reported:

I want my notification to be attached to a status icon; I use this code
(snippet):

            scriptDir = sys.path[0]
            iconURL = "file://" + scriptDir[1:] + "/icon.png"
            notification = pynotify.Notification("pyWallpaper",message,iconURL)
            notification.set_timeout(timeout)
    
            pixbuf = gtk.gdk.pixbuf_new_from_file(scriptDir + "/icon.png")
            tray = gtk.StatusIcon()
            tray.set_from_pixbuf(pixbuf)
            tray.set_tooltip("pyWallpaper notification")
    
            notification.attach_to_status_icon(tray)
            notification.show()

            gtk.main()

This ends up showing the notification on a random location on the
screen, not even close to the status icon.

** Affects: notify-python (Ubuntu)
     Importance: Undecided
         Status: New

-- 
'attach_to_status_icon' doesn't get it quite right
https://bugs.launchpad.net/bugs/130482
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to