Mercurial > pidgin
comparison console/libgnt/test/keys.c @ 14310:a766441af5ea
[gaim-migrate @ 17000]
Add support for mouse. Currently you can:
- click on the taskbar to bring a window on top
- click on the topmost line of the *active* window and drag+drop to move the window.
This is disabled by default. You can enable it by setting "mouse = 1" in ~/.gntrc.
If you enable mouse support, then do shift+click to get the usual behaviours
(eg. shift+middleclick to paste etc.)
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 23 Aug 2006 12:29:08 +0000 |
parents | 5300e2f1fed3 |
children |
comparison
equal
deleted
inserted
replaced
14309:578a2c9af05e | 14310:a766441af5ea |
---|---|
8 { | 8 { |
9 char *s = g_strdup_printf("%s ", text); | 9 char *s = g_strdup_printf("%s ", text); |
10 gnt_entry_set_text(entry, s); | 10 gnt_entry_set_text(entry, s); |
11 g_free(s); | 11 g_free(s); |
12 if (text[0] == 27) | 12 if (text[0] == 27) |
13 return FALSE; | 13 { |
14 if (strncmp(text + 1, "[M ", 3) == 0) | |
15 { | |
16 int x = (unsigned)text[4]; | |
17 int y = (unsigned)text[5]; | |
18 if (x < 0) x += 256; | |
19 if (y < 0) y += 256; | |
20 x -= 33; | |
21 y -= 33; | |
22 s = g_strdup_printf("ldown %d %d", x, y); | |
23 gnt_entry_set_text(entry, s); | |
24 g_free(s); | |
25 } | |
26 else if (strncmp(text + 1, "[M#", 3) == 0) | |
27 gnt_entry_set_text(entry, "up"); | |
28 else | |
29 return FALSE; | |
30 return TRUE; | |
31 } | |
14 else | 32 else |
15 return TRUE; | 33 return TRUE; |
16 } | 34 } |
17 | 35 |
18 int main() | 36 int main() |