| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /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=UTF-8">
<title>gnome-ui-init</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.74.2">
<link rel="home" href="index.html" title="GNOME UI Library Reference Manual">
<link rel="up" href="initialization.html" title="Initialization and Session Management">
<link rel="prev" href="initialization.html" title="Initialization and Session Management">
<link rel="next" href="GnomeClient.html" title="GnomeClient">
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="pt01.html" title="Part I. GNOME UI Library (libgnomeui)">
<link rel="chapter" href="initialization.html" title="Initialization and Session Management">
<link rel="chapter" href="application-mgmt.html" title="Application Management">
<link rel="chapter" href="druids.html" title="Druids">
<link rel="chapter" href="fixme.html" title="Miscellaneous Widgets">
<link rel="chapter" href="miscellaneous.html" title="Miscellaneous Utility Functions and Macros">
<link rel="chapter" href="deprecated.html" title="Deprecated Modules">
<link rel="chapter" href="libgnomeui-objects.html" title="Object Hierarchy">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
<link rel="index" href="ix08.html" title="Index of new symbols in 2.12">
<link rel="index" href="ix09.html" title="Index of new symbols in 2.14">
<link rel="index" href="ix10.html" title="Index of new symbols in 2.16">
</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="initialization.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="initialization.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="GnomeClient.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libgnomeui-gnome-ui-init.synopsis" class="shortcut">Top</a>
|
<a href="#libgnomeui-gnome-ui-init.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry" lang="en">
<a name="libgnomeui-gnome-ui-init"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgnomeui-gnome-ui-init.top_of_page"></a>gnome-ui-init</span></h2>
<p>gnome-ui-init — Parameters (and deprecated functions) for initializing libgnomeui applications.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libgnomeui-gnome-ui-init.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include <libgnomeui/libgnomeui.h>
#define <a class="link" href="libgnomeui-gnome-ui-init.html#LIBGNOMEUI-MODULE--CAPS" title="LIBGNOMEUI_MODULE">LIBGNOMEUI_MODULE</a>
#define <a class="link" href="libgnomeui-gnome-ui-init.html#LIBGNOMEUI-PARAM-CRASH-DIALOG--CAPS" title="LIBGNOMEUI_PARAM_CRASH_DIALOG">LIBGNOMEUI_PARAM_CRASH_DIALOG</a>
#define <a class="link" href="libgnomeui-gnome-ui-init.html#LIBGNOMEUI-PARAM-DISPLAY--CAPS" title="LIBGNOMEUI_PARAM_DISPLAY">LIBGNOMEUI_PARAM_DISPLAY</a>
#define <a class="link" href="libgnomeui-gnome-ui-init.html#LIBGNOMEUI-PARAM-DEFAULT-ICON--CAPS" title="LIBGNOMEUI_PARAM_DEFAULT_ICON">LIBGNOMEUI_PARAM_DEFAULT_ICON</a>
int <a class="link" href="libgnomeui-gnome-ui-init.html#gnome-init-with-popt-table" title="gnome_init_with_popt_table ()">gnome_init_with_popt_table</a> (const char *app_id,
const char *app_version,
int argc,
char **argv,
const struct poptOption *options,
int flags,
poptContext *return_ctx);
#define <a class="link" href="libgnomeui-gnome-ui-init.html#gnome-init" title="gnome_init()">gnome_init</a> (app_id,app_version,argc,argv)
const <a
href="/usr/share/gtk-doc/html/libgnome/libgnome-gnome-program.html#GnomeModuleInfo"
>GnomeModuleInfo</a> * <a class="link" href="libgnomeui-gnome-ui-init.html#gnome-gtk-module-info-get" title="gnome_gtk_module_info_get ()">gnome_gtk_module_info_get</a> (void);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="libgnomeui-gnome-ui-init.description"></a><h2>Description</h2>
<p>
The initialization functions in this module are deprecated in favour of calls
to <a
href="/usr/share/gtk-doc/html/libgnome/libgnome-gnome-program.html#gnome-program-init"
><code class="function">gnome_program_init()</code></a> in the libgnome library.
</p>
<p>
However, this module does provide some extra parameters on top of those already
defined in libgnome that can be passed to the <a
href="/usr/share/gtk-doc/html/libgnome/libgnome-gnome-program.html#gnome-program-init"
><code class="function">gnome_program_init()</code></a> call. These
should enable libgnomeui applications to control their appearance precisely.
</p>
</div>
<div class="refsect1" lang="en">
<a name="libgnomeui-gnome-ui-init.details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="LIBGNOMEUI-MODULE--CAPS"></a><h3>LIBGNOMEUI_MODULE</h3>
<pre class="programlisting">#define LIBGNOMEUI_MODULE libgnomeui_module_info_get()
</pre>
<p>
A module containing all the information required to initialize libgnomeui and
its dependents. This should be passed to the <a
href="/usr/share/gtk-doc/html/libgnome/libgnome-gnome-program.html#gnome-program-init"
><code class="function">gnome_program_init()</code></a> call by
applications using libgnomeui.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="LIBGNOMEUI-PARAM-CRASH-DIALOG--CAPS"></a><h3>LIBGNOMEUI_PARAM_CRASH_DIALOG</h3>
<pre class="programlisting">#define LIBGNOMEUI_PARAM_CRASH_DIALOG "show-crash-dialog"
</pre>
<p>
If set to <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a>, the standard GNOME crash dialog will appear (offering the user
a chance to automatically file a bug report) should the application crash while
running. Application authors will almost never want to change the default value
of this parameter (<a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE--CAPS"
><code class="literal">FALSE</code></a>). The user may change it however by setting the
<code class="envar">GNOME_DISABLE_CRASH_DIALOG</code> environment variable or passing
<code class="literal">--disable-crash-dialog</code> on the command line.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="LIBGNOMEUI-PARAM-DISPLAY--CAPS"></a><h3>LIBGNOMEUI_PARAM_DISPLAY</h3>
<pre class="programlisting">#define LIBGNOMEUI_PARAM_DISPLAY "display"
</pre>
<p>
Initially set to the value of the <code class="envar">DISPLAY</code> environment variable
or the <code class="literal">--display</code> value passed on the command line, this
parameter determines which X display the application will start on.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="LIBGNOMEUI-PARAM-DEFAULT-ICON--CAPS"></a><h3>LIBGNOMEUI_PARAM_DEFAULT_ICON</h3>
<pre class="programlisting">#define LIBGNOMEUI_PARAM_DEFAULT_ICON "default-icon"
</pre>
<p>
Set to the full path of the application's default icon. This can only be set by
the application.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gnome-init-with-popt-table"></a><h3>gnome_init_with_popt_table ()</h3>
<pre class="programlisting">int gnome_init_with_popt_table (const char *app_id,
const char *app_version,
int argc,
char **argv,
const struct poptOption *options,
int flags,
poptContext *return_ctx);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_init_with_popt_table</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Initializes the application. This sets up all of the GNOME
internals and prepares them (imlib, gdk, session-management, triggers,
sound, user preferences).
</p>
<p>
Unlike <a class="link" href="libgnomeui-gnome-ui-init.html#gnome-init" title="gnome_init()"><span class="type">gnome_init</span></a>, with <a class="link" href="libgnomeui-gnome-ui-init.html#gnome-init-with-popt-table" title="gnome_init_with_popt_table ()"><span class="type">gnome_init_with_popt_table</span></a> you can provide
a table of popt options (popt is the command line argument parsing
library).
</p>
<p>
Deprecated, use <a
href="/usr/share/gtk-doc/html/libgnome/libgnome-gnome-program.html#gnome-program-init"
><span class="type">gnome_program_init</span></a> with the LIBGNOMEUI_MODULE.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
<td> Application id.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>app_version</code></em> :</span></p></td>
<td> Application version.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>argc</code></em> :</span></p></td>
<td> argument count (for example argc as received by main)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>argv</code></em> :</span></p></td>
<td> argument vector (for example argv as received by main)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
<td> poptOption table with options to parse
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td> popt flags.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>return_ctx</code></em> :</span></p></td>
<td> if non-NULL, the popt context is returned here.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> 0 (always)
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gnome-init"></a><h3>gnome_init()</h3>
<pre class="programlisting">#define gnome_init(app_id,app_version,argc,argv)</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_init</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This is identical to a call to gnome_init_with_popt_table with <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a> passed in
as the poptOption table.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
<td>Application id.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>app_version</code></em> :</span></p></td>
<td>Application version.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>argc</code></em> :</span></p></td>
<td>Argument count (for example, argc as received by the main function).
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>argv</code></em> :</span></p></td>
<td>Argument vector (for example, argv as received by the main function).
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gnome-gtk-module-info-get"></a><h3>gnome_gtk_module_info_get ()</h3>
<pre class="programlisting">const <a
href="/usr/share/gtk-doc/html/libgnome/libgnome-gnome-program.html#GnomeModuleInfo"
>GnomeModuleInfo</a> * gnome_gtk_module_info_get (void);</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
</td>
</tr></tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.11</div>
</body>
</html>