你今天 gcin 了嗎?gcin 同好會

網頁問題回報與建議


最新的留言
最近修改或發表的文章
notification 訊息窗

在 gcin-status-tray 停留久一點後,會有訊息顯示滑鼠按鍵功能。

請問能不能新增一個 send_gcin_message(),讓 filter 呼叫 gcin tray 顯示 圖案/文字 呢?

例如:
send_gcin_message(GDK_DISPLAY(), SHOW_TRAY_MESSAGE, antimars.png);

這樣就可以讓 filter 呼叫 gcin 顯示「注音文退散標章」XD

By guest at 06-10-04 11:20

是只有詞音需要這個 icon 嗎?

By gcin at 06-10-04 12:59

>  在 gcin-status-tray 停留久一點後,會有訊息顯示滑鼠按鍵功能。

意思是只有這個時候才顯示嗎?

By gcin at 06-10-04 13:01

不是,是希望可以像 gcin-gb-toggle 那樣送訊給 gcin,由外部指定顯示圖案的時機...

~$ gcin-send-message antimars.png
讓 gcin status tray 顯示 antimars.png (最好能顯示大圖,例如 200x200 pixel,不要只顯示小 icon)

~$ gcin-send-message antimars.png 5
讓 gcin status tray 顯示 antimars.png,持續 5 秒鐘後關閉圖案

~$ gcin-send-message -t "偵測到注音文!"
讓 gcin status tray 顯示文字訊息

By guest at 06-10-04 13:10

http://pcmanx.csie.net/release/?C=M;O=D

pcmanx-gtk2 有修改自 gaim plugin 的訊息窗。
有事件發生就會從螢幕角落飄一個小窗出來,停個幾秒又飄出去不見。

By guest at 06-10-04 17:42

所以是另外開一個小 window 來 display icon,因為蓋掉原來輸入法的 icon 似乎也不太合理。
這個icon 應該是只有警告的時候才會顯示吧。
 

By gcin at 06-10-04 18:32

嗯,只有需要的時候才顯示,並且要能自動關閉,又不會影響到輸入法的 focus…

純文字的 popup 有 xmessage、gxmessage、zenity 等外部工具可以利用,不過都沒辦法很完美地整合…

圖形方面的 popup 好像沒有什麼好用的外部工具?只能 1.呼叫秀圖程式 ; 2.sleep ; 3. kill 秀圖程式…orz

其實終極目標是要完成 gcin 的「入力娘」…XD

openvanilla 的入力娘 screenshot:
http://www.flickr.com/photos/zonble/232302738/

By guest at 06-10-04 22:21

 新增一個可執行檔 gcin-message,可以通知 gcin 顯示 message, 語法為
    gcin-message -icon file_name -text string -duration milli_seconds
  其中 file_name 必須為 full_path name, 告訴 gcin 要顯示的 image file。 「-text」 是要顯示的 UTF-8字串(不得有空白)。 「-duration」 是顯示多久才關掉,單位是 0.001 秒。

By gcin at 06-10-07 20:17