<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Glib::SignalIdle class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#ffffff"> <table border="0" width="100%"> <tr> <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td> <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td> </tr> </table> <center> <a class="qindex" href="../../index.html">Main Page</a> <a href="group__Widgets.html">Widgets</a> <a class="qindex" href="namespaces.html"> Namespaces</a> <a href="../../tutorial/html/index.html"> Book</a> </center> <hr width="100%"/> <!-- Generated by Doxygen 1.3-rc1 --> <h1>Glib::SignalIdle Class Reference<br> <small> [<a class="el" href="group__MainLoop.html">The Main Event Loop</a>]</small> </h1><a href="classGlib_1_1SignalIdle-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top>SigC::Connection </td><td valign=bottom><a class="el" href="classGlib_1_1SignalIdle.html#a0">connect</a> (const SigC::Slot0<bool>& slot, int priority=PRIORITY_DEFAULT_IDLE)</td></tr> <tr><td> </td><td><font size=-1><em>Connects an idle handler.</em> <a href="#a0"></a><em></em></font><br><br></td></tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a0" doxytag="Glib::SignalIdle::connect"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> SigC::Connection Glib::SignalIdle::connect </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const SigC::Slot0<bool>& </td> <td class="mdname" nowrap> <em>slot</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>priority</em> = PRIORITY_DEFAULT_IDLE</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Connects an idle handler. <p> <div class="fragment"><pre> <a class="code" href="group__MainLoop.html#a8">Glib::signal_idle</a>().connect(SigC::slot(&idle_handler)); </pre></div>is equivalent to: <div class="fragment"><pre> <span class="keyword">const</span> <a class="code" href="classGlib_1_1RefPtr.html">Glib::RefPtr<Glib::IdleSource></a> idle_source = <a class="code" href="classGlib_1_1IdleSource.html#d0">Glib::IdleSource::create</a>(); idle_source->connect(SigC::slot(&idle_handler)); idle_source->attach(<a class="code" href="classGlib_1_1MainContext.html#d1">Glib::MainContext::get_default</a>()); </pre></div><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>slot</em> </td><td>A slot to call when the main loop is idle. </td></tr> <tr><td valign=top><em>priority</em> </td><td>The priority of the new event source. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>A connection handle, which can be used to disconnect the handler. </dd></dl> </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="glib_2glibmm_2main_8h.html">glib/glibmm/main.h</a></ul> <hr><address><small> Generated for gtkmm by <a href="http://www.doxygen.org/index.html"> Doxygen</a> 1.3-rc1 © 1997-2001</small></address> </body> </html>