diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-04-23 21:58:10 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-04-23 21:58:10 +0800 |
commit | 26c5dbdb15ffaba1bac960966617872d557a0f34 (patch) | |
tree | 5b094e8957e89502173238dec8308d7add699e6f /src/empathy-chat-window.c | |
parent | beecbb7de2abf1ba7eed3cfc46e4a1b150e433bb (diff) | |
download | gsoc2013-empathy-26c5dbdb15ffaba1bac960966617872d557a0f34.tar gsoc2013-empathy-26c5dbdb15ffaba1bac960966617872d557a0f34.tar.gz gsoc2013-empathy-26c5dbdb15ffaba1bac960966617872d557a0f34.tar.bz2 gsoc2013-empathy-26c5dbdb15ffaba1bac960966617872d557a0f34.tar.lz gsoc2013-empathy-26c5dbdb15ffaba1bac960966617872d557a0f34.tar.xz gsoc2013-empathy-26c5dbdb15ffaba1bac960966617872d557a0f34.tar.zst gsoc2013-empathy-26c5dbdb15ffaba1bac960966617872d557a0f34.zip |
Make sure we don't assume Text channel's handle_type is != NONE.
svn path=/trunk/; revision=1032
Diffstat (limited to 'src/empathy-chat-window.c')
-rw-r--r-- | src/empathy-chat-window.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c index 09a0e4589..4125f9743 100644 --- a/src/empathy-chat-window.c +++ b/src/empathy-chat-window.c @@ -34,6 +34,7 @@ #include <glade/glade.h> #include <glib/gi18n.h> +#include <telepathy-glib/util.h> #include <libmissioncontrol/mission-control.h> #include <libempathy/empathy-contact-factory.h> @@ -470,17 +471,18 @@ chat_window_clear_activate_cb (GtkWidget *menuitem, static const gchar * chat_get_window_id_for_geometry (EmpathyChat *chat) { - gboolean separate_windows; + const gchar *res = NULL; + gboolean separate_windows; empathy_conf_get_bool (empathy_conf_get (), EMPATHY_PREFS_UI_SEPARATE_CHAT_WINDOWS, &separate_windows); if (separate_windows) { - return empathy_chat_get_id (chat); - } else { - return "chat-window"; + res = empathy_chat_get_id (chat); } + + return res ? res : "chat-window"; } static gboolean @@ -1455,7 +1457,7 @@ empathy_chat_window_find_chat (McAccount *account, chat = ll->data; if (empathy_account_equal (account, empathy_chat_get_account (chat)) && - strcmp (id, empathy_chat_get_id (chat)) == 0) { + !tp_strdiff (id, empathy_chat_get_id (chat))) { return chat; } } |