summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Doliner <markdoliner@pidgin.im>2006-01-09 07:07:52 +0000
committerMark Doliner <markdoliner@pidgin.im>2006-01-09 07:07:52 +0000
commit0860a4998cea422f1a938bdd2db74d7331b772ac (patch)
tree7aa7b139f3d73ecc18460c44210ec57055924ddb
parent288976302e29ca4662f4b7c15c55124cbeb0982d (diff)
downloadpidgin-0860a4998cea422f1a938bdd2db74d7331b772ac.tar.gz
[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
-rw-r--r--src/gtkstatusbox.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gtkstatusbox.c b/src/gtkstatusbox.c
index 1dfc61baf2..c06a3858ca 100644
--- a/src/gtkstatusbox.c
+++ b/src/gtkstatusbox.c
@@ -1150,6 +1150,10 @@ static void update_size(GtkGaimStatusBox *status_box)
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);