]> git.0d.be Git - empathy.git/commitdiff
Click on the tray icon shows the window if it's not active and hide if it
authorXavier Claessens <xclaesse@gmail.com>
Thu, 2 Aug 2007 10:57:42 +0000 (10:57 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Thu, 2 Aug 2007 10:57:42 +0000 (10:57 +0000)
2007-08-02 Xavier Claessens  <xclaesse@gmail.com>

* 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
libempathy-gtk/empathy-status-icon.c

index 72efb136431c4debd4ac3e338eb7c66f64f813ea..9497443c51191c3274e3493aaec8353191ff9099 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-08-02 Xavier Claessens  <xclaesse@gmail.com>
+
+       * 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  <xclaesse@gmail.com>
 
        * libempathy-gtk/empathy-group-chat.c: don't display
index 6cd0f5f90cf0ca63589396ad3d1b27008dfca507..654cbd50db80836e42eb1cef9e626a4b791115a8 100644 (file)
@@ -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);