From: Andy S. <And...@co...> - 2010-10-22 22:13:06
|
diffing dir... Fri Oct 22 17:31:23 EDT 2010 Andy Stewart <laz...@gm...> * New GTK+2.22 functions : iconViewGetItemRow, iconViewGetItemColumn Ignore-this: 23e1d7564a2e2c96cf99108c0d818319 { hunk ./gtk/Graphics/UI/Gtk/ModelView/IconView.chs 111 +#if GTK_CHECK_VERSION(2,22,0) + iconViewGetItemRow, + iconViewGetItemColumn, +#endif hunk ./gtk/Graphics/UI/Gtk/ModelView/IconView.chs 832 +#if GTK_CHECK_VERSION(2,22,0) +-- | Gets the row in which the item path is currently displayed. Row numbers start at 0. +-- +-- * Available since Gtk+ version 2.22 +-- +iconViewGetItemRow :: IconViewClass self => self + -> TreePath -- ^ @path@ the 'TreePath' of the item [_$_] + -> IO Int -- ^ returns The row in which the item is displayed [_$_] +iconViewGetItemRow self path = + liftM fromIntegral $ + withTreePath path $ \path -> + {# call gtk_icon_view_get_item_row #} + (toIconView self) + path + +-- | Gets the column in which the item path is currently displayed. Column numbers start at 0. +-- +-- * Available since Gtk+ version 2.22 +-- +iconViewGetItemColumn :: IconViewClass self => self + -> TreePath -- ^ @path@ the 'TreePath' of the item [_$_] + -> IO Int -- ^ returns The column in which the item is displayed [_$_] +iconViewGetItemColumn self path = + liftM fromIntegral $ + withTreePath path $ \path -> + {# call gtk_icon_view_get_item_column #} + (toIconView self) + path + +#endif + } |