Mercurial > pidgin
annotate plugins/perl/common/Stringref.xs @ 12711:145f76e74a9f
[gaim-migrate @ 15055]
Fix SF Bug #1384698 - "Last word in text auto replace not changed"
This uses astro96's idea:
'when the user types something like "Hi how r u" they will see this
(where the "^" is the cursor):
"Hi how are u^"
When they hit enter to send the message, instead of sending
the message, the last word would be replaced:
[Enter]
"Hi how are you^"
and then if they hit enter again it would send the message.'
I code a preference for this, but have #if 0'ed it before committing. I don't think we need a preference to disable this. If it turns out I'm wrong, the code is right there to use.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 04 Jan 2006 03:01:32 +0000 |
parents | 6fd82071a7b8 |
children | 96f9b4798012 |
rev | line source |
---|---|
11118 | 1 #include "module.h" |
2 | |
3 MODULE = Gaim::Stringref PACKAGE = Gaim::Stringref PREFIX = gaim_stringref_ | |
4 PROTOTYPES: ENABLE | |
5 | |
6 int | |
7 gaim_stringref_cmp(s1, s2) | |
8 Gaim::Stringref s1 | |
9 Gaim::Stringref s2 | |
10 | |
11 size_t | |
12 gaim_stringref_len(stringref) | |
13 Gaim::Stringref stringref | |
14 | |
15 Gaim::Stringref | |
12364 | 16 gaim_stringref_new(class, value) |
11118 | 17 const char *value |
12364 | 18 C_ARGS: |
19 value | |
11118 | 20 |
21 Gaim::Stringref | |
12364 | 22 gaim_stringref_new_noref(class, value) |
11118 | 23 const char *value |
12364 | 24 C_ARGS: |
25 value | |
11118 | 26 |
27 | |
28 | |
29 Gaim::Stringref | |
30 gaim_stringref_ref(stringref) | |
31 Gaim::Stringref stringref | |
32 | |
33 void | |
34 gaim_stringref_unref(stringref) | |
35 Gaim::Stringref stringref | |
36 | |
37 const char * | |
38 gaim_stringref_value(stringref) | |
39 Gaim::Stringref stringref | |
40 |