]> git.0d.be Git - empathy.git/commitdiff
Port EmpathyChatWindow to new API and remove dead code.
authorXavier Claessens <xclaesse@gmail.com>
Sun, 15 Feb 2009 21:27:46 +0000 (22:27 +0100)
committerXavier Claessens <xclaesse@gmail.com>
Wed, 22 Apr 2009 10:21:08 +0000 (12:21 +0200)
src/empathy-chat-window.c

index 145d45e7fac5f98dcf97c9dfd37ae6a3f84f9784..be8aa415a966e885103c7f2efae8bd6fd926ec31 100644 (file)
@@ -953,7 +953,7 @@ chat_window_new_message_cb (EmpathyChat       *chat,
        if (has_focus && priv->current_chat == chat) {
                return;
        }
-       
+
        /* If empathy_chat_is_room() returns TRUE, that means it's a named MUC.
         * If empathy_chat_get_remote_contact() returns NULL, that means it's
         * an unamed MUC (msn-like).
@@ -1700,17 +1700,3 @@ empathy_chat_window_present_chat (EmpathyChat *chat)
        gtk_widget_grab_focus (chat->input_text_view); 
 }
 
-#if 0
-static gboolean
-chat_window_should_play_sound (EmpathyChatWindow *window)
-{
-       EmpathyChatWindowPriv *priv = GET_PRIV (window);
-       gboolean               has_focus = FALSE;
-
-       g_return_val_if_fail (EMPATHY_IS_CHAT_WINDOW (window), FALSE);
-
-       g_object_get (priv->dialog, "has-toplevel-focus", &has_focus, NULL);
-
-       return !has_focus;
-}
-#endif