diffing dir...
Fri Oct 22 17:58:37 EDT 2010 Andy Stewart <laz...@gm...>
* New GTK+2.22 functions : textViewImContextFilterKeypress, textViewResetImContext
Ignore-this: 5c78fbb4acf13c3ff3c9cdb53cbf19c1
{
hunk ./gtk/Graphics/UI/Gtk/Multiline/TextView.chs 149
+ textViewImContextFilterKeypress,
+ textViewResetImContext,
hunk ./gtk/Graphics/UI/Gtk/Multiline/TextView.chs 198
+import Graphics.UI.Gtk.Gdk.EventM (EventM, EKey)
+import Control.Monad.Reader ( ask )
+import Control.Monad.Trans ( liftIO )
hunk ./gtk/Graphics/UI/Gtk/Multiline/TextView.chs 1045
+
+-- | Allow the 'TextView' input method to internally handle key press and release events. If this
+-- function returns 'True', then no further processing should be done for this key event. See
+-- 'imContextFilterKeypress'.
+-- [_$_]
+-- Note that you are expected to call this function from your handler when overriding key event
+-- handling. This is needed in the case when you need to insert your own key handling between the input
+-- method and the default key event handling of the 'TextView'.
+--
+-- * Available since Gtk+ version 2.22
+--
+textViewImContextFilterKeypress :: TextViewClass self => self -> EventM EKey Bool
+textViewImContextFilterKeypress self = do
+ ptr <- ask
+ liftIO $ liftM toBool $
+ {# call gtk_text_view_im_context_filter_keypress #}
+ (toTextView self)
+ (castPtr ptr)
+
+-- | Reset the input method context of the text view if needed.
+-- [_$_]
+-- This can be necessary in the case where modifying the buffer would confuse on-going input method
+-- behavior.
+--
+-- * Available since Gtk+ version 2.22
+--
+textViewResetImContext :: TextViewClass self => self -> IO ()
+textViewResetImContext self =
+ {#call gtk_text_view_reset_im_context #} (toTextView self)
+
+
}
|