aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-07 17:08:45 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-09 18:37:01 +0800
commitfd845a984220e1004ad93c56bec771c7a14a8c3f (patch)
treec51f84db5e2180843df4e72e6765315ff1c0afc7
parent95e197e782920fda4a91a5c154390bd5b6e0102c (diff)
downloadgsoc2013-empathy-fd845a984220e1004ad93c56bec771c7a14a8c3f.tar
gsoc2013-empathy-fd845a984220e1004ad93c56bec771c7a14a8c3f.tar.gz
gsoc2013-empathy-fd845a984220e1004ad93c56bec771c7a14a8c3f.tar.bz2
gsoc2013-empathy-fd845a984220e1004ad93c56bec771c7a14a8c3f.tar.lz
gsoc2013-empathy-fd845a984220e1004ad93c56bec771c7a14a8c3f.tar.xz
gsoc2013-empathy-fd845a984220e1004ad93c56bec771c7a14a8c3f.tar.zst
gsoc2013-empathy-fd845a984220e1004ad93c56bec771c7a14a8c3f.zip
chat-window: don't present chat if notification has been dismissed
Clicking on a notification mean 'please go away'. If user wants to approve the action he has to click on the 'Reply' button. This code was broken anyway so we don't change the current behaviour.
-rw-r--r--src/empathy-chat-window.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 302aa3ac3..d1a0c8fb1 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -1199,16 +1199,8 @@ static void
chat_window_notification_closed_cb (NotifyNotification *notify,
NotificationData *cb_data)
{
- EmpathyNotificationClosedReason reason = 0;
EmpathyChatWindowPriv *priv = GET_PRIV (cb_data->window);
-#ifdef notify_notification_get_closed_reason
- reason = notify_notification_get_closed_reason (notify);
-#endif
- if (reason == EMPATHY_NOTIFICATION_CLOSED_DISMISSED) {
- empathy_chat_window_present_chat (cb_data->chat);
- }
-
g_object_unref (notify);
priv->notification = NULL;
free_notification_data (cb_data);