Ticket #1239 (closed defect: fixed)
build errors with gtk 2.14
|Reported by:||guest||Owned by:||somebody|
|Component:||general (Gtk+, Glib)||Version:|
When building gtk-0.12.1 on an old fedora install with gtk2.14, there are a few 'not in scope' errors due to compile flags that can be fixed easily. Mainly the problem seems to be, that some declarations are included only when gtk version is 2.16, but then some other declarations requiring them are not surrounded with similar #if statements. By adding a few #if statements, I could compile successfully.
First, Graphics/UI/Gtk/Entry/Entry.chs, around line 153: EntryIconPosition? is only defined with gtk2.16: #if GTK_CHECK_VERSION(2,16,0) import Graphics.UI.Gtk.General.Enums (DeleteType? (..), MovementStep? (..), EntryIconPosition? (..)) #else import Graphics.UI.Gtk.General.Enums (DeleteType? (..), MovementStep? (..)) #endif
Second, Graphics/UI/Gtk/Printing/PrintSettings.chs, around line 128: Some functions are defined only with gtk2.16, but the functions are used in some attrs that are not wrapped in #if statements: #if GTK_CHECK_VERSION(2,16,0)