the corner office : tech blog

a tech blog, by Colin Pretorius

Can't Gtk+ do typeahead?

Back when I was fiddling with Eclipse RCP development one of the things which frustrated me about SWT in Gtk+ was autocomplete behaviour of drop-down lists. Type-ahead doesn't work, so while you can use the arrow keys to move through the list, and hit space or alt-down to see the choices, you can't hit keys and have the right entry show up. It works fine in Windows, so I'd presumed it had something to do with Gtk+.

I think I was right, since I've run into this again with wxWidgets in Gnome. I went as far as trying out some more widely used wxWidgets apps, and they all have the same problem, so I have to assume it's not just me doing something stupid. I found some wxPython code which tries to implement type-ahead on list controls but frankly, it's all just a pain in the butt. I went as far as trying out a simple combo using Gtk# in MonoDevelop, and it's the same thing.

Given my dislike of Swing, I have to grudgingly admit that I tried it in Swing, and a JComboBox does exactly what I expect.

Update: I noticed GtkEntryCompletion which seems to do the trick, but it doesn't seem to be exposed via wxWidgets.

Update2:: Links:

File under: programming : {2009.09.27 - 07:54} : Comments (0)

Lubuntu

A new Ubuntu distro based on the LXDE desktop environment. This article shows that not only does Lubuntu use a fraction of what Ubuntu uses, but it looks like Xubuntu, based on Xfce, is more of a memory hog than Ubuntu.

File under: linux : {2009.09.13 - 17:55} : Comments (0)

Links 2009.09.09

Cliff Click Jr: Java vs C performance... again... (via)

File under: java : {2009.09.09 - 06:35} : Comments (0)

Dijkstra's manuscripts

An erratic trail lead me to an archive of the late Edsger Dijkstra's writings, and copies of his manuscripts, which make interesting reading.

Remarkable is how many of his manuscripts, especially later years, are hand-written. In our touch-typing world, how easy is it to turn out text so neatly, and succinctly, and with what often looks like no correction?

File under: programming : {2009.09.05 - 16:44} : Comments (0)

cpulimit

cpulimit (via) allows you to throttle specific processes and applications. Just the thing for my stupid-ass laptop which is overheating, partly because the fan needs cleaning but mainly because (as I've come to conclude), Acer laptops are crap.

File under: linux : {2009.09.05 - 15:39} : Comments (0)

Being prepared

When life's a little busy for me as it currently is, I battle to write a blog post a week. Microsoft blogger Raymond Chen averages more than a blog a day and as of Feb this year, had nearly 15 months' worth of blog posts stored up.

File under: programming : {2009.09.03 - 11:55} : Comments (0)

meta

about
main blog

Categories

eclipse
java
linux
programming

RSS Feeds

rssfeed all posts
rssfeed all comments

Archives

2013.05
2013.04
2013.03
2013.02
2013.01
2012.12
2012.11
2012.10
2012.08
2012.07
2012.06
2012.05
2012.04
2012.03
2012.02
2012.01
2011.12
2011.11
2011.10
2011.09
2011.08
2011.07
2011.06
2011.05
2011.04
2011.03
2011.02
2011.01
2010.12
2010.11
2010.10
2010.09
2010.08
2010.07
2010.06
2010.05
2010.04
2010.03
2010.02
2010.01
2009.12
2009.11
2009.10
2009.09
2009.08
2009.07
2009.06
2009.05
2009.02
2009.01
2008.12
2008.11
2008.08
2008.07
2008.06
2008.05
2008.04
2008.03
2008.02
2008.01
2007.12
2007.11
2007.10
2007.09
2007.08
2007.07

© Colin Pretorius