]> git.0d.be Git - empathy.git/commitdiff
empathy_chat_window_get_default: rename room_filter to room
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 7 Dec 2009 16:32:27 +0000 (16:32 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 7 Dec 2009 16:59:34 +0000 (16:59 +0000)
src/empathy-chat-window.c
src/empathy-chat-window.h

index 7d240167729deef7fc2d714c6470f110d0a73834..2ceb1e86d0a68e41d3b795c0e0408c3a4064ecbb 100644 (file)
@@ -1848,7 +1848,7 @@ empathy_chat_window_new (void)
  * be added.
  */
 EmpathyChatWindow *
-empathy_chat_window_get_default (gboolean room_filter)
+empathy_chat_window_get_default (gboolean room)
 {
        GList    *l;
        gboolean  separate_windows = TRUE;
@@ -1876,11 +1876,11 @@ empathy_chat_window_get_default (gboolean room_filter)
                        nb_rooms = empathy_chat_window_get_nb_rooms (chat_window);
 
                        /* We add a new room only if the window has at least one room */
-                       if (room_filter && nb_rooms == 0)
+                       if (room && nb_rooms == 0)
                                continue;
 
                        /* We add a new 1-1 chat only if the window has at least one 1-1 chat */
-                       if (!room_filter && nb_rooms > 0)
+                       if (!room && nb_rooms > 0)
                                continue;
 
                        /* Found a visible window on this desktop */
index 9981faddbcc8c914412d7a131cec9f6fd3143f4f..a347352a95473d93d5c5072f5169c96f706ddca8 100644 (file)
@@ -57,7 +57,7 @@ struct _EmpathyChatWindowClass {
 };
 
 GType              empathy_chat_window_get_type       (void);
-EmpathyChatWindow *empathy_chat_window_get_default    (gboolean room_filter);
+EmpathyChatWindow *empathy_chat_window_get_default    (gboolean room);
 EmpathyChatWindow *empathy_chat_window_new            (void);
 GtkWidget *        empathy_chat_window_get_dialog     (EmpathyChatWindow *window);
 void               empathy_chat_window_add_chat       (EmpathyChatWindow *window,