]> git.0d.be Git - empathy.git/commitdiff
added # in join room when irc protocol selected
authorJovanka Gulicoska <jovanka.gulicoska@gmail.com>
Fri, 6 Jan 2012 13:01:22 +0000 (14:01 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 6 Jan 2012 14:28:22 +0000 (15:28 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=631236

src/empathy-new-chatroom-dialog.c

index 8176c4803dfef3c8c16695070c35e69e061f9a7e..9a846f074152c77419f81a776daf3ab2fab905bc 100644 (file)
@@ -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