Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > f37f2c0b149d5391818dc5157943cda0 > files > 528

gnome-chemistry-utils-devel-0.10.8-3mdv2010.0.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>The Gnome Chemistry Utils: testgtkperiodic.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_a5207d54ba149829d5dbe5e6d0e40700.html">tests</a>
  </div>
</div>
<div class="contents">
<h1>testgtkperiodic.c File Reference</h1><code>#include &lt;<a class="el" href="gtkperiodic_8h_source.html">gcu/gtkperiodic.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="chemistry_8h_source.html">gcu/chemistry.h</a>&gt;</code><br/>
<code>#include &lt;glib.h&gt;</code><br/>
<code>#include &lt;gtk/gtk.h&gt;</code><br/>
<code>#include &lt;stdio.h&gt;</code><br/>

<p><a href="testgtkperiodic_8c_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="testgtkperiodic_8c.html#ac3c68dba24d260f1c3762509f4be6236">on_changed</a> (<a class="el" href="structGtkPeriodic.html">GtkPeriodic</a> *periodic, guint Z, gpointer data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="testgtkperiodic_8c.html#a2e29078eab76ce98cb675ba6f46fb610">on_color_scheme_none</a> (GtkToggleButton *btn, GtkWidget *periodic)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="testgtkperiodic_8c.html#aed17a36de6a4b02ca5be707ba9590f8a">on_color_scheme_default</a> (GtkToggleButton *btn, GtkWidget *periodic)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="testgtkperiodic_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A simple example of the use of the <a class="el" href="structGtkPeriodic.html">GtkPeriodic</a> widget. </p>

<p>Definition in file <a class="el" href="testgtkperiodic_8c_source.html">testgtkperiodic.c</a>.</p>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a0ddf1224851353fc92bfbff6f499fa97"></a><!-- doxytag: member="testgtkperiodic.c::main" ref="a0ddf1224851353fc92bfbff6f499fa97" args="(int argc, char *argv[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>argv</em>[]</td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The <em>main</em> function of the test program. It builds the window containing the <a class="el" href="structGtkPeriodic.html">GtkPeriodic</a> widget, adds some buttons and installs the appropriate signals. </p>

<p>Definition at line <a class="el" href="testgtkperiodic_8c_source.html#l00066">66</a> of file <a class="el" href="testgtkperiodic_8c_source.html">testgtkperiodic.c</a>.</p>

<p>References <a class="el" href="gtkperiodic_8h_source.html#l00059">GTK_PERIODIC</a>, <a class="el" href="gtkperiodic_8h.html#ad7441db2e4a65f760aec2d23f4411987">gtk_periodic_new()</a>, <a class="el" href="testgtkperiodic_8c_source.html#l00037">on_changed()</a>, <a class="el" href="testgtkperiodic_8c_source.html#l00056">on_color_scheme_default()</a>, and <a class="el" href="testgtkperiodic_8c_source.html#l00046">on_color_scheme_none()</a>.</p>

</div>
</div>
<a class="anchor" id="ac3c68dba24d260f1c3762509f4be6236"></a><!-- doxytag: member="testgtkperiodic.c::on_changed" ref="ac3c68dba24d260f1c3762509f4be6236" args="(GtkPeriodic *periodic, guint Z, gpointer data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void on_changed </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structGtkPeriodic.html">GtkPeriodic</a> *&nbsp;</td>
          <td class="paramname"> <em>periodic</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">guint&nbsp;</td>
          <td class="paramname"> <em>Z</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&nbsp;</td>
          <td class="paramname"> <em>data</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The function called when the selected element changes. It just prints the atomic number of the selected element to the standard output. </p>

<p>Definition at line <a class="el" href="testgtkperiodic_8c_source.html#l00037">37</a> of file <a class="el" href="testgtkperiodic_8c_source.html">testgtkperiodic.c</a>.</p>

<p>Referenced by <a class="el" href="testgtkperiodic_8c_source.html#l00066">main()</a>.</p>

</div>
</div>
<a class="anchor" id="aed17a36de6a4b02ca5be707ba9590f8a"></a><!-- doxytag: member="testgtkperiodic.c::on_color_scheme_default" ref="aed17a36de6a4b02ca5be707ba9590f8a" args="(GtkToggleButton *btn, GtkWidget *periodic)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void on_color_scheme_default </td>
          <td>(</td>
          <td class="paramtype">GtkToggleButton *&nbsp;</td>
          <td class="paramname"> <em>btn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GtkWidget *&nbsp;</td>
          <td class="paramname"> <em>periodic</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The function called when the "Default" button. It Just sets the "color-scheme" property of the GtkPeridic widget to GTK_PERIODIC_COLOR_DEFAULT if the button is active. </p>

<p>Definition at line <a class="el" href="testgtkperiodic_8c_source.html#l00056">56</a> of file <a class="el" href="testgtkperiodic_8c_source.html">testgtkperiodic.c</a>.</p>

<p>Referenced by <a class="el" href="testgtkperiodic_8c_source.html#l00066">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a2e29078eab76ce98cb675ba6f46fb610"></a><!-- doxytag: member="testgtkperiodic.c::on_color_scheme_none" ref="a2e29078eab76ce98cb675ba6f46fb610" args="(GtkToggleButton *btn, GtkWidget *periodic)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void on_color_scheme_none </td>
          <td>(</td>
          <td class="paramtype">GtkToggleButton *&nbsp;</td>
          <td class="paramname"> <em>btn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GtkWidget *&nbsp;</td>
          <td class="paramname"> <em>periodic</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The function called when the "None" button. It Just sets the "color-scheme" property of the GtkPeridic widget to GTK_PERIODIC_COLOR_NONE if the button is active. </p>

<p>Definition at line <a class="el" href="testgtkperiodic_8c_source.html#l00046">46</a> of file <a class="el" href="testgtkperiodic_8c_source.html">testgtkperiodic.c</a>.</p>

<p>Referenced by <a class="el" href="testgtkperiodic_8c_source.html#l00066">main()</a>.</p>

</div>
</div>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 6 18:33:53 2009 for The Gnome Chemistry Utils by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>