id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
1239,build errors with gtk 2.14,guest,somebody,"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)
  printSettingsScale,
  printSettingsPrintPages,
#endif
... and around line 1000:
#if GTK_CHECK_VERSION(2,16,0)
-- | The value of 'PrintSettingsScale'.
printSettingsScale :: PrintSettingsClass self => Attr self Double
printSettingsScale = newAttr
  printSettingsGetScale
  printSettingsSetScale

-- | The value of 'PrintSettingsPrintPages'.
printSettingsPrintPages :: PrintSettingsClass self => Attr self PrintPages
printSettingsPrintPages = newAttr
  printSettingsGetPrintPages
  printSettingsSetPrintPages
#endif",defect,closed,normal,0.12.0,"general (Gtk+, Glib)",,fixed,,matti.j.eskelinen@…
