From 6796f373b5b2a157351a2e36c06732ba4332a463 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 2 Aug 2007 10:57:42 +0000 Subject: [PATCH] Click on the tray icon shows the window if it's not active and hide if it 2007-08-02 Xavier Claessens * libempathy-gtk/empathy-status-icon.c: Click on the tray icon shows the window if it's not active and hide if it is. Fixes bug #462057 (Olivier Valentin). svn path=/trunk/; revision=223 --- ChangeLog | 6 ++++++ libempathy-gtk/empathy-status-icon.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 72efb136..9497443c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-08-02 Xavier Claessens + + * libempathy-gtk/empathy-status-icon.c: Click on the tray icon shows the + window if it's not active and hide if it is. Fixes bug #462057 + (Olivier Valentin). + 2007-08-02 Xavier Claessens * libempathy-gtk/empathy-group-chat.c: don't display diff --git a/libempathy-gtk/empathy-status-icon.c b/libempathy-gtk/empathy-status-icon.c index 6cd0f5f9..654cbd50 100644 --- a/libempathy-gtk/empathy-status-icon.c +++ b/libempathy-gtk/empathy-status-icon.c @@ -387,7 +387,7 @@ status_icon_toggle_visibility (EmpathyStatusIcon *icon) priv = GET_PRIV (icon); - visible = empathy_window_get_is_visible (GTK_WINDOW (priv->window)); + visible = gtk_window_has_toplevel_focus (GTK_WINDOW (priv->window)); if (visible) { empathy_window_iconify (priv->window, priv->icon); -- 2.39.2