Sun, 17 Oct 2004 23:55:49 +0000
[gaim-migrate @ 11141]
Two things:
a. Added Enter as a gtk_binding to GtkIMHtml. This fixes everything.
Input methods now work. The "Enter sends" and "Ctrl-Enter sends" preferences
were removed and defaulted to yes and no respectively, BUT, in a very super-cool
turn of events, you can now add your own bindings to .gtkrc to make WHATEVER
YOU WANT send. Awesome. Someone should use g_signal_accumulator_true_handled
or something to make profiles and away messages able to insert newlines.
b. Removed "Use multi-colored screennames in chats," defaulted to yes, and
wrote a nifty algorithm to automatically adjust the colors to accomodate the
background (see http://gaim.sf.net/sean/porn-chat.png). People should play
around and tweak it a bit. The algorithm takes into consideration the
luminosity of the current background and the base hue to use for the screenname
in generating the new colors. Note that it does this while maintaining the hues.
Someone should optimize this so it skips over the floating point arithmatic when
the background color is white.
| 6591 | 1 | #include "module.h" |
| 2 | ||
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
3 | MODULE = Gaim::ConvWindow PACKAGE = Gaim::ConvWindow PREFIX = gaim_conv_window_ |
| 6591 | 4 | PROTOTYPES: ENABLE |
| 5 | ||
| 6 | Gaim::ConvWindow | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
7 | gaim_conv_window_new() |
| 6591 | 8 | |
| 9 | void | |
| 10 | DESTROY(win) | |
| 11 | Gaim::ConvWindow win | |
| 12 | CODE: | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
13 | gaim_conv_window_destroy(win); |
| 6591 | 14 | |
| 15 | ||
| 16 | void | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
17 | gaim_conv_window_show(win) |
| 6591 | 18 | Gaim::ConvWindow win |
| 19 | ||
| 20 | void | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
21 | gaim_conv_window_hide(win) |
| 6591 | 22 | Gaim::ConvWindow win |
| 23 | ||
| 24 | void | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
25 | gaim_conv_window_raise(win) |
| 6591 | 26 | Gaim::ConvWindow win |
| 27 | ||
| 28 | void | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
29 | gaim_conv_window_flash(win) |
|
6614
12817c60464d
[gaim-migrate @ 7138]
Christian Hammond <chipx86@chipx86.com>
parents:
6591
diff
changeset
|
30 | Gaim::ConvWindow win |
| 6591 | 31 | |
| 32 | int | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
33 | gaim_conv_window_add_conversation(win, conv) |
| 6591 | 34 | Gaim::ConvWindow win |
| 35 | Gaim::Conversation conv | |
| 36 | ||
| 37 | Gaim::Conversation | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
38 | gaim_conv_window_remove_conversation(win, index) |
| 6591 | 39 | Gaim::ConvWindow win |
| 40 | unsigned int index | |
| 41 | ||
| 42 | void | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
43 | gaim_conv_window_move_conversation(win, index, new_index) |
| 6591 | 44 | Gaim::ConvWindow win |
| 45 | unsigned int index | |
| 46 | unsigned int new_index | |
| 47 | ||
| 48 | Gaim::Conversation | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
49 | gaim_conv_window_get_conversation_at(win, index) |
| 6591 | 50 | Gaim::ConvWindow win |
| 51 | unsigned int index | |
| 52 | ||
| 53 | size_t | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
54 | gaim_conv_window_get_conversation_count(win) |
| 6591 | 55 | Gaim::ConvWindow win |
| 56 | ||
| 57 | void | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
58 | gaim_conv_window_switch_conversation(win, index) |
| 6591 | 59 | Gaim::ConvWindow win |
| 60 | unsigned int index | |
| 61 | ||
| 62 | Gaim::Conversation | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
63 | gaim_conv_window_get_active_conversation(win) |
| 6591 | 64 | Gaim::ConvWindow win |
| 65 | ||
| 66 | void | |
| 67 | conversations(win) | |
| 68 | Gaim::ConvWindow win | |
| 69 | PREINIT: | |
| 70 | GList *l; | |
| 71 | CODE: | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
72 | for (l = gaim_conv_window_get_conversations(win); l != NULL; l = l->next) |
| 6591 | 73 | { |
| 74 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, | |
| 75 | "Gaim::Conversation"))); | |
| 76 | } | |
| 77 | ||
| 78 | ||
| 79 | MODULE = Gaim::ConvWindow PACKAGE = Gaim PREFIX = gaim_ | |
| 80 | PROTOTYPES: ENABLE | |
| 81 | ||
| 82 | void | |
| 83 | conv_windows() | |
| 84 | PREINIT: | |
| 85 | GList *l; | |
| 86 | CODE: | |
| 87 | for (l = gaim_get_windows(); l != NULL; l = l->next) | |
| 88 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ConvWindow"))); |