gtkTtk

Site: https://github.com/Geballin/gtkTtk

gtkTtk is a fork of tilegtk.

bll 2021-1-19

This is a review of gtkTtk version 0.7.

In order to build it, I had to ensure the following packages were installed:

sudo apt install libgtk2.0-dev libglib2.0-dev cmake

The cmake build script did not locate glib or gtk properly.

In addition, the package includes ttkTheme.h, which is part of the tk source, and is not installed as an include file.

I used the following cmake command line. The puts [lindex $auto_path end] is the suggestion from the readme. Obviously not the best method.

cmake -DCMAKE_CXX_FLAGS="-I /usr/include/glib-2.0 -I /usr/lib/x86_64-linux-gnu/glib-2.0/include \
    -I /usr/include/gtk-2.0/ -I <path-to-tk-source>/generic/ttk" \
    -DCMAKE_INSTALL_PREFIX=`tclsh <<< 'puts [lindex $auto_path end]'`
make -j `getconf _NPROCESSORS_ONLN`
make install

I note the following issues as of 2021-1-19:

  • The combobox drop down has no box around it.
  • Comboboxes are not styled in a gtk manner.
  • The horizontal scale's color is backwards.
  • The scale's colors do not propogate.
  • The area underneath the scale's handle is not redrawn when it is moved.
  • The progressbar has border color artifacts.
  • The spinbox has the wrong color and styling.
  • Notebook tabs are crowded horizontally.
  • Treeview has no selection color.

Some of these issues are due to the fact that ttk generally draws its own widgets rather than using native widgets.

The following picture is on XFCE using the Adwaita Dark theme.

gtkttk-ss-a