Posts tagged with "gdict"
GtkClipboard??
Sunday, February 26, 2006 6:47:48 AM
今天在看gtk文档的时候突然想起,了gtkclipboard,看了看介绍,原来它也可以当前选择的数据:
刚才试了一下可以,如果是这样的话实现起来会比stardict的方法要简单一点,可是现在的问题是如何得到当前的选择然后引发一个事件,也就不用timaout了,这样控制方面也就更简单了,正在实验中……
The default clipboard corresponds to the "CLIPBOARD" atom; another commonly used clipboard is the "PRIMARY" clipboard, which, in X, traditionally contains the currently selected text.
刚才试了一下可以,如果是这样的话实现起来会比stardict的方法要简单一点,可是现在的问题是如何得到当前的选择然后引发一个事件,也就不用timaout了,这样控制方面也就更简单了,正在实验中……
自动弹出winddow实验成功!
Friday, February 24, 2006 6:11:45 AM
原本以为得到屏幕选词的功能要调用x的剪切板呢,今天看了看stardict的代码原来用的是GtkInvisible控件配合gtk_selection_convert,后来写了个实验代码,现在选词自动弹出窗口应该是问题不大了。弹出窗口位置是用简单的gdk_display_get_pointer得到的x,y的坐标,然后用leave_notify_event事件得到鼠标移动状态,彻消弹出窗口!
学习真的是件快乐的事,要是没什么问题的话估计这两天就能写完了!
学习真的是件快乐的事,要是没什么问题的话估计这两天就能写完了!
gdict-0.0.1写完了……
Friends (6)
Latest comments
-

anonymous
Анонімний writes: All people deserve good life time and loa ...
-

anonymous
Анонімний writes: I received my first business loans when I ...
-

anonymous
Анонімний writes: I received my first credit loans when I w ...
-

anonymous
Анонімний writes: One admits that our life seems to be expe ...
-

anonymous
Анонимно writes: Set your life time more easy get the perso ...
-

anonymous
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
| ||||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | |||
Tags
My works
- 常用正则表达式
- 在线查词(use python)
- urxvt 使用技巧
-
最棒的Vim 技巧翻译
原文在这里:http://www.rayninfo.co.uk/vimtips.html






