From 6d1a939a14de918de4a79c010d82796f8035bcfa Mon Sep 17 00:00:00 2001 From: Josselin Mouette <^Css@malsain.org> Date: Thu, 18 Jun 2009 09:41:33 +0000 Subject: Bug 536916 – Pressing "Enter" in the middle of editing channel topic truncates it. --- diff --git a/src/fe-gnome/topic-label.c b/src/fe-gnome/topic-label.c index a7d1883..977d29c 100644 --- a/src/fe-gnome/topic-label.c +++ b/src/fe-gnome/topic-label.c @@ -315,6 +315,7 @@ static void topic_entry_activate (GtkTextBuffer *textbuffer, GtkTextIter *arg1, gchar *text, gint len, GtkDialog *dialog) { if (strncmp (text, "\n", len) == 0) { + g_signal_stop_emission_by_name (G_OBJECT (textbuffer), "insert-text"); gtk_dialog_response (dialog, GTK_RESPONSE_OK); } } -- cgit v0.8.2