aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-status-icon.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-31 01:07:35 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-31 01:07:35 +0800
commitd968b3380c661d8c31be352afbd373cac5fcb673 (patch)
tree6c2f00bd75cdf966ce23cd70dc19e3b5bafcf382 /src/empathy-status-icon.c
parent111068fd8b34e36ffbfd9614001918bb31388e73 (diff)
downloadgsoc2013-empathy-d968b3380c661d8c31be352afbd373cac5fcb673.tar
gsoc2013-empathy-d968b3380c661d8c31be352afbd373cac5fcb673.tar.gz
gsoc2013-empathy-d968b3380c661d8c31be352afbd373cac5fcb673.tar.bz2
gsoc2013-empathy-d968b3380c661d8c31be352afbd373cac5fcb673.tar.lz
gsoc2013-empathy-d968b3380c661d8c31be352afbd373cac5fcb673.tar.xz
gsoc2013-empathy-d968b3380c661d8c31be352afbd373cac5fcb673.tar.zst
gsoc2013-empathy-d968b3380c661d8c31be352afbd373cac5fcb673.zip
W.I.P. for notifications on chat window.
svn path=/trunk/; revision=2285
Diffstat (limited to 'src/empathy-status-icon.c')
-rw-r--r--src/empathy-status-icon.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c
index 9ea211784..4c7964566 100644
--- a/src/empathy-status-icon.c
+++ b/src/empathy-status-icon.c
@@ -140,6 +140,8 @@ status_icon_update_notification (EmpathyStatusIcon *icon)
g_signal_connect (priv->notification, "closed",
G_CALLBACK (status_icon_notification_closed_cb), icon);
+
+ g_object_unref (pixbuf);
}
notify_notification_show (priv->notification, NULL);
@@ -223,7 +225,7 @@ status_icon_event_added_cb (EmpathyEventManager *manager,
status_icon_update_icon (icon);
status_icon_update_tooltip (icon);
- if (empathy_notification_should_show ()) {
+ if (empathy_notification_should_show (FALSE)) {
status_icon_update_notification (icon);
}
@@ -272,7 +274,7 @@ status_icon_event_updated_cb (EmpathyEventManager *manager,
return;
}
- if (empathy_notification_should_show ()) {
+ if (empathy_notification_should_show (FALSE)) {
status_icon_update_notification (icon);
}
@@ -340,7 +342,7 @@ status_icon_idle_notify_cb (EmpathyStatusIcon *icon)
status_icon_update_icon (icon);
status_icon_update_tooltip (icon);
- if (!empathy_notification_should_show ()) {
+ if (!empathy_notification_should_show (FALSE)) {
/* dismiss the outstanding notification if present */
if (priv->notification) {
@@ -504,6 +506,7 @@ status_icon_finalize (GObject *object)
if (priv->notification) {
notify_notification_close (priv->notification, NULL);
g_object_unref (priv->notification);
+ priv->notification = NULL;
}
g_object_unref (priv->icon);