Dictionary Applet/8

November 29, 2005 on 1:21 pm | In Hacking, GNOME, gnome-dictionary |

I’ve finally been able to begin working on the new GNOME Dictionary widgets. While GdictEntry still has issues - related to the speed of word look up and the entry completion - and has already hit CVS, in the last two days I’ve been hacking on the definition display widget, or GdictDefbox (I’ve retained the name from the old code).

The new Defbox code is a little bit more simple - things like links are not implemented (yet, even though I found them questionable), and the output is not quite as good looking as the old one; here’s the obligatory screenshot:

gdict-defbox

the new GdictDefbox

Aside from code cleanliness and the new multiple back-end system, what differences there are with the old Defbox? First of all, this is a composite widget and not just a TextView-derived widget; this allows neat things like the next feature, that is the embedded search pane:

gdict-defbox

the embedded search pane

It should Just Work®: Ctrl+F to view it, Ctrl+G for the next match, Esc to close it. Say goodbye to silly find dialogs.

gdict-defbox

the embedded search pane at work

The new GdictDefbox also allows jumping from one definition to another, by tracking them internally.

With GdictDefbox nailed down, a simple Dictionary application and applet might already be created; I plan to improve the definition box’s output and put it on par with the current one (plus enabling theming of the colors/sizes using GtkStyle) before actually coding the new Dictionary - but keep checking out the new-dictionary branch of gnome-utils in the next week or so.

Update 20051129@13:49: the spiffy new GdictDefbox is CVS as of some minutes. Go and try it using the gnome-dictionary/libgdict/test-defbox.c test case.

[]
[]
[]

2 Comments »

RSS feed for comments on this post. TrackBack URI

  1. just as a side note: I wrote the search functions while writing this blog entry offline; I was writing that the find previous/next buttons weren’t working and decided to go for them. it took me 10 minutes worth of coding and a minute of gimp to create the new screenshot.

    gtk+ really rocks.

    Comment by zefram — Tuesday, November 29 2005 #

  2. […] I’m glad to report that Emmanuele Bassi has accepted to co-maintain Gnome-utils. For now he’s mainly hacking on the gnome-dictionary (as can be seen from his post series) but I’m sure he’ll spread his skills everywhere later on […]

    Pingback by Bloody Fingers » Blog Archive » Gnome-utils maintainership — Tuesday, December 06 2005 #

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Stop blog spam today with the abundant, fair, flagrant, and profound WP Hashcash.

Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds. Valid XHTML and CSS. ^Top^