When comparing the results of gtkdialog compiled for GTK3 with those of the GTK2 version (now often referred to as gtk2dialog) I sense that gtkdialog for GTK3 creates a lot of problems.
The latest discovery is that GTK stock icons can not be displayed anymore in tree widgets.
@JakeSFR once published Icon Finder, a utility that also contained a small script that would display all GTK stock icons together with their names. Very basically it looked like this:
Code: Select all
echo '<window title="GTK stock icons" icon-name="gtk-yes">
<tree>
<label>Stock ID</label>
<item stock="gtk-dialog-info">gtk-dialog-info</item>
<item stock="gtk-dialog-warning">gtk-dialog-warning</item>
<item stock="gtk-dialog-error">gtk-dialog-error</item>
</tree>
</window>' | gtkdialog -sc
My own implementation uses different syntax but the result is the same:
Code: Select all
ICONS='dialog-info dialog-warning dialog-error'
export ICONS=$(echo "$ICONS" | sed -r 's/ *([^ ]+)/gtk-\1|gtk-\1\n/g')
echo '<window title="GTK Stock Icons" icon-name="gtk-about" window-position="1">
<tree>
<label>Stock ID</label>
<input stock-column="0">echo "$ICONS"</input>
</tree>
</window>' | gtkdialog -sc
Both scripts *should* display a window like this:
This only works with the "classic" GTK2 version of gtkdialog. With GTK3 the icons are not displayed. However GTK icons are not dead. The titlebar shows that in principle they still can be used, but not in trees. Any solution?