Ticket #168 (defect)
Opened 3 months ago
notifications do not resize properly if visible
Status: new
| Reported by: | ossman | Assigned to: | chipx86 |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | libnotify | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | drzeus-bugzilla@drzeus.cx | D-BUS Version: | |
| Patch Included: | 0 | OS/Distro Version: | |
If a notification is resized while it is visible, it only shifts its position and draws the background incorrectly. This is often seen in the notifications by gnome-mount.
The bug is easily provoked with this Python script (which does what gnome-mount does):
#!/usr/bin/env python
import time
from pynotify import *
init("Foo")
n = Notification("Writing data to device", "There is data that needs to be written to the device FooBared before it can be removed. Please do not remove the media or disconnect the drive.", "gnome-dev-harddisk")
n.set_timeout(EXPIRES_NEVER)
n.show()
time.sleep(2)
n.update("Device is now safe to remove", "The device FooBared is now safe to remove.", "gnome-dev-harddisk")
n.set_timeout(EXPIRES_DEFAULT)
n.show()
