Mercurial > pidgin
changeset 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 | 1d4a05772625 |
children | a532eccfc7bb |
files | src/gtkstatusbox.c src/savedstatuses.c |
diffstat | 2 files changed, 6 insertions(+), 4 deletions(-) [+] |
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); }
--- a/src/savedstatuses.c Sat Dec 03 20:24:17 2005 +0000 +++ b/src/savedstatuses.c Sat Dec 03 20:28:52 2005 +0000 @@ -178,7 +178,7 @@ /* * Gaim 1.5.0 and earlier require a name to be set, so we * do this little hack to maintain backward compatability - * in the status.xml file. Eventually this should be used + * in the status.xml file. Eventually this should be removed * and we should determine if a status is transient by * whether the "name" attribute is set to something or if * it does not exist at all.