[gaim-migrate @ 15129]

Mon, 09 Jan 2006 07:07:52 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Mon, 09 Jan 2006 07:07:52 +0000
changeset 12782
b6f0819de992
parent 12781
2fda73c527c8
child 12783
b88a822b278b

[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

src/gtkstatusbox.c file | annotate | diff | comparison | revisions
--- 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);

mercurial