From b4577db9026c19a1d1eaf3bdfe45a9e41b35698f Mon Sep 17 00:00:00 2001 From: Jovanka Gulicoska Date: Fri, 6 Jan 2012 14:01:22 +0100 Subject: added # in join room when irc protocol selected https://bugzilla.gnome.org/show_bug.cgi?id=631236 --- src/empathy-new-chatroom-dialog.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/empathy-new-chatroom-dialog.c b/src/empathy-new-chatroom-dialog.c index 8176c4803..9a846f074 100644 --- a/src/empathy-new-chatroom-dialog.c +++ b/src/empathy-new-chatroom-dialog.c @@ -441,10 +441,16 @@ new_chatroom_dialog_update_widgets (EmpathyNewChatroomDialog *dialog) gtk_widget_set_sensitive (dialog->entry_server, TRUE); } + if (!tp_strdiff (protocol, "irc")) + gtk_entry_set_text (GTK_ENTRY (dialog->entry_room), "#"); + else + gtk_entry_set_text (GTK_ENTRY (dialog->entry_room), ""); + update_join_button_sensitivity (dialog); /* Final set up of the dialog */ gtk_widget_grab_focus (dialog->entry_room); + gtk_editable_set_position (GTK_EDITABLE (dialog->entry_room), -1); } static void -- cgit v1.2.3