     (toWidget self)
     (toWidget newParent)
 
+#if GTK_CHECK_VERSION(2,18,0)
 -- | Set if this widget can receive keyboard input.
 --
 -- * To use the 'onKeyPress' event, the widget must be allowed

#endif
#endif
  widgetReparent,
  widgetGetCanFocus,
  widgetSetCanFocus,
  widgetGetState,
  widgetGetSavedState,
  widgetGetSize,

--
widgetGetCanFocus :: WidgetClass self => self -> IO Bool
widgetGetCanFocus = objectGetPropertyBool "can_focus"

-- | Retrieves the widget's allocation.
--
-- * Available since Gtk+ version 2.18
--
widgetGetAllocation :: WidgetClass self => self -> IO Allocation
widgetGetAllocation widget =
  alloca $ \ allocationPtr -> do 
     {#call widget_get_allocation#} (toWidget widget) (castPtr allocationPtr)
     peek allocationPtr
#endif

--------------------
-- Attributes
