<HTML
><HEAD
><TITLE
>GnomeMDIChild</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.44"><LINK
REL="HOME"
TITLE="Gnome User Interface Library Reference Manual"
HREF="book1.html"><LINK
REL="UP"
TITLE="GNOME Widgets and Objects"
HREF="gnome-objects.html"><LINK
REL="PREVIOUS"
TITLE="GnomeLess"
HREF="gnomeless.html"><LINK
REL="NEXT"
TITLE="GnomeMDIGenericChild"
HREF="gnomemdigenericchild.html"></HEAD
><BODY
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
BGCOLOR="#000000"
CELLPADDING="1"
CELLSPACING="0"
><TR
><TH
COLSPAN="4"
ALIGN="center"
><FONT
COLOR="#FFFFFF"
SIZE="5"
>Gnome User Interface Library Reference Manual</FONT
></TH
></TR
><TR
><TD
WIDTH="25%"
BGCOLOR="#C00000"
ALIGN="left"
><A
HREF="gnomeless.html"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
>&#60;&#60;&#60; Previous Page</B
></FONT
></A
></TD
><TD
WIDTH="25%"
BGCOLOR="#0000C0"
ALIGN="center"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
><A
HREF="book1.html"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
>Home</B
></FONT
></A
></B
></FONT
></TD
><TD
WIDTH="25%"
BGCOLOR="#00C000"
ALIGN="center"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
><A
HREF="gnome-objects.html"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
>Up</B
></FONT
></A
></B
></FONT
></TD
><TD
WIDTH="25%"
BGCOLOR="#C00000"
ALIGN="right"
><A
HREF="gnomemdigenericchild.html"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
>Next Page &#62;&#62;&#62;</B
></FONT
></A
></TD
></TR
></TABLE
></DIV
><H1
><A
NAME="GNOMEMDICHILD"
>GnomeMDIChild</A
></H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN19969"
></A
><H2
>Name</H2
>GnomeMDIChild&nbsp;--&nbsp;An abstract MDI child class</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN19972"
></A
><H2
>Synopsis</H2
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="SYNOPSIS"
>&#13;#include &lt;gnome.h&gt;


struct      <A
HREF="gnomemdichild.html#GNOMEMDICHILD-STRUCT"
>GnomeMDIChild</A
>;
<GTKDOCLINK
HREF="GTKWIDGET"
>GtkWidget</GTKDOCLINK
>*  (<A
HREF="gnomemdichild.html#GNOMEMDICHILDVIEWCREATOR"
>*GnomeMDIChildViewCreator</A
>)     (<A
HREF="gnomemdichild.html"
>GnomeMDIChild</A
>*,
                                             <GTKDOCLINK
HREF="GPOINTER"
>gpointer</GTKDOCLINK
>);
<GTKDOCLINK
HREF="GLIST"
>GList</GTKDOCLINK
>*      (<A
HREF="gnomemdichild.html#GNOMEMDICHILDMENUCREATOR"
>*GnomeMDIChildMenuCreator</A
>)     (<A
HREF="gnomemdichild.html"
>GnomeMDIChild</A
>*,
                                             <GTKDOCLINK
HREF="GTKWIDGET"
>GtkWidget</GTKDOCLINK
>*,
                                             <GTKDOCLINK
HREF="GPOINTER"
>gpointer</GTKDOCLINK
>);
<GTKDOCLINK
HREF="GCHAR"
>gchar</GTKDOCLINK
>*      (<A
HREF="gnomemdichild.html#GNOMEMDICHILDCONFIGFUNC"
>*GnomeMDIChildConfigFunc</A
>)      (<A
HREF="gnomemdichild.html"
>GnomeMDIChild</A
>*,
                                             <GTKDOCLINK
HREF="GPOINTER"
>gpointer</GTKDOCLINK
>);
<GTKDOCLINK
HREF="GTKWIDGET"
>GtkWidget</GTKDOCLINK
>*  (<A
HREF="gnomemdichild.html#GNOMEMDICHILDLABELFUNC"
>*GnomeMDIChildLabelFunc</A
>)       (<A
HREF="gnomemdichild.html"
>GnomeMDIChild</A
>*,
                                             <GTKDOCLINK
HREF="GTKWIDGET"
>GtkWidget</GTKDOCLINK
>*,
                                             <GTKDOCLINK
HREF="GPOINTER"
>gpointer</GTKDOCLINK
>);
<GTKDOCLINK
HREF="GTKWIDGET"
>GtkWidget</GTKDOCLINK
>*  <A
HREF="gnomemdichild.html#GNOME-MDI-CHILD-ADD-VIEW"
>gnome_mdi_child_add_view</A
>        (<A
HREF="gnomemdichild.html"
>GnomeMDIChild</A
> *mdi_child);
void        <A
HREF="gnomemdichild.html#GNOME-MDI-CHILD-REMOVE-VIEW"
>gnome_mdi_child_remove_view</A
>     (<A
HREF="gnomemdichild.html"
>GnomeMDIChild</A
> *mdi_child,
                                             <GTKDOCLINK
HREF="GTKWIDGET"
>GtkWidget</GTKDOCLINK
> *view);
void        <A
HREF="gnomemdichild.html#GNOME-MDI-CHILD-SET-NAME"
>gnome_mdi_child_set_name</A
>        (<A
HREF="gnomemdichild.html"
>GnomeMDIChild</A
> *mdi_child,
                                             <GTKDOCLINK
HREF="GCHAR"
>gchar</GTKDOCLINK
> *name);
void        <A
HREF="gnomemdichild.html#GNOME-MDI-CHILD-SET-MENU-TEMPLATE"
>gnome_mdi_child_set_menu_template</A
>
                                            (<A
HREF="gnomemdichild.html"
>GnomeMDIChild</A
> *mdi_child,
                                             <A
HREF="gnomeui-gnome-app-helper.html#GNOMEUIINFO"
>GnomeUIInfo</A
> *menu_tmpl);&#13;</PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN20006"
></A
><H2
>Object Hierarchy</H2
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="SYNOPSIS"
>&#13;  <GTKDOCLINK
HREF="GTKOBJECT"
>GtkObject</GTKDOCLINK
>
   +----GnomeMDIChild</PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN20010"
></A
><H2
>Description</H2
><P
>    <SPAN
CLASS="TYPE"
>GnomeMDIChild</SPAN
> is an abstract class for <SPAN
CLASS="TYPE"
>GnomeMDI</SPAN
>
    children. In order to use it, you have to either derive a new class from it
    and define the proper virtual functions in its parent
    <SPAN
CLASS="TYPE"
>GnomeMDIChildClass</SPAN
> structure or use the
    <SPAN
CLASS="TYPE"
>GnomeMDIGenericChild</SPAN
> class that allows to specify the relevant
    functions on a per-instance rather than on per-class basis.
  </P
><P
>    Each instance of GnomeMDIChild class defines a name for the child and possibly
    a menu template for document-specific menus that will be merged with the global
    MDI menus. The menu template is set using the <A
HREF="gnomemdichild.html#GNOME-MDI-CHILD-SET-MENU-TEMPLATE"
>gnome_mdi_child_set_menu_template</A
>()
    function.
  </P
><P
>    The <SPAN
CLASS="TYPE"
>GnomeMDIChild</SPAN
> class has four virtual functions that are used by
    the MDI:
    <P
></P
><UL
><LI
><P
>	  create_view must be defined for each subclass and must return a pointer to a
	  GtkWidget representing a new view of the document.
	</P
></LI
><LI
><P
>	  create_menus must return a GList of menu items and can be used instead of the
	  child's menu template. If both template and this function are defined, only the
	  template (which can be defined on a per-instance basis) is used.
	</P
></LI
><LI
><P
>	  get_config_string must return a string that represents the state of the child
	  and will be used to save and restore state of the MDI children bewtween sessions.
	</P
></LI
><LI
><P
>	  set_label must return a pointer to a GtkWidget that will be used as notebook and
	  menu item label for this child.
	</P
></LI
></UL
>
    create_view function must be defined for each subclass and the <SPAN
CLASS="TYPE"
>GnomeMDIChild</SPAN
>
    class provides a simple default implementation of set_label; create_menus and get_config_string
    may be undefined.
  </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN20031"
></A
><H2
>Details</H2
><DIV
CLASS="REFSECT2"
><A
NAME="AEN20033"
></A
><H3
><A
NAME="GNOMEMDICHILD-STRUCT"
></A
>struct GnomeMDIChild</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>struct GnomeMDIChild;</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20038"
></A
><H3
><A
NAME="GNOMEMDICHILDVIEWCREATOR"
></A
>GnomeMDIChildViewCreator ()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
><GTKDOCLINK
HREF="GTKWIDGET"
>GtkWidget</GTKDOCLINK
>*  (*GnomeMDIChildViewCreator)     (<A
HREF="gnomemdichild.html"
>GnomeMDIChild</A
>*,
                                             <GTKDOCLINK
HREF="GPOINTER"
>gpointer</GTKDOCLINK
>);</PRE
></TD
></TR
></TABLE
><P
></P
><DIV
CLASS="INFORMALTABLE"
><P
></P
><TABLE
BORDER="0"
WIDTH="100%"
BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>Param1</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>Param2</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><I
CLASS="EMPHASIS"
>Returns</I
> :</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
></TABLE
><P
></P
></DIV
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20063"
></A
><H3
><A
NAME="GNOMEMDICHILDMENUCREATOR"
></A
>GnomeMDIChildMenuCreator ()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
><GTKDOCLINK
HREF="GLIST"
>GList</GTKDOCLINK
>*      (*GnomeMDIChildMenuCreator)     (<A
HREF="gnomemdichild.html"
>GnomeMDIChild</A
>*,
                                             <GTKDOCLINK
HREF="GTKWIDGET"
>GtkWidget</GTKDOCLINK
>*,
                                             <GTKDOCLINK
HREF="GPOINTER"
>gpointer</GTKDOCLINK
>);</PRE
></TD
></TR
></TABLE
><P
></P
><DIV
CLASS="INFORMALTABLE"
><P
></P
><TABLE
BORDER="0"
WIDTH="100%"
BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>Param1</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>Param2</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>Param3</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><I
CLASS="EMPHASIS"
>Returns</I
> :</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
></TABLE
><P
></P
></DIV
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20093"
></A
><H3
><A
NAME="GNOMEMDICHILDCONFIGFUNC"
></A
>GnomeMDIChildConfigFunc ()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
><GTKDOCLINK
HREF="GCHAR"
>gchar</GTKDOCLINK
>*      (*GnomeMDIChildConfigFunc)      (<A
HREF="gnomemdichild.html"
>GnomeMDIChild</A
>*,
                                             <GTKDOCLINK
HREF="GPOINTER"
>gpointer</GTKDOCLINK
>);</PRE
></TD
></TR
></TABLE
><P
></P
><DIV
CLASS="INFORMALTABLE"
><P
></P
><TABLE
BORDER="0"
WIDTH="100%"
BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>Param1</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>Param2</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><I
CLASS="EMPHASIS"
>Returns</I
> :</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
></TABLE
><P
></P
></DIV
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20118"
></A
><H3
><A
NAME="GNOMEMDICHILDLABELFUNC"
></A
>GnomeMDIChildLabelFunc ()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
><GTKDOCLINK
HREF="GTKWIDGET"
>GtkWidget</GTKDOCLINK
>*  (*GnomeMDIChildLabelFunc)       (<A
HREF="gnomemdichild.html"
>GnomeMDIChild</A
>*,
                                             <GTKDOCLINK
HREF="GTKWIDGET"
>GtkWidget</GTKDOCLINK
>*,
                                             <GTKDOCLINK
HREF="GPOINTER"
>gpointer</GTKDOCLINK
>);</PRE
></TD
></TR
></TABLE
><P
></P
><DIV
CLASS="INFORMALTABLE"
><P
></P
><TABLE
BORDER="0"
WIDTH="100%"
BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>Param1</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>Param2</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>Param3</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><I
CLASS="EMPHASIS"
>Returns</I
> :</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
></TABLE
><P
></P
></DIV
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20148"
></A
><H3
><A
NAME="GNOME-MDI-CHILD-ADD-VIEW"
></A
>gnome_mdi_child_add_view ()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
><GTKDOCLINK
HREF="GTKWIDGET"
>GtkWidget</GTKDOCLINK
>*  gnome_mdi_child_add_view        (<A
HREF="gnomemdichild.html"
>GnomeMDIChild</A
> *mdi_child);</PRE
></TD
></TR
></TABLE
><P
>Creates a new view of a child (a GtkWidget) adds it to the list
of the views and returns a pointer to it. Virtual function
that has to be specified for classes derived from GnomeMDIChild
is used to create the new view.</P
><P
></P
><DIV
CLASS="INFORMALTABLE"
><P
></P
><TABLE
BORDER="0"
WIDTH="100%"
BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>mdi_child</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> A pointer to a GnomeMDIChild object.</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><I
CLASS="EMPHASIS"
>Returns</I
> :</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>A pointer to the new view.</TD
></TR
></TABLE
><P
></P
></DIV
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20169"
></A
><H3
><A
NAME="GNOME-MDI-CHILD-REMOVE-VIEW"
></A
>gnome_mdi_child_remove_view ()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>void        gnome_mdi_child_remove_view     (<A
HREF="gnomemdichild.html"
>GnomeMDIChild</A
> *mdi_child,
                                             <GTKDOCLINK
HREF="GTKWIDGET"
>GtkWidget</GTKDOCLINK
> *view);</PRE
></TD
></TR
></TABLE
><P
>Removes view <TT
CLASS="PARAMETER"
><I
>view</I
></TT
> from the list of <TT
CLASS="PARAMETER"
><I
>mdi_child</I
></TT
>'s views and
unrefs it.</P
><P
></P
><DIV
CLASS="INFORMALTABLE"
><P
></P
><TABLE
BORDER="0"
WIDTH="100%"
BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>mdi_child</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> A pointer to a GnomeMDIChild object.</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>view</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> View to be removed.</TD
></TR
></TABLE
><P
></P
></DIV
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20192"
></A
><H3
><A
NAME="GNOME-MDI-CHILD-SET-NAME"
></A
>gnome_mdi_child_set_name ()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>void        gnome_mdi_child_set_name        (<A
HREF="gnomemdichild.html"
>GnomeMDIChild</A
> *mdi_child,
                                             <GTKDOCLINK
HREF="GCHAR"
>gchar</GTKDOCLINK
> *name);</PRE
></TD
></TR
></TABLE
><P
>Changes name of <TT
CLASS="PARAMETER"
><I
>mdi_child</I
></TT
> to <TT
CLASS="PARAMETER"
><I
>name</I
></TT
>. <TT
CLASS="PARAMETER"
><I
>name</I
></TT
> is duplicated and stored
in <TT
CLASS="PARAMETER"
><I
>mdi_child</I
></TT
>. If <TT
CLASS="PARAMETER"
><I
>mdi_child</I
></TT
> has already been added to GnomeMDI,
it also takes care of updating it.</P
><P
></P
><DIV
CLASS="INFORMALTABLE"
><P
></P
><TABLE
BORDER="0"
WIDTH="100%"
BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>mdi_child</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> A pointer to a GnomeMDIChild object.</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>name</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> String containing the new name for the child.</TD
></TR
></TABLE
><P
></P
></DIV
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20218"
></A
><H3
><A
NAME="GNOME-MDI-CHILD-SET-MENU-TEMPLATE"
></A
>gnome_mdi_child_set_menu_template ()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>void        gnome_mdi_child_set_menu_template
                                            (<A
HREF="gnomemdichild.html"
>GnomeMDIChild</A
> *mdi_child,
                                             <A
HREF="gnomeui-gnome-app-helper.html#GNOMEUIINFO"
>GnomeUIInfo</A
> *menu_tmpl);</PRE
></TD
></TR
></TABLE
><P
>Sets the template for menus that are added and removed when differrent
children get activated. This way, each child can modify the MDI menubar
to suit its needs. If no template is set, the create_menus virtual
function will be used for creating these menus (it has to return a
GList of menu items). If no such function is specified, the menubar will
be unchanged by MDI children.</P
><P
></P
><DIV
CLASS="INFORMALTABLE"
><P
></P
><TABLE
BORDER="0"
WIDTH="100%"
BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>mdi_child</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> A pointer to a GnomeMDIChild object.</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>menu_tmpl</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> A GnomeUIInfo array describing the child specific menus.</TD
></TR
></TABLE
><P
></P
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><BR
CLEAR="all"><BR><TABLE
WIDTH="100%"
BORDER="0"
BGCOLOR="#000000"
CELLPADDING="1"
CELLSPACING="0"
><TR
><TD
WIDTH="25%"
BGCOLOR="#C00000"
ALIGN="left"
><A
HREF="gnomeless.html"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
>&#60;&#60;&#60; Previous Page</B
></FONT
></A
></TD
><TD
WIDTH="25%"
BGCOLOR="#0000C0"
ALIGN="center"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
><A
HREF="book1.html"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
>Home</B
></FONT
></A
></B
></FONT
></TD
><TD
WIDTH="25%"
BGCOLOR="#00C000"
ALIGN="center"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
><A
HREF="gnome-objects.html"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
>Up</B
></FONT
></A
></B
></FONT
></TD
><TD
WIDTH="25%"
BGCOLOR="#C00000"
ALIGN="right"
><A
HREF="gnomemdigenericchild.html"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
>Next Page &#62;&#62;&#62;</B
></FONT
></A
></TD
></TR
><TR
><TD
COLSPAN="2"
ALIGN="left"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
>GnomeLess</B
></FONT
></TD
><TD
COLSPAN="2"
ALIGN="right"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
>GnomeMDIGenericChild</B
></FONT
></TD
></TR
></TABLE
></DIV
></BODY
></HTML
>