[rhythmbox] status-icon: clear hints before updating notifications (bug #598613)
- From: Jonathan Matthew <jmatthew src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rhythmbox] status-icon: clear hints before updating notifications (bug #598613)
- Date: Tue, 3 Nov 2009 21:08:39 +0000 (UTC)
commit a0914313afb7a374954fa7079fbc90af0b6c402a
Author: Mirco Müller <mirco mueller ubuntu com>
Date: Wed Nov 4 06:56:04 2009 +1000
status-icon: clear hints before updating notifications (bug #598613)
notify-osd prefers the icon_data hint to the icon name, so we need to
clear the hint before it will pay attention to an icon name.
plugins/status-icon/rb-status-icon-plugin.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/status-icon/rb-status-icon-plugin.c b/plugins/status-icon/rb-status-icon-plugin.c
index 4397f44..41a5933 100644
--- a/plugins/status-icon/rb-status-icon-plugin.c
+++ b/plugins/status-icon/rb-status-icon-plugin.c
@@ -396,6 +396,7 @@ do_notify (RBStatusIconPlugin *plugin,
G_CALLBACK (notification_closed_cb),
plugin, 0);
} else {
+ notify_notification_clear_hints (plugin->priv->notification);
notify_notification_update (plugin->priv->notification, primary, secondary, icon_name);
}
@@ -417,6 +418,7 @@ do_notify (RBStatusIconPlugin *plugin,
notify_notification_set_timeout (plugin->priv->notification, timeout);
if (pixbuf != NULL) {
+ notify_notification_clear_hints (plugin->priv->notification);
notify_notification_set_icon_from_pixbuf (plugin->priv->notification, pixbuf);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]