Mercurial > pidgin
comparison src/gtkstatusbox.c @ 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 | a09027e9d159 |
children | ff267281e882 |
comparison
equal
deleted
inserted
replaced
12781:ab65ade2e93f | 12782:57d94c725dbc |
---|---|
1148 gtk_widget_set_size_request(status_box->vbox, -1, height); | 1148 gtk_widget_set_size_request(status_box->vbox, -1, height); |
1149 } | 1149 } |
1150 | 1150 |
1151 static void remove_typing_cb(GtkGaimStatusBox *status_box) | 1151 static void remove_typing_cb(GtkGaimStatusBox *status_box) |
1152 { | 1152 { |
1153 if (status_box->typing == 0) | |
1154 /* Nothing has changed, so we don't need to do anything */ | |
1155 return; | |
1156 | |
1153 activate_currently_selected_status(status_box); | 1157 activate_currently_selected_status(status_box); |
1154 | 1158 |
1155 g_source_remove(status_box->typing); | 1159 g_source_remove(status_box->typing); |
1156 status_box->typing = 0; | 1160 status_box->typing = 0; |
1157 gtk_gaim_status_box_refresh(status_box); | 1161 gtk_gaim_status_box_refresh(status_box); |