Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 677c1b5134368504c2e447757584d19e > files > 1030

ghc-gtk-devel-0.11.2-5.fc14.i686.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->
<title>Graphics/UI/Gtk/General/Threading.hs</title>
<link type='text/css' rel='stylesheet' href='hscolour.css' />
</head>
<body>
<pre><a name="line-1"></a><span class='hs-comment'>-- -*-haskell-*-</span>
<a name="line-2"></a><span class='hs-comment'>--  GIMP Toolkit (GTK) General</span>
<a name="line-3"></a><span class='hs-comment'>--</span>
<a name="line-4"></a><span class='hs-comment'>--  Author : Axel Simon</span>
<a name="line-5"></a><span class='hs-comment'>--</span>
<a name="line-6"></a><span class='hs-comment'>--  Created: 9 May 2009</span>
<a name="line-7"></a><span class='hs-comment'>--</span>
<a name="line-8"></a><span class='hs-comment'>--  Copyright (C) 2009 Axel Simon</span>
<a name="line-9"></a><span class='hs-comment'>--</span>
<a name="line-10"></a><span class='hs-comment'>--  This library is free software; you can redistribute it and/or</span>
<a name="line-11"></a><span class='hs-comment'>--  modify it under the terms of the GNU Lesser General Public</span>
<a name="line-12"></a><span class='hs-comment'>--  License as published by the Free Software Foundation; either</span>
<a name="line-13"></a><span class='hs-comment'>--  version 2.1 of the License, or (at your option) any later version.</span>
<a name="line-14"></a><span class='hs-comment'>--</span>
<a name="line-15"></a><span class='hs-comment'>--  This library is distributed in the hope that it will be useful,</span>
<a name="line-16"></a><span class='hs-comment'>--  but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="line-17"></a><span class='hs-comment'>--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="line-18"></a><span class='hs-comment'>--  Lesser General Public License for more details.</span>
<a name="line-19"></a><span class='hs-comment'>--</span>
<a name="line-20"></a><span class='hs-comment'>-- |</span>
<a name="line-21"></a><span class='hs-comment'>-- Maintainer  : gtk2hs-users@lists.sourceforge.net</span>
<a name="line-22"></a><span class='hs-comment'>-- Stability   : provisional</span>
<a name="line-23"></a><span class='hs-comment'>-- Portability : portable (depends on GHC)</span>
<a name="line-24"></a><span class='hs-comment'>--</span>
<a name="line-25"></a><span class='hs-comment'>-- Support for the threaded RTS of ghc.</span>
<a name="line-26"></a><span class='hs-comment'>--</span>
<a name="line-27"></a><span class='hs-comment'>-- This file contains functions that are needed by other library wrappers that build</span>
<a name="line-28"></a><span class='hs-comment'>-- on Gtk2Hs. An application should not need this function nor include this file.</span>
<a name="line-29"></a><span class='hs-comment'>--</span>
<a name="line-30"></a><span class='hs-keyword'>module</span> <span class='hs-conid'>Graphics</span><span class='hs-varop'>.</span><span class='hs-conid'>UI</span><span class='hs-varop'>.</span><span class='hs-conid'>Gtk</span><span class='hs-varop'>.</span><span class='hs-conid'>General</span><span class='hs-varop'>.</span><span class='hs-conid'>Threading</span> <span class='hs-layout'>(</span>
<a name="line-31"></a>  <span class='hs-varid'>objectUnrefFromMainloop</span>
<a name="line-32"></a>  <span class='hs-layout'>)</span> <span class='hs-keyword'>where</span>
<a name="line-33"></a>
<a name="line-34"></a><span class='hs-keyword'>import</span> <span class='hs-conid'>System</span><span class='hs-varop'>.</span><span class='hs-conid'>Glib</span><span class='hs-varop'>.</span><span class='hs-conid'>FFI</span>
<a name="line-35"></a>
<a name="line-36"></a><span class='hs-keyword'>foreign</span> <span class='hs-keyword'>import</span> <span class='hs-keyword'>ccall</span> <span class='hs-keyword'>unsafe</span> <span class='hs-str'>"hsgthread.h &amp;gtk2hs_g_object_unref_from_mainloop"</span>
<a name="line-37"></a>  <span class='hs-varid'>objectUnrefFromMainloop</span> <span class='hs-keyglyph'>::</span> <span class='hs-conid'>FinalizerPtr</span> <span class='hs-varid'>a</span>
</pre></body>
</html>