Tetralet 寫:在『即時訊息』的介面上,
我比較喜歡 Kopete 的 Enclosed 這種風格。
Gaim 預設的風格也不是說不好啦,
但是如果遇到斷行時看起來會很奇怪...
我也是比較喜歡會換行的風格...
不過 gaim 就只有那一種
小小改了一下, dirty hack
- 代碼: 選擇全部
diff -uNrp gaim-0.79.org/src/conversation.c gaim-0.79/src/conversation.c
--- gaim-0.79.orig/src/conversation.c 2004-06-29 19:20:38.000000000 +0800
+++ gaim-0.79/src/conversation.c 2004-06-29 19:41:51.000000000 +0800
@@ -1384,6 +1384,7 @@ gaim_conversation_write(GaimConversation
GaimConvWindow *win;
GaimBuddy *b;
GaimUnseenState unseen;
+ char tmp[BUF_LONG];
/* int logging_font_options = 0; */
g_return_if_fail(conv != NULL);
@@ -1448,7 +1449,12 @@ gaim_conversation_write(GaimConversation
if (gaim_conversation_is_logging(conv))
gaim_log_write(conv->log, flags, who, mtime, message);
- ops->write_conv(conv, who, message, flags, mtime);
+ if (!(flags & GAIM_MESSAGE_SYSTEM)) {
+ g_snprintf(tmp, sizeof(tmp),"\n %s",message);
+ ops->write_conv(conv, who, tmp, flags, mtime);
+ } else {
+ ops->write_conv(conv, who, message, flags, mtime);
+ }
win = gaim_conversation_get_window(conv);