| 1 |
{-# OPTIONS_HADDOCK hide #-} |
| 2 |
{-# OPTIONS_GHC -fno-warn-unused-imports #-} |
| 3 |
-- -*-haskell-*- |
| 4 |
-- -------------------- automatically generated file - do not edit ------------ |
| 5 |
-- Callback installers for the GIMP Toolkit (GTK) Binding for Haskell |
| 6 |
-- |
| 7 |
-- Author : Axel Simon |
| 8 |
-- |
| 9 |
-- Created: 1 July 2000 |
| 10 |
-- |
| 11 |
-- Copyright (C) 2000-2005 Axel Simon |
| 12 |
-- |
| 13 |
-- This library is free software; you can redistribute it and/or |
| 14 |
-- modify it under the terms of the GNU Lesser General Public |
| 15 |
-- License as published by the Free Software Foundation; either |
| 16 |
-- version 2.1 of the License, or (at your option) any later version. |
| 17 |
-- |
| 18 |
-- This library is distributed in the hope that it will be useful, |
| 19 |
-- but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 |
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 21 |
-- Lesser General Public License for more details. |
| 22 |
-- |
| 23 |
-- #hide |
| 24 |
|
| 25 |
-- These functions are used to connect signals to widgets. They are auto- |
| 26 |
-- matically created through HookGenerator.hs which takes a list of possible |
| 27 |
-- function signatures that are included in the GTK sources (gtkmarshal.list). |
| 28 |
-- |
| 29 |
-- The object system in the second version of GTK is based on GObject from |
| 30 |
-- GLIB. This base class is rather primitive in that it only implements |
| 31 |
-- ref and unref methods (and others that are not interesting to us). If |
| 32 |
-- the marshall list mentions OBJECT it refers to an instance of this |
| 33 |
-- GObject which is automatically wrapped with a ref and unref call. |
| 34 |
-- Structures which are not derived from GObject have to be passed as |
| 35 |
-- BOXED which gives the signal connect function a possibility to do the |
| 36 |
-- conversion into a proper ForeignPtr type. In special cases the signal |
| 37 |
-- connect function use a PTR type which will then be mangled in the |
| 38 |
-- user function directly. The latter is needed if a signal delivers a |
| 39 |
-- pointer to a string and its length in a separate integer. |
| 40 |
-- |
| 41 |
module @MODULE_NAME@ ( |
| 42 |
module System.Glib.Signals, |
| 43 |
|
| 44 |
@MODULE_EXPORTS@ |
| 45 |
) where |
| 46 |
|
| 47 |
import Control.Monad (liftM) |
| 48 |
|
| 49 |
import System.Glib.FFI |
| 50 |
import System.Glib.UTFString (peekUTFString,maybePeekUTFString,newUTFString) |
| 51 |
import qualified System.Glib.UTFString as Glib |
| 52 |
import System.Glib.GError (failOnGError) |
| 53 |
{#import System.Glib.Signals#} |
| 54 |
{#import System.Glib.GObject#} |
| 55 |
@MODULE_IMPORTS@ |
| 56 |
|
| 57 |
{#context lib="gtk" prefix="gtk" #} |
| 58 |
|
| 59 |
|
| 60 |
-- Here are the generators that turn a Haskell function into |
| 61 |
-- a C function pointer. The fist Argument is always the widget, |
| 62 |
-- the last one is the user g_pointer. Both are ignored. |
| 63 |
|
| 64 |
@MODULE_BODY@ |