cht電腦資訊編輯器
adm Find login register

[Patch] Leafpad GTK+ 3.x support

caleb
joined: 2007-09-22
posted: 630
promoted: 134
bookmarked: 90
1subject: [Patch] Leafpad GTK+ 3.x supportPromote 1 Bookmark 02011-09-09quote  

For those who do not want to apply patch, or do not need GTK+ 2.x,

I have released Lɜafpad, an GTK+ 3.x port of Leafpad.

I will not update the patch below anymore. Please report bug or wishlist for Lɜafpad.

patch: leafpad-0.8.18.1_gtk3_20110901.diff

ChangeLog:

20110901: Support i18n. Note that you have to update po / mo files due to changes of strings.
20110823: Define GTK_DISABLE_DEPRECATED and use GTK_FONT_CHOOSER_DIALOG
20110423: Fix gtk_widget_set_sensitive bug caused by a stupid typo.

The patch works fine with both gtk3 and latest gtk2.

I tried to keep the file minimal, so it will not build on very old gtk2.

The patched Leafpad is very stable, and I have used it daily for about 6 months.

I have mailed the patch to upstream author of Leafpad(tarot AT sdf DOT lonestar DOT org).

Known bugs:

1. line Numbers is broken in gtk3 <= 3.0.9. It works fine in gtk3 >=3.0.10.

2. The 20110823 and 20110901 patch can not print. The severe bug was fixed in Lɜafpad 0.8.18.1.2.

3. Encoding and newline selection is broken. The severe bug was fixed in Lɜafpad 0.8.18.1.3.

edited: 21
winlin

joined: 2007-09-25
posted: 1859
promoted: 111
bookmarked: 33
2subject: Promote 0 Bookmark 02011-09-10quote  

caleb兄:

小弟試用了l3afpad,
發現它和目前另一個debian上的gtk3程式(gcalctool-6.0.2)一樣,
只要用滑鼠去點文字編輯區域之後,
滑鼠就無法再點選單列(File Edit Search Option Help)了 。

我試過把gcin移除再試,結果一樣,所以應該和gcin無關。
不知道您或其他人那裡使用gtk3的程式有沒有這樣的情形? 
感謝~ 

-------------------------------------------------------------------
好用的gcin連結:

caleb
joined: 2007-09-22
posted: 630
promoted: 134
bookmarked: 90
3subject: Promote 0 Bookmark 02011-09-10quote  

winlin
發現它和目前另一個debian上的gtk3程式(gcalctool-6.0.2)一樣,
只要用滑鼠去點文字編輯區域之後,
滑鼠就無法再點選單列(File Edit Search Option Help)了 。

(Simple translation: winlin reported that he can not click menu bar after he have clicked text editing area.)

I have not encountered similiar problem.

However, I guess it is an WM-specific issue, like the resize grip problem. [1]

[1] http://lists.freedesktop.org/archives/xorg/2011-March/052632.html

winlin

joined: 2007-09-25
posted: 1859
promoted: 111
bookmarked: 33
4subject: Promote 0 Bookmark 02011-09-10quote  

caleb

(Simple translation: winlin reported that he can not click menu bar after he have clicked text editing area.)

I have not encountered similiar problem.

However, I guess it is an WM-specific issue, like the resize grip problem. [1]

[1] http://lists.freedesktop.org/archives/xorg/2011-March/052632.html

感謝caleb兄回覆,不過小弟英文不好,所以還是繼續寫中文。
原先我是用icewm,我剛剛試了compiz、fluxbox、jwm、lwm,都有一樣的問題。
我原本也想試evilwm,結果無法執行成功....:(
不知道大家是否知道哪些wm是可以免除這個問題的?
感謝~

-------------------------------------------------------------------
好用的gcin連結:

caleb
joined: 2007-09-22
posted: 630
promoted: 134
bookmarked: 90
5subject: Promote 0 Bookmark 02011-09-11quote  

winlin
原先我是用icewm,我剛剛試了compiz、fluxbox、jwm、lwm,都有一樣的問題。
我原本也想試evilwm,結果無法執行成功....:(

(Simple translation: winlin said that the problem he reported could be reproduced on compiz, fluxbox, jwm, and lwm.)

Mmmm, so it is unlikely to be WM related.

What is your distribution? Debian testing or unstable? I can try it on an VM (after the Mid-Autumn Festival).

winlin

joined: 2007-09-25
posted: 1859
promoted: 111
bookmarked: 33
6subject: Promote 0 Bookmark 02011-09-12quote  

caleb

(Simple translation: winlin said that the problem he reported could be reproduced on compiz, fluxbox, jwm, and lwm.)

Mmmm, so it is unlikely to be WM related.

What is your distribution? Debian testing or unstable? I can try it on an VM (after the Mid-Autumn Festival).

caleb兄:Debian testing.感謝~辛苦了~ 

-------------------------------------------------------------------
好用的gcin連結:

winlin

joined: 2007-09-25
posted: 1859
promoted: 111
bookmarked: 33
7subject: Promote 0 Bookmark 02011-09-14quote  

caleb兄好:

發現小弟上次所提的問題和下列指令有關:

xmodmap -e "pointer = 3 2 1 4 5"

執行上述指令後,會出現小弟說的狀況,不知道caleb兄能否重複?

網路有人提出類似的問題:

https://bugzilla.redhat.com/show_bug.cgi?id=727673

-------------------------------------------------------------------
好用的gcin連結:

caleb
joined: 2007-09-22
posted: 630
promoted: 134
bookmarked: 90
8subject: Promote 0 Bookmark 02011-09-16quote  

winlin
發現小弟上次所提的問題和下列指令有關:

xmodmap -e "pointer = 3 2 1 4 5"

執行上述指令後,會出現小弟說的狀況,不知道caleb兄能否重複?

網路有人提出類似的問題:

https://bugzilla.redhat.com/show_bug.cgi?id=727673

(Simple translation:  the problem winlin reported is only related with xmodmap -e "pointer", see the bugzilla link.)

I can reproduce the bug with xmodmap -e "pointer = 3 2 1 4 5".

It can not be fixed with both Xinput1 and Xinput2 (GTK+ 3.0 uses Xinput2 by default.).

The only one workaround I found is "right"-click at menu bar and then "left"-click to use menus.

(For a common right-handed mouse with "pointer = 3 2 1 4 5", it will be "left"-click at menu bar and then "right"-click to use menus)

winlin

joined: 2007-09-25
posted: 1859
promoted: 111
bookmarked: 33
9subject: Promote 0 Bookmark 02011-10-03quote  

caleb兄好:
使用l3afpad(gtk3 build)遇到一個問題,不確定適不適合貼在這裡,
如果覺得不妥,請告知小弟,小弟會另開討論串。

目前l3afpad遇到的問題和medit一樣,按Enter無法送出gtab緩衝區(詞音的緩衝區也一樣),
不知道這個問題是否有解?感謝~
(註:其實在leafpad(gtk2 build)也遇到相同問題)

-------------------------------------------------------------------
好用的gcin連結:

caleb
joined: 2007-09-22
posted: 630
promoted: 134
bookmarked: 90
10subject: Promote 0 Bookmark 02011-10-03quote  

winlin

caleb兄好:
使用l3afpad(gtk3 build)遇到一個問題,不確定適不適合貼在這裡,
如果覺得不妥,請告知小弟,小弟會另開討論串。

目前l3afpad遇到的問題和medit一樣,按Enter無法送出gtab緩衝區(詞音的緩衝區也一樣),
不知道這個問題是否有解?感謝~
(註:其實在leafpad(gtk2 build)也遇到相同問題)

(Simple translation: Both Lɜafpad and leafpad Users can not press "enter" to commit phrases in gcin buffer.)

I have listed it in my TODO list, thank you. :-)

cht電腦資訊編輯器
adm Find login register
views:30514