<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>GtkFileList</title> <meta name="generator" content="DocBook XSL Stylesheets V1.75.2"> <link rel="home" href="index.html" title="GtkExtra2 Reference Manual"> <link rel="up" href="ch01.html" title="Libraray Reference"> <link rel="prev" href="gtkextra-GtkPlot3D.html" title="GtkPlot3D"> <link rel="next" href="gtkextra-GtkPlotDT.html" title="GtkPlotDT"> <meta name="generator" content="GTK-Doc V1.11 (XML mode)"> <link rel="stylesheet" href="style.css" type="text/css"> <link rel="chapter" href="ch01.html" title="Libraray Reference"> <link rel="chapter" href="objecttree.html" title="Object Hierarchy"> <link rel="index" href="api-index.html" title="API Index"> </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="gtkextra-GtkPlot3D.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> <td><a accesskey="u" href="ch01.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">GtkExtra2 Reference Manual</th> <td><a accesskey="n" href="gtkextra-GtkPlotDT.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> </tr> <tr><td colspan="5" class="shortcuts"> <a href="#gtkextra-GtkFileList.synopsis" class="shortcut">Top</a> | <a href="#gtkextra-GtkFileList.description" class="shortcut">Description</a> </td></tr> </table> <div class="refentry" title="GtkFileList"> <a name="gtkextra-GtkFileList"></a><div class="titlepage"></div> <div class="refnamediv"><table width="100%"><tr> <td valign="top"> <h2><span class="refentrytitle"><a name="gtkextra-GtkFileList.top_of_page"></a>GtkFileList</span></h2> <p>GtkFileList</p> </td> <td valign="top" align="right"></td> </tr></table></div> <div class="refsynopsisdiv" title="Synopsis"> <a name="gtkextra-GtkFileList.synopsis"></a><h2>Synopsis</h2> <pre class="synopsis"> #include <gtkextra.h> <a class="link" href="gtkextra-GtkFileList.html#GtkFileListItem" title="GtkFileListItem">GtkFileListItem</a>; <a class="link" href="gtkextra-GtkFileList.html#GtkFileListType" title="GtkFileListType">GtkFileListType</a>; GtkWidget* <a class="link" href="gtkextra-GtkFileList.html#gtk-file-list-new" title="gtk_file_list_new ()">gtk_file_list_new</a> (<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint" >guint</a> icon_width, <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint" >gint</a> mode, const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar" >gchar</a> *path); void <a class="link" href="gtkextra-GtkFileList.html#gtk-file-list-construct" title="gtk_file_list_construct ()">gtk_file_list_construct</a> (GtkFileList *file_list, <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint" >guint</a> icon_width, <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint" >gint</a> mode, const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar" >gchar</a> *path); void <a class="link" href="gtkextra-GtkFileList.html#gtk-file-list-set-filter" title="gtk_file_list_set_filter ()">gtk_file_list_set_filter</a> (GtkFileList *file_list, const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar" >gchar</a> *filter); <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean" >gboolean</a> <a class="link" href="gtkextra-GtkFileList.html#gtk-file-list-open-dir" title="gtk_file_list_open_dir ()">gtk_file_list_open_dir</a> (GtkFileList *file_list, const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar" >gchar</a> *path); const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar" >gchar</a>* <a class="link" href="gtkextra-GtkFileList.html#gtk-file-list-get-path" title="gtk_file_list_get_path ()">gtk_file_list_get_path</a> (GtkFileList *file_list); const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar" >gchar</a>* <a class="link" href="gtkextra-GtkFileList.html#gtk-file-list-get-filename" title="gtk_file_list_get_filename ()">gtk_file_list_get_filename</a> (GtkFileList *file_list); <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint" >gint</a> <a class="link" href="gtkextra-GtkFileList.html#gtk-file-list-get-filetype" title="gtk_file_list_get_filetype ()">gtk_file_list_get_filetype</a> (GtkFileList *file_list); <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint" >gint</a> <a class="link" href="gtkextra-GtkFileList.html#gtk-file-list-add-type" title="gtk_file_list_add_type ()">gtk_file_list_add_type</a> (GtkFileList *file_list, const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar" >gchar</a> **pixmap_data); <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint" >gint</a> <a class="link" href="gtkextra-GtkFileList.html#gtk-file-list-add-type-with-pixmap" title="gtk_file_list_add_type_with_pixmap ()">gtk_file_list_add_type_with_pixmap</a> (GtkFileList *file_list, GdkPixmap *pixmap, GdkBitmap *mask); void <a class="link" href="gtkextra-GtkFileList.html#gtk-file-list-add-type-filter" title="gtk_file_list_add_type_filter ()">gtk_file_list_add_type_filter</a> (GtkFileList *file_list, <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint" >gint</a> type, const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar" >gchar</a> *filter); </pre> </div> <div class="refsect1" title="Description"> <a name="gtkextra-GtkFileList.description"></a><h2>Description</h2> <p> </p> </div> <div class="refsect1" title="Details"> <a name="gtkextra-GtkFileList.details"></a><h2>Details</h2> <div class="refsect2" title="GtkFileListItem"> <a name="GtkFileListItem"></a><h3>GtkFileListItem</h3> <pre class="programlisting">typedef struct { gchar *file_name; gint type; gint is_dir; gint is_link; } GtkFileListItem; </pre> <p> </p> </div> <hr> <div class="refsect2" title="GtkFileListType"> <a name="GtkFileListType"></a><h3>GtkFileListType</h3> <pre class="programlisting">typedef struct { gchar *extension; gint type; } GtkFileListType; </pre> <p> </p> </div> <hr> <div class="refsect2" title="gtk_file_list_new ()"> <a name="gtk-file-list-new"></a><h3>gtk_file_list_new ()</h3> <pre class="programlisting">GtkWidget* gtk_file_list_new (<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint" >guint</a> icon_width, <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint" >gint</a> mode, const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar" >gchar</a> *path);</pre> <p> </p> <div class="variablelist"><table border="0"> <col align="left" valign="top"> <tbody> <tr> <td><p><span class="term"><em class="parameter"><code>icon_width</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> <td> </td> </tr> </tbody> </table></div> </div> <hr> <div class="refsect2" title="gtk_file_list_construct ()"> <a name="gtk-file-list-construct"></a><h3>gtk_file_list_construct ()</h3> <pre class="programlisting">void gtk_file_list_construct (GtkFileList *file_list, <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint" >guint</a> icon_width, <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint" >gint</a> mode, const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar" >gchar</a> *path);</pre> <p> </p> <div class="variablelist"><table border="0"> <col align="left" valign="top"> <tbody> <tr> <td><p><span class="term"><em class="parameter"><code>file_list</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><em class="parameter"><code>icon_width</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td> <td> </td> </tr> </tbody> </table></div> </div> <hr> <div class="refsect2" title="gtk_file_list_set_filter ()"> <a name="gtk-file-list-set-filter"></a><h3>gtk_file_list_set_filter ()</h3> <pre class="programlisting">void gtk_file_list_set_filter (GtkFileList *file_list, const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar" >gchar</a> *filter);</pre> <p> </p> <div class="variablelist"><table border="0"> <col align="left" valign="top"> <tbody> <tr> <td><p><span class="term"><em class="parameter"><code>file_list</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><em class="parameter"><code>filter</code></em> :</span></p></td> <td> </td> </tr> </tbody> </table></div> </div> <hr> <div class="refsect2" title="gtk_file_list_open_dir ()"> <a name="gtk-file-list-open-dir"></a><h3>gtk_file_list_open_dir ()</h3> <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean" >gboolean</a> gtk_file_list_open_dir (GtkFileList *file_list, const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar" >gchar</a> *path);</pre> <p> </p> <div class="variablelist"><table border="0"> <col align="left" valign="top"> <tbody> <tr> <td><p><span class="term"><em class="parameter"><code>file_list</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> <td> </td> </tr> </tbody> </table></div> </div> <hr> <div class="refsect2" title="gtk_file_list_get_path ()"> <a name="gtk-file-list-get-path"></a><h3>gtk_file_list_get_path ()</h3> <pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar" >gchar</a>* gtk_file_list_get_path (GtkFileList *file_list);</pre> <p> </p> <div class="variablelist"><table border="0"> <col align="left" valign="top"> <tbody> <tr> <td><p><span class="term"><em class="parameter"><code>file_list</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> <td> </td> </tr> </tbody> </table></div> </div> <hr> <div class="refsect2" title="gtk_file_list_get_filename ()"> <a name="gtk-file-list-get-filename"></a><h3>gtk_file_list_get_filename ()</h3> <pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar" >gchar</a>* gtk_file_list_get_filename (GtkFileList *file_list);</pre> <p> </p> <div class="variablelist"><table border="0"> <col align="left" valign="top"> <tbody> <tr> <td><p><span class="term"><em class="parameter"><code>file_list</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> <td> </td> </tr> </tbody> </table></div> </div> <hr> <div class="refsect2" title="gtk_file_list_get_filetype ()"> <a name="gtk-file-list-get-filetype"></a><h3>gtk_file_list_get_filetype ()</h3> <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint" >gint</a> gtk_file_list_get_filetype (GtkFileList *file_list);</pre> <p> </p> <div class="variablelist"><table border="0"> <col align="left" valign="top"> <tbody> <tr> <td><p><span class="term"><em class="parameter"><code>file_list</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> <td> </td> </tr> </tbody> </table></div> </div> <hr> <div class="refsect2" title="gtk_file_list_add_type ()"> <a name="gtk-file-list-add-type"></a><h3>gtk_file_list_add_type ()</h3> <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint" >gint</a> gtk_file_list_add_type (GtkFileList *file_list, const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar" >gchar</a> **pixmap_data);</pre> <p> </p> <div class="variablelist"><table border="0"> <col align="left" valign="top"> <tbody> <tr> <td><p><span class="term"><em class="parameter"><code>file_list</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><em class="parameter"><code>pixmap_data</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> <td> </td> </tr> </tbody> </table></div> </div> <hr> <div class="refsect2" title="gtk_file_list_add_type_with_pixmap ()"> <a name="gtk-file-list-add-type-with-pixmap"></a><h3>gtk_file_list_add_type_with_pixmap ()</h3> <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint" >gint</a> gtk_file_list_add_type_with_pixmap (GtkFileList *file_list, GdkPixmap *pixmap, GdkBitmap *mask);</pre> <p> </p> <div class="variablelist"><table border="0"> <col align="left" valign="top"> <tbody> <tr> <td><p><span class="term"><em class="parameter"><code>file_list</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><em class="parameter"><code>pixmap</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> <td> </td> </tr> </tbody> </table></div> </div> <hr> <div class="refsect2" title="gtk_file_list_add_type_filter ()"> <a name="gtk-file-list-add-type-filter"></a><h3>gtk_file_list_add_type_filter ()</h3> <pre class="programlisting">void gtk_file_list_add_type_filter (GtkFileList *file_list, <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint" >gint</a> type, const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar" >gchar</a> *filter);</pre> <p> </p> <div class="variablelist"><table border="0"> <col align="left" valign="top"> <tbody> <tr> <td><p><span class="term"><em class="parameter"><code>file_list</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td> <td> </td> </tr> <tr> <td><p><span class="term"><em class="parameter"><code>filter</code></em> :</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>