File: //usr/local/ssl/share/gtk-doc/html/libbonoboui/libbonoboui-bonobo-file-selector-util.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>bonobo-file-selector-util</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="LibBonoboUI API Reference Manual">
<link rel="up" href="bonobo-support-utilities.html" title="Supporting Classes">
<link rel="prev" href="libbonoboui-bonobo-selector-widget.html" title="bonobo-selector-widget">
<link rel="next" href="libbonoboui-bonobo-a11y.html" title="bonobo-a11y">
<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="Object Hierarchy">
<link rel="chapter" href="bonobo-controls.html" title="Controls">
<link rel="chapter" href="bonobo-ui.html" title="Bonobo UI">
<link rel="chapter" href="bonobo-support-utilities.html" title="Supporting Classes">
</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="libbonoboui-bonobo-selector-widget.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="bonobo-support-utilities.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">LibBonoboUI API Reference Manual</th>
<td><a accesskey="n" href="libbonoboui-bonobo-a11y.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="#id2835018" class="shortcut">Top</a>
 | 
<a href="#id2835200" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="libbonoboui-bonobo-file-selector-util"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2835018"></a><span class="refentrytitle">bonobo-file-selector-util</span>
</h2>
<p>bonobo-file-selector-util — </p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">
char* <a href="libbonoboui-bonobo-file-selector-util.html#bonobo-file-selector-open">bonobo_file_selector_open</a> (<a
href="/usr/share/gtk-doc/html/gtk/GtkWindow.html"
>GtkWindow</a> *parent,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> enable_vfs,
const char *title,
const char *mime_types,
const char *default_path);
char** <a href="libbonoboui-bonobo-file-selector-util.html#bonobo-file-selector-open-multi">bonobo_file_selector_open_multi</a> (<a
href="/usr/share/gtk-doc/html/gtk/GtkWindow.html"
>GtkWindow</a> *parent,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> enable_vfs,
const char *title,
const char *mime_types,
const char *default_path);
char* <a href="libbonoboui-bonobo-file-selector-util.html#bonobo-file-selector-save">bonobo_file_selector_save</a> (<a
href="/usr/share/gtk-doc/html/gtk/GtkWindow.html"
>GtkWindow</a> *parent,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> enable_vfs,
const char *title,
const char *mime_types,
const char *default_path,
const char *default_filename);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2835200"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2835214"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2835224"></a><h3>
<a name="bonobo-file-selector-open"></a>bonobo_file_selector_open ()</h3>
<a class="indexterm" name="id2835238"></a><pre class="programlisting">char* bonobo_file_selector_open (<a
href="/usr/share/gtk-doc/html/gtk/GtkWindow.html"
>GtkWindow</a> *parent,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> enable_vfs,
const char *title,
const char *mime_types,
const char *default_path);</pre>
<p>
Creates and shows a modal open file dialog, waiting for the user to
select a file or cancel before returning.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>parent</code></em> :</span></td>
<td> optional window the dialog should be a transient for.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>enable_vfs</code></em> :</span></td>
<td> if FALSE, restrict files to local paths.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>title</code></em> :</span></td>
<td> optional window title to use
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>mime_types</code></em> :</span></td>
<td> optional list of mime types to provide filters for.
These are of the form: "HTML Files:text/html|Text Files:text/html,text/plain"
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>default_path</code></em> :</span></td>
<td> optional directory to start in
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the URI (or plain file path if <em class="parameter"><code>enable_vfs</code></em> is FALSE)
of the file selected, or NULL if cancel was pressed.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2835397"></a><h3>
<a name="bonobo-file-selector-open-multi"></a>bonobo_file_selector_open_multi ()</h3>
<a class="indexterm" name="id2835411"></a><pre class="programlisting">char** bonobo_file_selector_open_multi (<a
href="/usr/share/gtk-doc/html/gtk/GtkWindow.html"
>GtkWindow</a> *parent,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> enable_vfs,
const char *title,
const char *mime_types,
const char *default_path);</pre>
<p>
Creates and shows a modal open file dialog, waiting for the user to
select a file or cancel before returning.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>parent</code></em> :</span></td>
<td> optional window the dialog should be a transient for
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>enable_vfs</code></em> :</span></td>
<td> if FALSE, restrict files to local paths.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>title</code></em> :</span></td>
<td> optional window title to use
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>mime_types</code></em> :</span></td>
<td> optional list of mime types to provide filters for.
These are of the form: "HTML Files:text/html|Text Files:text/html,text/plain"
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>default_path</code></em> :</span></td>
<td> optional directory to start in
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a NULL terminated string array of the selected URIs
(or local file paths if <em class="parameter"><code>enable_vfs</code></em> is FALSE), or NULL if cancel
was pressed.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2835571"></a><h3>
<a name="bonobo-file-selector-save"></a>bonobo_file_selector_save ()</h3>
<a class="indexterm" name="id2835585"></a><pre class="programlisting">char* bonobo_file_selector_save (<a
href="/usr/share/gtk-doc/html/gtk/GtkWindow.html"
>GtkWindow</a> *parent,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> enable_vfs,
const char *title,
const char *mime_types,
const char *default_path,
const char *default_filename);</pre>
<p>
Creates and shows a modal save file dialog, waiting for the user to
select a file or cancel before returning.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>parent</code></em> :</span></td>
<td> optional window the dialog should be a transient for
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>enable_vfs</code></em> :</span></td>
<td> if FALSE, restrict files to local paths.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>title</code></em> :</span></td>
<td> optional window title to use
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>mime_types</code></em> :</span></td>
<td> optional list of mime types to provide filters for.
These are of the form: "HTML Files:text/html|Text Files:text/html,text/plain"
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>default_path</code></em> :</span></td>
<td> optional directory to start in
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>default_filename</code></em> :</span></td>
<td> optional file name to default to
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the URI (or plain file path if <em class="parameter"><code>enable_vfs</code></em> is FALSE)
of the file selected, or NULL if cancel was pressed.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
</body>
</html>