aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJovanka Gulicoska <jovanka.gulicoska@gmail.com>2012-01-10 07:12:03 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2012-01-10 07:26:44 +0800
commite321b0ea9020482db3df359b6c4c4a645d6eaf64 (patch)
treef7e45efc34dfe6d0f38037271e9e796715eb9255
parent7d7083dd159bc1209ea8a8ea48f5465fefa078f8 (diff)
downloadgsoc2013-empathy-e321b0ea9020482db3df359b6c4c4a645d6eaf64.tar
gsoc2013-empathy-e321b0ea9020482db3df359b6c4c4a645d6eaf64.tar.gz
gsoc2013-empathy-e321b0ea9020482db3df359b6c4c4a645d6eaf64.tar.bz2
gsoc2013-empathy-e321b0ea9020482db3df359b6c4c4a645d6eaf64.tar.lz
gsoc2013-empathy-e321b0ea9020482db3df359b6c4c4a645d6eaf64.tar.xz
gsoc2013-empathy-e321b0ea9020482db3df359b6c4c4a645d6eaf64.tar.zst
gsoc2013-empathy-e321b0ea9020482db3df359b6c4c4a645d6eaf64.zip
Disable join button when protocol irc is selected
-rw-r--r--src/empathy-new-chatroom-dialog.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/empathy-new-chatroom-dialog.c b/src/empathy-new-chatroom-dialog.c
index 9a846f074..df30c2a85 100644
--- a/src/empathy-new-chatroom-dialog.c
+++ b/src/empathy-new-chatroom-dialog.c
@@ -395,13 +395,21 @@ static void
update_join_button_sensitivity (EmpathyNewChatroomDialog *dialog)
{
const gchar *room;
+ const gchar *protocol;
gboolean sensitive = FALSE;
room = gtk_entry_get_text (GTK_ENTRY (dialog->entry_room));
+ protocol = tp_account_get_protocol (dialog->account);
if (EMP_STR_EMPTY (room))
goto out;
+ if (!tp_strdiff (protocol, "irc") && (!tp_strdiff (room, "#") ||
+ !tp_strdiff (room, "&")))
+ {
+ goto out;
+ }
+
if (dialog->account == NULL)
goto out;