|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21585/root/usr/share/gtk-doc/html/libgnomeui/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GnomeMDI</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="GNOME UI Library Reference Manual">
<link rel="up" href="deprecated.html" title="Deprecated modules">
<link rel="prev" href="libgnomeui-gnome-app-util.html" title="gnome-app-util">
<link rel="next" href="GnomeMDIChild.html" title="GnomeMDIChild">
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="ch01.html" title="GNOME UI Library (libgnomeui)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libgnomeui-gnome-app-util.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="deprecated.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GNOME UI Library Reference Manual</th>
<td><a accesskey="n" href="GnomeMDIChild.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3122751" class="shortcut">Top</a>
 | 
<a href="#id3123879" class="shortcut">Description</a>
 | 
<a href="#id3123547" class="shortcut">Object Hierarchy</a>
 | 
<a href="#id3123586" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GnomeMDI"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id3122751"></a><span class="refentrytitle">GnomeMDI</span>
</h2>
<p>GnomeMDI — </p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">
#include <libgnomeui/libgnomeui.h>
enum <a href="GnomeMDI.html#GnomeMDIMode">GnomeMDIMode</a>;
<a href="GnomeMDI.html#GnomeMDI-struct">GnomeMDI</a>;
<a
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
>GtkObject</a>* <a href="GnomeMDI.html#gnome-mdi-new">gnome_mdi_new</a> (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *appname,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *title);
void <a href="GnomeMDI.html#gnome-mdi-set-mode">gnome_mdi_set_mode</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeMDI.html#GnomeMDIMode">GnomeMDIMode</a> mode);
void <a href="GnomeMDI.html#gnome-mdi-set-menubar-template">gnome_mdi_set_menubar_template</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="libgnomeui-gnome-app-helper.html#GnomeUIInfo">GnomeUIInfo</a> *menu_tmpl);
void <a href="GnomeMDI.html#gnome-mdi-set-toolbar-template">gnome_mdi_set_toolbar_template</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="libgnomeui-gnome-app-helper.html#GnomeUIInfo">GnomeUIInfo</a> *tbar_tmpl);
void <a href="GnomeMDI.html#gnome-mdi-set-child-menu-path">gnome_mdi_set_child_menu_path</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *path);
void <a href="GnomeMDI.html#gnome-mdi-set-child-list-path">gnome_mdi_set_child_list_path</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *path);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> <a href="GnomeMDI.html#gnome-mdi-add-view">gnome_mdi_add_view</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a> *child);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> <a href="GnomeMDI.html#gnome-mdi-add-toplevel-view">gnome_mdi_add_toplevel_view</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a> *child);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> <a href="GnomeMDI.html#gnome-mdi-remove-view">gnome_mdi_remove_view</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a> *view,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> force);
<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a>* <a href="GnomeMDI.html#gnome-mdi-get-active-view">gnome_mdi_get_active_view</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi);
void <a href="GnomeMDI.html#gnome-mdi-set-active-view">gnome_mdi_set_active_view</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a> *view);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> <a href="GnomeMDI.html#gnome-mdi-add-child">gnome_mdi_add_child</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a> *child);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> <a href="GnomeMDI.html#gnome-mdi-remove-child">gnome_mdi_remove_child</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a> *child,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> force);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> <a href="GnomeMDI.html#gnome-mdi-remove-all">gnome_mdi_remove_all</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> force);
void <a href="GnomeMDI.html#gnome-mdi-open-toplevel">gnome_mdi_open_toplevel</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi);
void <a href="GnomeMDI.html#gnome-mdi-update-child">gnome_mdi_update_child</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a> *child);
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a>* <a href="GnomeMDI.html#gnome-mdi-get-active-child">gnome_mdi_get_active_child</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi);
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a>* <a href="GnomeMDI.html#gnome-mdi-find-child">gnome_mdi_find_child</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
<a href="GnomeApp.html" title="GnomeApp">GnomeApp</a>* <a href="GnomeMDI.html#gnome-mdi-get-active-window">gnome_mdi_get_active_window</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi);
void <a href="GnomeMDI.html#gnome-mdi-register">gnome_mdi_register</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
>GtkObject</a> *object);
void <a href="GnomeMDI.html#gnome-mdi-unregister">gnome_mdi_unregister</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
>GtkObject</a> *object);
<a href="GnomeApp.html" title="GnomeApp">GnomeApp</a>* <a href="GnomeMDI.html#gnome-mdi-get-app-from-view">gnome_mdi_get_app_from_view</a> (<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a> *view);
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a>* <a href="GnomeMDI.html#gnome-mdi-get-child-from-view">gnome_mdi_get_child_from_view</a>
(<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a> *view);
<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a>* <a href="GnomeMDI.html#gnome-mdi-get-view-from-window">gnome_mdi_get_view_from_window</a> (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeApp.html" title="GnomeApp">GnomeApp</a> *app);
<a href="libgnomeui-gnome-app-helper.html#GnomeUIInfo">GnomeUIInfo</a>* <a href="GnomeMDI.html#gnome-mdi-get-menubar-info">gnome_mdi_get_menubar_info</a> (<a href="GnomeApp.html" title="GnomeApp">GnomeApp</a> *app);
<a href="libgnomeui-gnome-app-helper.html#GnomeUIInfo">GnomeUIInfo</a>* <a href="GnomeMDI.html#gnome-mdi-get-toolbar-info">gnome_mdi_get_toolbar_info</a> (<a href="GnomeApp.html" title="GnomeApp">GnomeApp</a> *app);
<a href="libgnomeui-gnome-app-helper.html#GnomeUIInfo">GnomeUIInfo</a>* <a href="GnomeMDI.html#gnome-mdi-get-child-menu-info">gnome_mdi_get_child_menu_info</a> (<a href="GnomeApp.html" title="GnomeApp">GnomeApp</a> *app);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3123547"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
+----<a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
>GInitiallyUnowned</a>
+----<a
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
>GtkObject</a>
+----GnomeMDI
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3123586"></a><h2>Signals</h2>
<pre class="synopsis">
"<a href="GnomeMDI.html#GnomeMDI-add-child">add-child</a>" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> user_function (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a> *arg1,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GnomeMDI.html#GnomeMDI-add-view">add-view</a>" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> user_function (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a> *widget,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GnomeMDI.html#GnomeMDI-app-created">app-created</a>"
void user_function (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeApp.html" title="GnomeApp">GnomeApp</a> *arg1,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GnomeMDI.html#GnomeMDI-child-changed">child-changed</a>"
void user_function (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a> *arg1,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GnomeMDI.html#GnomeMDI-remove-child">remove-child</a>"
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> user_function (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a> *arg1,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GnomeMDI.html#GnomeMDI-remove-view">remove-view</a>"
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> user_function (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a> *widget,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GnomeMDI.html#GnomeMDI-view-changed">view-changed</a>"
void user_function (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a> *widget,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3123879"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1" lang="en">
<a name="id3123894"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3123904"></a><h3>
<a name="GnomeMDIMode"></a>enum GnomeMDIMode</h3>
<a class="indexterm" name="id3123918"></a><pre class="programlisting">typedef enum {
GNOME_MDI_NOTEBOOK,
GNOME_MDI_TOPLEVEL,
GNOME_MDI_MODAL,
GNOME_MDI_DEFAULT_MODE = 42
} GnomeMDIMode;
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GnomeMDIMode</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3123948"></a><h3>
<a name="GnomeMDI-struct"></a>GnomeMDI</h3>
<a class="indexterm" name="id3123960"></a><pre class="programlisting">typedef struct _GnomeMDI GnomeMDI;</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GnomeMDI</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3123988"></a><h3>
<a name="gnome-mdi-new"></a>gnome_mdi_new ()</h3>
<a class="indexterm" name="id3124003"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
>GtkObject</a>* gnome_mdi_new (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *appname,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *title);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_new</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Creates a new MDI object. <em class="parameter"><code>appname</code></em> and <em class="parameter"><code>title</code></em> are used for
MDI's calling <a href="GnomeApp.html#gnome-app-new"><code class="function">gnome_app_new()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>appname</code></em> :</span></td>
<td> Application name as used in filenames and paths.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>title</code></em> :</span></td>
<td> Title of the application windows.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
A pointer to a new GnomeMDI object.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3124122"></a><h3>
<a name="gnome-mdi-set-mode"></a>gnome_mdi_set_mode ()</h3>
<a class="indexterm" name="id3124137"></a><pre class="programlisting">void gnome_mdi_set_mode (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeMDI.html#GnomeMDIMode">GnomeMDIMode</a> mode);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_set_mode</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Sets the MDI mode to mode. Possible values are <code class="literal">GNOME_MDI_TOPLEVEL</code>,
<code class="literal">GNOME_MDI_NOTEBOOK</code>, <code class="literal">GNOME_MDI_MODAL</code> and <code class="literal">GNOME_MDI_DEFAULT</code>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>mode</code></em> :</span></td>
<td> New mode.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3124270"></a><h3>
<a name="gnome-mdi-set-menubar-template"></a>gnome_mdi_set_menubar_template ()</h3>
<a class="indexterm" name="id3124284"></a><pre class="programlisting">void gnome_mdi_set_menubar_template (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="libgnomeui-gnome-app-helper.html#GnomeUIInfo">GnomeUIInfo</a> *menu_tmpl);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_set_menubar_template</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This function sets the template for menus that appear in each toplevel
window to menu_template. For each new toplevel window created by the MDI,
this structure is copied, the menus are created with
<a href="libgnomeui-gnome-app-helper.html#gnome-app-create-menus-with-data"><code class="function">gnome_app_create_menus_with_data()</code></a> function with mdi as the callback
user data. Finally, the pointer to the copy is assigned to the new
toplevel window (a GnomeApp widget) and can be obtained by calling
&gnome_mdi_get_menubar_info.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>menu_tmpl</code></em> :</span></td>
<td> A GnomeUIInfo array describing the menu.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3124390"></a><h3>
<a name="gnome-mdi-set-toolbar-template"></a>gnome_mdi_set_toolbar_template ()</h3>
<a class="indexterm" name="id3124406"></a><pre class="programlisting">void gnome_mdi_set_toolbar_template (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="libgnomeui-gnome-app-helper.html#GnomeUIInfo">GnomeUIInfo</a> *tbar_tmpl);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_set_toolbar_template</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This function sets the template for toolbar that appears in each toplevel
window to toolbar_template. For each new toplevel window created by the MDI,
this structure is copied, the toolbar is created with
<a href="libgnomeui-gnome-app-helper.html#gnome-app-create-toolbar-with-data"><code class="function">gnome_app_create_toolbar_with_data()</code></a> function with mdi as the callback
user data. Finally, the pointer to the copy is assigned to the new toplevel
window (a GnomeApp widget) and can be retrieved with a call to
&gnome_mdi_get_toolbar_info.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>tbar_tmpl</code></em> :</span></td>
<td> A GnomeUIInfo array describing the toolbar.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3124511"></a><h3>
<a name="gnome-mdi-set-child-menu-path"></a>gnome_mdi_set_child_menu_path ()</h3>
<a class="indexterm" name="id3124527"></a><pre class="programlisting">void gnome_mdi_set_child_menu_path (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *path);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_set_child_menu_path</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Sets the desired position of child-specific menus (which are added to and
removed from the main menus as views of different children are activated).
See gnome_app_find_menu_pos for details on menu paths.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> A menu path where the child menus should be inserted.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3124616"></a><h3>
<a name="gnome-mdi-set-child-list-path"></a>gnome_mdi_set_child_list_path ()</h3>
<a class="indexterm" name="id3124631"></a><pre class="programlisting">void gnome_mdi_set_child_list_path (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *path);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_set_child_list_path</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Sets the position for insertion of menu items used to activate the MDI
children that were added to the MDI. See gnome_app_find_menu_pos for
details on menu paths. If the path is not set or set to <a
href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"
><code class="literal">NULL</code></a>, these menu
items aren't going to be inserted in the MDI menu structure. Note that if
you want all menu items to be inserted in their own submenu, you have to
create that submenu (and leave it empty, of course).</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> A menu path where the child list menu should be inserted
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3124733"></a><h3>
<a name="gnome-mdi-add-view"></a>gnome_mdi_add_view ()</h3>
<a class="indexterm" name="id3124749"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> gnome_mdi_add_view (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a> *child);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_add_view</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Creates a new view of the child and adds it to the MDI. GnomeMDIChild
<em class="parameter"><code>child</code></em> has to be added to the MDI with a call to gnome_mdi_add_child
before its views are added to the MDI.
An "add_view" signal is emitted to the MDI after the view has been
created, but before it is shown and added to the MDI, with a pointer to
the created view as its parameter. The view is added to the MDI only if
the signal handler (if it exists) returns <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>. If the handler returns
<a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>, the created view is destroyed and not added to the MDI.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td> A pointer to a child.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
<a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if adding the view succeeded and <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3124899"></a><h3>
<a name="gnome-mdi-add-toplevel-view"></a>gnome_mdi_add_toplevel_view ()</h3>
<a class="indexterm" name="id3124915"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> gnome_mdi_add_toplevel_view (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a> *child);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_add_toplevel_view</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Creates a new view of the child and adds it to the MDI; it behaves the
same way as gnome_mdi_add_view in <code class="literal">GNOME_MDI_MODAL</code> and <code class="literal">GNOME_MDI_TOPLEVEL</code>
modes, but in <code class="literal">GNOME_MDI_NOTEBOOK</code> mode, the view is added in a new
toplevel window unless the active one has no views in it.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td> A pointer to a GnomeMDIChild object to be added to the MDI.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
<a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if adding the view succeeded and <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3125067"></a><h3>
<a name="gnome-mdi-remove-view"></a>gnome_mdi_remove_view ()</h3>
<a class="indexterm" name="id3125082"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> gnome_mdi_remove_view (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a> *view,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> force);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_remove_view</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Removes a view from an MDI.
A "remove_view" signal is emitted to the MDI before actually removing
view. The view is removed only if the signal handler (if it exists and
the <em class="parameter"><code>force</code></em> is set to <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>) returns <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>view</code></em> :</span></td>
<td> View to remove.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>force</code></em> :</span></td>
<td> If TRUE, the "remove_view" signal is not emitted.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
<a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the view was removed and <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3125248"></a><h3>
<a name="gnome-mdi-get-active-view"></a>gnome_mdi_get_active_view ()</h3>
<a class="indexterm" name="id3125264"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a>* gnome_mdi_get_active_view (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_get_active_view</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Returns a pointer to the active view (the one with the focus).</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
A pointer to a GtkWidget *.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3125338"></a><h3>
<a name="gnome-mdi-set-active-view"></a>gnome_mdi_set_active_view ()</h3>
<a class="indexterm" name="id3125354"></a><pre class="programlisting">void gnome_mdi_set_active_view (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a> *view);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_set_active_view</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Sets the active view to <em class="parameter"><code>view</code></em>. It also raises the window containing it
and gives it focus.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to an MDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>view</code></em> :</span></td>
<td> A pointer to the view that is to become the active one.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3125446"></a><h3>
<a name="gnome-mdi-add-child"></a>gnome_mdi_add_child ()</h3>
<a class="indexterm" name="id3125461"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> gnome_mdi_add_child (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a> *child);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_add_child</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Adds a new child to the MDI. No views are added: this has to be done with
a call to gnome_mdi_add_view.
First an "add_child" signal is emitted to the MDI with a pointer to the
child as its parameter. The child is added to the MDI only if the signal
handler (if it exists) returns <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>. If the handler returns <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>, the
child is not added to the MDI.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td> A pointer to a GnomeMDIChild to add to the MDI.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
<a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the child was added successfully and <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3125603"></a><h3>
<a name="gnome-mdi-remove-child"></a>gnome_mdi_remove_child ()</h3>
<a class="indexterm" name="id3125618"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> gnome_mdi_remove_child (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a> *child,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> force);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_remove_child</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Removes a child and all of its views from the MDI.
A "remove_child" signal is emitted to the MDI with <em class="parameter"><code>child</code></em> as its parameter
before actually removing the child. The child is removed only if the signal
handler (if it exists and the <em class="parameter"><code>force</code></em> is set to <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>) returns <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td> Child to remove.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>force</code></em> :</span></td>
<td> If TRUE, the "remove_child" signal is not emitted
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
<a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the removal was successful and <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3125792"></a><h3>
<a name="gnome-mdi-remove-all"></a>gnome_mdi_remove_all ()</h3>
<a class="indexterm" name="id3125807"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> gnome_mdi_remove_all (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> force);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_remove_all</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Removes all children and all views from the MDI.
A "remove_child" signal is emitted to the MDI for each child before
actually trying to remove any. If signal handlers for all children (if
they exist and the <em class="parameter"><code>force</code></em> is set to <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>) return <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, all children
and their views are removed and none otherwise.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>force</code></em> :</span></td>
<td> If TRUE, the "remove_child" signal is not emitted
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
<a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the removal was successful and <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3125954"></a><h3>
<a name="gnome-mdi-open-toplevel"></a>gnome_mdi_open_toplevel ()</h3>
<a class="indexterm" name="id3125969"></a><pre class="programlisting">void gnome_mdi_open_toplevel (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_open_toplevel</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Opens a new toplevel window (unless in <code class="literal">GNOME_MDI_MODAL</code> mode and a
toplevel window is already open). This is usually used only for opening
the initial window on startup (just before calling <code class="function">gtkmain()</code>) if no
windows were open because a session was restored or children were added
because of command line args).</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3126058"></a><h3>
<a name="gnome-mdi-update-child"></a>gnome_mdi_update_child ()</h3>
<a class="indexterm" name="id3126073"></a><pre class="programlisting">void gnome_mdi_update_child (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a> *child);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_update_child</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Updates all notebook labels of <em class="parameter"><code>child</code></em>'s views and their window titles
after its name changes. It is not required if <a href="GnomeMDIChild.html#gnome-mdi-child-set-name"><code class="function">gnome_mdi_child_set_name()</code></a>
is used for setting the child's name.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td> Child to update.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3126178"></a><h3>
<a name="gnome-mdi-get-active-child"></a>gnome_mdi_get_active_child ()</h3>
<a class="indexterm" name="id3126195"></a><pre class="programlisting"><a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a>* gnome_mdi_get_active_child (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_get_active_child</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Returns a pointer to the active GnomeMDIChild object.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
A pointer to the active GnomeMDIChild object. <a
href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"
><code class="literal">NULL</code></a>, if there is none.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3126279"></a><h3>
<a name="gnome-mdi-find-child"></a>gnome_mdi_find_child ()</h3>
<a class="indexterm" name="id3126294"></a><pre class="programlisting"><a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a>* gnome_mdi_find_child (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_find_child</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Finds a child named <em class="parameter"><code>name</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>name</code></em> :</span></td>
<td> A string with a name of the child to find.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
A pointer to the GnomeMDIChild object if the child was found and NULL
otherwise.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3126397"></a><h3>
<a name="gnome-mdi-get-active-window"></a>gnome_mdi_get_active_window ()</h3>
<a class="indexterm" name="id3126413"></a><pre class="programlisting"><a href="GnomeApp.html" title="GnomeApp">GnomeApp</a>* gnome_mdi_get_active_window (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_get_active_window</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Returns a pointer to the toplevel window containing the active view.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
A pointer to a GnomeApp that has the focus.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3126487"></a><h3>
<a name="gnome-mdi-register"></a>gnome_mdi_register ()</h3>
<a class="indexterm" name="id3126502"></a><pre class="programlisting">void gnome_mdi_register (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
>GtkObject</a> *object);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_register</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Registers GtkObject <em class="parameter"><code>object</code></em> with MDI.
This is mostly intended for applications that open other windows besides
those opened by the MDI and want to continue to run even when no MDI
windows exist (an example of this would be GIMP's window with tools, if
the pictures were MDI children). As long as there is an object registered
with the MDI, the MDI will not destroy itself when the last of its windows
is closed. If no objects are registered, closing the last MDI window
results in MDI being destroyed.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>object</code></em> :</span></td>
<td> Object to register.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3126600"></a><h3>
<a name="gnome-mdi-unregister"></a>gnome_mdi_unregister ()</h3>
<a class="indexterm" name="id3126615"></a><pre class="programlisting">void gnome_mdi_unregister (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
>GtkObject</a> *object);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_unregister</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Removes GtkObject <em class="parameter"><code>object</code></em> from the list of registered objects.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>object</code></em> :</span></td>
<td> Object to unregister.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3126706"></a><h3>
<a name="gnome-mdi-get-app-from-view"></a>gnome_mdi_get_app_from_view ()</h3>
<a class="indexterm" name="id3126721"></a><pre class="programlisting"><a href="GnomeApp.html" title="GnomeApp">GnomeApp</a>* gnome_mdi_get_app_from_view (<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a> *view);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_get_app_from_view</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Returns the toplevel window for this view.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>view</code></em> :</span></td>
<td> A pointer to a GtkWidget.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
A pointer to the GnomeApp containg the specified view.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3126795"></a><h3>
<a name="gnome-mdi-get-child-from-view"></a>gnome_mdi_get_child_from_view ()</h3>
<a class="indexterm" name="id3126811"></a><pre class="programlisting"><a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a>* gnome_mdi_get_child_from_view
(<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a> *view);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_get_child_from_view</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Returns a child that <em class="parameter"><code>view</code></em> is a view of.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>view</code></em> :</span></td>
<td> A pointer to a GtkWidget.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
A pointer to the GnomeMDIChild the view belongs to.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3126892"></a><h3>
<a name="gnome-mdi-get-view-from-window"></a>gnome_mdi_get_view_from_window ()</h3>
<a class="indexterm" name="id3126908"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a>* gnome_mdi_get_view_from_window (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeApp.html" title="GnomeApp">GnomeApp</a> *app);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_get_view_from_window</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Returns the pointer to the view in the MDI toplevel window <em class="parameter"><code>app</code></em>.
If the mode is set to <code class="literal">GNOME_MDI_NOTEBOOK</code>, the view in the current
page is returned.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td> A pointer to a GnomeMDI object.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>app</code></em> :</span></td>
<td> A pointer to a GnomeApp widget.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
A pointer to a view.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3127022"></a><h3>
<a name="gnome-mdi-get-menubar-info"></a>gnome_mdi_get_menubar_info ()</h3>
<a class="indexterm" name="id3127038"></a><pre class="programlisting"><a href="libgnomeui-gnome-app-helper.html#GnomeUIInfo">GnomeUIInfo</a>* gnome_mdi_get_menubar_info (<a href="GnomeApp.html" title="GnomeApp">GnomeApp</a> *app);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_get_menubar_info</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>app</code></em> :</span></td>
<td> A pointer to a GnomeApp widget created by the MDI.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
A GnomeUIInfo array used for menubar in <em class="parameter"><code>app</code></em> if the menubar has been created with a template.
<a
href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"
><code class="literal">NULL</code></a> otherwise.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3127127"></a><h3>
<a name="gnome-mdi-get-toolbar-info"></a>gnome_mdi_get_toolbar_info ()</h3>
<a class="indexterm" name="id3127143"></a><pre class="programlisting"><a href="libgnomeui-gnome-app-helper.html#GnomeUIInfo">GnomeUIInfo</a>* gnome_mdi_get_toolbar_info (<a href="GnomeApp.html" title="GnomeApp">GnomeApp</a> *app);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_get_toolbar_info</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>app</code></em> :</span></td>
<td> A pointer to a GnomeApp widget created by the MDI.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
A GnomeUIInfo array used for toolbar in <em class="parameter"><code>app</code></em> if the toolbar has been created with a template.
<a
href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"
><code class="literal">NULL</code></a> otherwise.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3127233"></a><h3>
<a name="gnome-mdi-get-child-menu-info"></a>gnome_mdi_get_child_menu_info ()</h3>
<a class="indexterm" name="id3127249"></a><pre class="programlisting"><a href="libgnomeui-gnome-app-helper.html#GnomeUIInfo">GnomeUIInfo</a>* gnome_mdi_get_child_menu_info (<a href="GnomeApp.html" title="GnomeApp">GnomeApp</a> *app);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_mdi_get_child_menu_info</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>app</code></em> :</span></td>
<td> A pointer to a GnomeApp widget created by the MDI.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
A GnomeUIInfo array used for child's menus in <em class="parameter"><code>app</code></em> if they have been created with a template.
<a
href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"
><code class="literal">NULL</code></a> otherwise.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3127340"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="id3127351"></a><h3>
<a name="GnomeMDI-add-child"></a>The "add-child" signal</h3>
<a class="indexterm" name="id3127361"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> user_function (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a> *arg1,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3127461"></a><h3>
<a name="GnomeMDI-add-view"></a>The "add-view" signal</h3>
<a class="indexterm" name="id3127471"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> user_function (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a> *widget,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3127570"></a><h3>
<a name="GnomeMDI-app-created"></a>The "app-created" signal</h3>
<a class="indexterm" name="id3127581"></a><pre class="programlisting">void user_function (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeApp.html" title="GnomeApp">GnomeApp</a> *arg1,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3127670"></a><h3>
<a name="GnomeMDI-child-changed"></a>The "child-changed" signal</h3>
<a class="indexterm" name="id3127680"></a><pre class="programlisting">void user_function (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a> *arg1,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3127769"></a><h3>
<a name="GnomeMDI-remove-child"></a>The "remove-child" signal</h3>
<a class="indexterm" name="id3127780"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> user_function (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a href="GnomeMDIChild.html" title="GnomeMDIChild">GnomeMDIChild</a> *arg1,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3127879"></a><h3>
<a name="GnomeMDI-remove-view"></a>The "remove-view" signal</h3>
<a class="indexterm" name="id3127889"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> user_function (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a> *widget,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3127988"></a><h3>
<a name="GnomeMDI-view-changed"></a>The "view-changed" signal</h3>
<a class="indexterm" name="id3127999"></a><pre class="programlisting">void user_function (<a href="GnomeMDI.html" title="GnomeMDI">GnomeMDI</a> *mdi,
<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a> *widget,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>mdi</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
</body>
</html>