Re: EuGTK vs GTK3
- Posted by Jerry_Story Oct 29, 2011
- 1544 views
In GtkRoutines.e I made the following changes. The changes are indicated by "JS".
if file_exists("/usr/lib/libgtk-x11-2.0") then GTK_LIB = "libgtk-x11-2.0.so" elsif file_exists("/usr/lib/libgtk-x11-2.0.so") then GTK_LIB = "libgtk-x11-2.0.so" elsif file_exists("/usr/lib/libgtk-x11-2.0.so.0") then GTK_LIB = "libgtk-x11-2.0.so.0" -- JS elsif file_exists("/usr/lib/libgtk-3.so.0") then GTK_LIB = "libgtk-3.so.0" else crash("Cannot find gtk libraries!") end if global constant GTK = open_dll(GTK_LIB) if GTK = 0 then crash(sprintf("\n*** Cannot load GTK library: %s ***\n\n",{GTK_LIB})) end if -- following can fail without causing problems; --export sequence GTK_SV = "libgtksourceview-2.0.so.0" export sequence GTK_SV = "libgtksourceview-3.0.so.0" -- JS
Now my program dmak-gtk almost works and does not produce any error messages. Maybe more testing is needed, but it seems to work except for the color bars. The color bars have no color and are not the correct size.