Posts Tagged ‘Ubuntu’

Discussing the shortcomings of OpenERP Client themes on various platforms with Fabrice, we found out that it was in fact quite simple to switch to a different GTK theme on Windows as well. It works fine with the All-In-One installation of OpenERP, so that’s an easy way of customizing the looks of the OpenERP GTK Client.

GTK is the framework on top of which the OpenERP desktop client is built, and GTK supports themes. The runtime library also ships with a handy theme selector application, to write the appropriate magic in the .gtkrc-2.0 file in your home directory. So with the All-In-One you can just go into wherever you installed OpenERP, then down into “OpenERP AllInOne\Client\GTK\bin\” and start gtkthemeselector.exe.

Of course on Ubuntu you can easily change your GTK theme through System/Preferences/Appearance.

With the GTK runtime on Windows you get only a few themes. The default one is Wimp and is usually labelled “MS-Windows”. What Wimp does is reuse the default Windows look, for maximum coherence. This means that you will get different results on XP, Vista, Seven, as well as if you change to the Windows Classic theme (the latter specifically gives an ugly result with Wimp).

Adding themes on Windows is easy as well, you only need to:

  • find a suitable GTK theme online, and download the Windows build (the engine needs to be built as a Windows DLL)
  • add the theme definition in the GTK\share\themes directory (inside OpenERP Client), next to the existing ones
  • put the engine (named libsomething.dll) in GTK\lib\gtk-2.0\2.10.0\engines, next to the others
  • start the theme selector to switch to the chosen theme
  • restart your GTK application, in this case your OpenERP client

You can find a lot of GTK themes for Windows in the Windows GTK theme selector that goes with the GTK Windows Runtime. Grab the zip version as you just want the source of the themes. You’ll find them in the lib and share subdirectories after unzipping.

However, I think Wimp is not a bad theme, and after all if you’re using a specific Windows theme, it may be that you like it. It’s just that it has some shortcomings, wastes space everywhere (other themes too), and does not have alternating row colors in lists.

The space-waste problem is common to many GTK themes and is addressed by Martin Ankerl‘s compact themes, improving classical GTK themes such as Clearlooks Compact and Human Compact. This is an area where users of all platforms can benefit! The compact theme reusing the original engines, they’re cross-platform but your need to install the original ones (which are included in the Windows GTK themes archive)

Both Clearlooks and Human themes do have alternating row colors, which is not the case by default in Wimp. To fix it, you can simply patch the existing Wimp definition by editing the GTK\share\themes\MS-Windows\gtk-2.0\gtkrc file in your OpenERP Client (with your favorite code editor, or Wordpad) and change the following line:

GtkTreeView::allow-rules = 1  # Changed to 1 to allow alternating row colors

Looking at other themes is a nice source of inspiration for other tweaks… and there’s always the GTK documentation.


Read Full Post »

Can’t get sound to work by default on my Jaunty box (Compaq 610 laptop), so I had to follow this interesting blog to upgrade to Alsa 1.0.21, and voila, it works!

Of course there’s always the Comprehensive Sound Problem Solutions Guide for other cases.

Read Full Post »

I recently had to install a recent Eclipse version on my Jaunty system (Ubuntu 9.04), and was wondering why the default version shipped with this release is still the aging Eclipse 3.2. The Ubuntu Eclipse help page has some explanation for this, and there’s an open request for a newer Eclipse version in Ubuntu but I still needed to install it (partly because I want to install the latest Bazaar plugin, which does not work in 3.2).

Usually the answer when a package is not updated is to use someone’s Personal Package Archive (PPA). In this case the Ubuntu Eclipse Team PPA should be the solution, except that the Eclipse 3.4 packages are currently broken there.

So instead, I followed John Paulett’s instructions to install Eclipse 3.5 on Jaunty, based on the official Eclipse packages, and that did the trick.

Read Full Post »