aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-status-icon.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-12 21:25:23 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-13 19:37:18 +0800
commite5b71631aacf92ba8d242e0a3e3763555b8c751c (patch)
tree6d69a5753ec8e2406bec8aa1def606bc0d01469f /src/empathy-status-icon.c
parentab3c9ccb3c468f03ddc790bb2e5a84845684bfc5 (diff)
downloadgsoc2013-empathy-e5b71631aacf92ba8d242e0a3e3763555b8c751c.tar
gsoc2013-empathy-e5b71631aacf92ba8d242e0a3e3763555b8c751c.tar.gz
gsoc2013-empathy-e5b71631aacf92ba8d242e0a3e3763555b8c751c.tar.bz2
gsoc2013-empathy-e5b71631aacf92ba8d242e0a3e3763555b8c751c.tar.lz
gsoc2013-empathy-e5b71631aacf92ba8d242e0a3e3763555b8c751c.tar.xz
gsoc2013-empathy-e5b71631aacf92ba8d242e0a3e3763555b8c751c.tar.zst
gsoc2013-empathy-e5b71631aacf92ba8d242e0a3e3763555b8c751c.zip
change empathy_notification_is_enabled to empathy_notify_manager_notification_is_enabled
Making it a method of EmpathyNotifyManager would allow us to cache the gconf values if we want to.
Diffstat (limited to 'src/empathy-status-icon.c')
-rw-r--r--src/empathy-status-icon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c
index 76c549ebb..1b0abdc39 100644
--- a/src/empathy-status-icon.c
+++ b/src/empathy-status-icon.c
@@ -147,7 +147,7 @@ status_icon_update_notification (EmpathyStatusIcon *icon)
EmpathyStatusIconPriv *priv = GET_PRIV (icon);
GdkPixbuf *pixbuf = NULL;
- if (!empathy_notification_is_enabled ()) {
+ if (!empathy_notify_manager_notification_is_enabled (priv->notify_mgr)) {
/* always close the notification if this happens */
notification_close_helper (priv);
return;
@@ -331,7 +331,7 @@ status_icon_event_updated_cb (EmpathyEventManager *manager,
return;
}
- if (empathy_notification_is_enabled ()) {
+ if (empathy_notify_manager_notification_is_enabled (priv->notify_mgr)) {
status_icon_update_notification (icon);
}
@@ -388,7 +388,7 @@ status_icon_idle_notify_cb (EmpathyStatusIcon *icon)
status_icon_update_icon (icon);
status_icon_update_tooltip (icon);
- if (!empathy_notification_is_enabled ()) {
+ if (!empathy_notify_manager_notification_is_enabled (priv->notify_mgr)) {
/* dismiss the outstanding notification if present */
if (priv->notification) {