changeset 12782:57d94c725dbc

[gaim-migrate @ 15129] If someone presses enter in the status box gtkimhtml but has not changed the text, then do nothing. This gets rid of a GLib: g_source_remove: assertion `tag > 0' failed committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 09 Jan 2006 07:07:52 +0000
parents ab65ade2e93f
children 520d9abca2aa
files src/gtkstatusbox.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkstatusbox.c	Mon Jan 09 07:04:40 2006 +0000
+++ b/src/gtkstatusbox.c	Mon Jan 09 07:07:52 2006 +0000
@@ -1150,6 +1150,10 @@
 
 static void remove_typing_cb(GtkGaimStatusBox *status_box)
 {
+	if (status_box->typing == 0)
+		/* Nothing has changed, so we don't need to do anything */
+		return;
+
 	activate_currently_selected_status(status_box);
 
 	g_source_remove(status_box->typing);