aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-11 17:47:56 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-11 18:16:26 +0800
commitca3669ada0014c82b11a89921a4c38dee9296f13 (patch)
tree27f341fd7ed269db214992897d49582e63b314d4 /libempathy-gtk
parentacde6c67cdd3c3684d564bb65f2628fdf1bec27a (diff)
downloadgsoc2013-empathy-ca3669ada0014c82b11a89921a4c38dee9296f13.tar
gsoc2013-empathy-ca3669ada0014c82b11a89921a4c38dee9296f13.tar.gz
gsoc2013-empathy-ca3669ada0014c82b11a89921a4c38dee9296f13.tar.bz2
gsoc2013-empathy-ca3669ada0014c82b11a89921a4c38dee9296f13.tar.lz
gsoc2013-empathy-ca3669ada0014c82b11a89921a4c38dee9296f13.tar.xz
gsoc2013-empathy-ca3669ada0014c82b11a89921a4c38dee9296f13.tar.zst
gsoc2013-empathy-ca3669ada0014c82b11a89921a4c38dee9296f13.zip
theme-adium: remove focus marks as soon as the chat is not focused (#649890)
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-theme-adium.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index 0d3f9a718..efc945a5c 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -721,10 +721,6 @@ theme_adium_append_message (EmpathyChatView *view,
message_classes = g_string_new ("message");
if (!priv->has_focus && !is_backlog) {
if (!priv->has_unread_message) {
- /* This is the first message we receive since we lost
- * focus; remove previous unread marks. */
- theme_adium_remove_focus_marks (theme);
-
g_string_append (message_classes, " firstFocus");
priv->has_unread_message = TRUE;
}
@@ -925,12 +921,16 @@ static void
theme_adium_focus_toggled (EmpathyChatView *view,
gboolean has_focus)
{
+ EmpathyThemeAdium *self = (EmpathyThemeAdium *) view;
EmpathyThemeAdiumPriv *priv = GET_PRIV (view);
priv->has_focus = has_focus;
if (priv->has_focus) {
priv->has_unread_message = FALSE;
}
+ else {
+ theme_adium_remove_focus_marks (self);
+ }
}
static void