Mercurial > pidgin
diff src/gtkstatusbox.c @ 12309:b3385115815c
[gaim-migrate @ 14613]
3 seconds seemed a bit too short for the typing timeout.
Let's do the beta thing tomorrow
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 03 Dec 2005 20:28:52 +0000 |
parents | d6b5373948f9 |
children | c2867c4ddcd3 |
line wrap: on
line diff
--- a/src/gtkstatusbox.c Sat Dec 03 20:24:17 2005 +0000 +++ b/src/gtkstatusbox.c Sat Dec 03 20:28:52 2005 +0000 @@ -38,6 +38,8 @@ #include "gtkstatusbox.h" #include "gtkutils.h" +#define TYPING_TIMEOUT 4000 + static void imhtml_changed_cb(GtkTextBuffer *buffer, void *data); static void remove_typing_cb(GtkGaimStatusBox *box); @@ -464,7 +466,7 @@ return FALSE; gtk_gaim_status_box_pulse_typing(box); g_source_remove(box->typing); - box->typing = g_timeout_add(3000, (GSourceFunc)remove_typing_cb, box); + box->typing = g_timeout_add(TYPING_TIMEOUT, (GSourceFunc)remove_typing_cb, box); return FALSE; } @@ -1044,7 +1046,7 @@ { gtk_widget_show_all(status_box->vbox); if (GTK_WIDGET_IS_SENSITIVE(GTK_WIDGET(status_box))) { - status_box->typing = g_timeout_add(3000, (GSourceFunc)remove_typing_cb, status_box); + status_box->typing = g_timeout_add(TYPING_TIMEOUT, (GSourceFunc)remove_typing_cb, status_box); } else { gtk_widget_hide(status_box->toolbar); gtk_widget_hide(status_box->hsep); @@ -1071,7 +1073,7 @@ gtk_gaim_status_box_pulse_typing(box); g_source_remove(box->typing); } - box->typing = g_timeout_add(3000, (GSourceFunc)remove_typing_cb, box); + box->typing = g_timeout_add(TYPING_TIMEOUT, (GSourceFunc)remove_typing_cb, box); gtk_widget_show(box->hsep); gtk_widget_show(box->toolbar); }