]> git.0d.be Git - empathy.git/commitdiff
Useless to cast 2 times to the same class
authorXavier Claessens <xclaesse@src.gnome.org>
Mon, 14 Jul 2008 08:08:37 +0000 (08:08 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Mon, 14 Jul 2008 08:08:37 +0000 (08:08 +0000)
svn path=/trunk/; revision=1224

src/empathy-chat-window.c

index 7a993d6bfe8e21237eaa9331812477654b53d68a..3780629fcc2c796c04c99176569764a15f36faaf 100644 (file)
@@ -1275,7 +1275,7 @@ empathy_chat_window_get_default (void)
                chat_window = l->data;
 
                dialog = empathy_chat_window_get_dialog (chat_window);
-               if (empathy_window_get_is_visible (GTK_WINDOW (GTK_WINDOW (dialog)))) {
+               if (empathy_window_get_is_visible (GTK_WINDOW (dialog))) {
                        /* Found a visible window on this desktop */
                        return chat_window;
                }