<refentry id="libgnomeui-gnome-mdi-session">
<refmeta>
<refentrytitle role="top_of_page" id="libgnomeui-gnome-mdi-session.top_of_page">gnome-mdi-session</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBGNOMEUI Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>gnome-mdi-session</refname>
<refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv id="libgnomeui-gnome-mdi-session.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>

#include &lt;libgnomeui/libgnomeui.h&gt;

<link linkend="GnomeMDIChild">GnomeMDIChild</link> *     (<link linkend="GnomeMDIChildCreator">*GnomeMDIChildCreator</link>)             (const <link linkend="gchar">gchar</link> *);
<link linkend="gboolean">gboolean</link>            <link linkend="gnome-mdi-restore-state">gnome_mdi_restore_state</link>             (<link linkend="GnomeMDI">GnomeMDI</link> *mdi,
                                                         const <link linkend="gchar">gchar</link> *section,
                                                         <link linkend="GnomeMDIChildCreator">GnomeMDIChildCreator</link> create_child_func);
<link linkend="void">void</link>                <link linkend="gnome-mdi-save-state">gnome_mdi_save_state</link>                (<link linkend="GnomeMDI">GnomeMDI</link> *mdi,
                                                         const <link linkend="gchar">gchar</link> *section);
</synopsis>
</refsynopsisdiv>









<refsect1 id="libgnomeui-gnome-mdi-session.description" role="desc">
<title role="desc.title">Description</title>
<para>
</para>
</refsect1>

<refsect1 id="libgnomeui-gnome-mdi-session.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="GnomeMDIChildCreator" role="function" condition="deprecated:">
<title>GnomeMDIChildCreator ()</title>
<indexterm zone="GnomeMDIChildCreator" role="deprecated"><primary sortas="GnomeMDIChildCreator">GnomeMDIChildCreator</primary></indexterm><programlisting><link linkend="GnomeMDIChild">GnomeMDIChild</link> *     (*GnomeMDIChildCreator)             (const <link linkend="gchar">gchar</link> *);</programlisting>
<warning><para><literal>GnomeMDIChildCreator</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>Param1</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gnome-mdi-restore-state" role="function" condition="deprecated:">
<title>gnome_mdi_restore_state ()</title>
<indexterm zone="gnome-mdi-restore-state" role="deprecated"><primary sortas="gnome_mdi_restore_state">gnome_mdi_restore_state</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gnome_mdi_restore_state             (<link linkend="GnomeMDI">GnomeMDI</link> *mdi,
                                                         const <link linkend="gchar">gchar</link> *section,
                                                         <link linkend="GnomeMDIChildCreator">GnomeMDIChildCreator</link> create_child_func);</programlisting>
<warning><para><literal>gnome_mdi_restore_state</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
Restores the MDI state. Children are recreated with <parameter>create_child_func</parameter> that
restores information about a child from a config string that was provided
during saving state by the child.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>mdi</parameter>&#160;:</term>
<listitem><simpara> A pointer to a GnomeMDI object.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>section</parameter>&#160;:</term>
<listitem><simpara> Name of the section to restore MDI state from.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>create_child_func</parameter>&#160;:</term>
<listitem><simpara> A function that recreates a child from its config string.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
TRUE if state was successfully restored, FALSE otherwise.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gnome-mdi-save-state" role="function" condition="deprecated:">
<title>gnome_mdi_save_state ()</title>
<indexterm zone="gnome-mdi-save-state" role="deprecated"><primary sortas="gnome_mdi_save_state">gnome_mdi_save_state</primary></indexterm><programlisting><link linkend="void">void</link>                gnome_mdi_save_state                (<link linkend="GnomeMDI">GnomeMDI</link> *mdi,
                                                         const <link linkend="gchar">gchar</link> *section);</programlisting>
<warning><para><literal>gnome_mdi_save_state</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
Saves MDI state to the application's config file in section <parameter>section</parameter>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>mdi</parameter>&#160;:</term>
<listitem><simpara> A pointer to a GnomeMDI object.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>section</parameter>&#160;:</term>
<listitem><simpara> Name of the section that the MDI config should be saved to.
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
