~ubuntu-branches/ubuntu/wily/haskell-gtk/wily-proposed

« back to all changes in this revision

Viewing changes to Graphics/UI/Gtk/Multiline/TextBuffer.chs

  • Committer: Package Import Robot
  • Author(s): Clint Adams
  • Date: 2012-05-05 23:57:40 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120505235740-6cmyircomearaqbq
Tags: 0.12.3-1
* New upstream version.
* Bump to Standards-Version 3.9.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1263
1263
-- | Some text was inserted.
1264
1264
--
1265
1265
bufferInsertText :: TextBufferClass self => Signal self (TextIter -> String -> IO ())
1266
 
bufferInsertText = Signal (connect_BOXED_STRING__NONE "insert-text" mkTextIterCopy)
 
1266
bufferInsertText = Signal $ \after obj handler ->
 
1267
  connect_BOXED_PTR_INT__NONE "insert-text" mkTextIterCopy after obj
 
1268
  (\iter strPtr strLen -> peekUTFStringLen (strPtr, strLen) >>= handler iter)
1267
1269
 
1268
1270
-- | A 'TextMark' within the buffer was deleted.
1269
1271
--