| 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>GnomeIconLookup</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="fixme.html" title="Miscellaneous Widgets">
<link rel="prev" href="GnomeIconEntry.html" title="GnomeIconEntry">
<link rel="next" href="GnomeIconSelection.html" title="GnomeIconSelection">
<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="GnomeIconEntry.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="fixme.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="GnomeIconSelection.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-GnomeIconLookup.synopsis" class="shortcut">Top</a>
|
<a href="#libgnomeui-GnomeIconLookup.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry" lang="en">
<a name="libgnomeui-GnomeIconLookup"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgnomeui-GnomeIconLookup.top_of_page"></a>GnomeIconLookup</span></h2>
<p>GnomeIconLookup</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libgnomeui-GnomeIconLookup.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include <libgnomeui/libgnomeui.h>
enum <a class="link" href="libgnomeui-GnomeIconLookup.html#GnomeIconLookupFlags" title="enum GnomeIconLookupFlags">GnomeIconLookupFlags</a>;
enum <a class="link" href="libgnomeui-GnomeIconLookup.html#GnomeIconLookupResultFlags" title="enum GnomeIconLookupResultFlags">GnomeIconLookupResultFlags</a>;
char * <a class="link" href="libgnomeui-GnomeIconLookup.html#gnome-icon-lookup" title="gnome_icon_lookup ()">gnome_icon_lookup</a> (GtkIconTheme *icon_theme,
<a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="GnomeThumbnailFactory">GnomeThumbnailFactory</a> *thumbnail_factory,
const char *file_uri,
const char *custom_icon,
<a
href="/usr/share/gtk-doc/html/gnome-vfs-2.0/gnome-vfs-20-gnome-vfs-file-info.html#GnomeVFSFileInfo"
>GnomeVFSFileInfo</a> *file_info,
const char *mime_type,
<a class="link" href="libgnomeui-GnomeIconLookup.html#GnomeIconLookupFlags" title="enum GnomeIconLookupFlags">GnomeIconLookupFlags</a> flags,
<a class="link" href="libgnomeui-GnomeIconLookup.html#GnomeIconLookupResultFlags" title="enum GnomeIconLookupResultFlags">GnomeIconLookupResultFlags</a> *result);
char * <a class="link" href="libgnomeui-GnomeIconLookup.html#gnome-icon-lookup-sync" title="gnome_icon_lookup_sync ()">gnome_icon_lookup_sync</a> (GtkIconTheme *icon_theme,
<a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="GnomeThumbnailFactory">GnomeThumbnailFactory</a> *thumbnail_factory,
const char *file_uri,
const char *custom_icon,
<a class="link" href="libgnomeui-GnomeIconLookup.html#GnomeIconLookupFlags" title="enum GnomeIconLookupFlags">GnomeIconLookupFlags</a> flags,
<a class="link" href="libgnomeui-GnomeIconLookup.html#GnomeIconLookupResultFlags" title="enum GnomeIconLookupResultFlags">GnomeIconLookupResultFlags</a> *result);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="libgnomeui-GnomeIconLookup.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1" lang="en">
<a name="libgnomeui-GnomeIconLookup.details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="GnomeIconLookupFlags"></a><h3>enum GnomeIconLookupFlags</h3>
<pre class="programlisting">typedef enum {
GNOME_ICON_LOOKUP_FLAGS_NONE = 0,
GNOME_ICON_LOOKUP_FLAGS_EMBEDDING_TEXT = 1<<0,
GNOME_ICON_LOOKUP_FLAGS_SHOW_SMALL_IMAGES_AS_THEMSELVES = 1<<1,
GNOME_ICON_LOOKUP_FLAGS_ALLOW_SVG_AS_THEMSELVES = 1<<2
} GnomeIconLookupFlags;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GnomeIconLookupResultFlags"></a><h3>enum GnomeIconLookupResultFlags</h3>
<pre class="programlisting">typedef enum {
GNOME_ICON_LOOKUP_RESULT_FLAGS_NONE = 0,
GNOME_ICON_LOOKUP_RESULT_FLAGS_THUMBNAIL = 1<<0
} GnomeIconLookupResultFlags;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gnome-icon-lookup"></a><h3>gnome_icon_lookup ()</h3>
<pre class="programlisting">char * gnome_icon_lookup (GtkIconTheme *icon_theme,
<a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="GnomeThumbnailFactory">GnomeThumbnailFactory</a> *thumbnail_factory,
const char *file_uri,
const char *custom_icon,
<a
href="/usr/share/gtk-doc/html/gnome-vfs-2.0/gnome-vfs-20-gnome-vfs-file-info.html#GnomeVFSFileInfo"
>GnomeVFSFileInfo</a> *file_info,
const char *mime_type,
<a class="link" href="libgnomeui-GnomeIconLookup.html#GnomeIconLookupFlags" title="enum GnomeIconLookupFlags">GnomeIconLookupFlags</a> flags,
<a class="link" href="libgnomeui-GnomeIconLookup.html#GnomeIconLookupResultFlags" title="enum GnomeIconLookupResultFlags">GnomeIconLookupResultFlags</a> *result);</pre>
<p>
This function tries to locate an icon in <em class="parameter"><code>icon_theme</code></em> that can be used
to represent the file passed. It can optionally also look for existing
thumbnails. It does no I/O, so the lookup should be relatively fast.
</p>
<p>
If you don't know any information about the file already you can use
<a class="link" href="libgnomeui-GnomeIconLookup.html#gnome-icon-lookup-sync" title="gnome_icon_lookup_sync ()"><code class="function">gnome_icon_lookup_sync()</code></a> which gets this information using gnome-vfs.
</p>
<p>
For backwards compatibility, this function also accepts a GnomeIconTheme
instead of a GtkIconTheme.
</p>
<p>
The following <em class="parameter"><code>flags</code></em> are valid:
</p>
<p>
GNOME_ICON_LOOKUP_FLAGS_EMBEDDING_TEXT - Return the text icon for scripts.
This is useful if you do text embedding in the icons.
</p>
<p>
GNOME_ICON_LOOKUP_FLAGS_SHOW_SMALL_IMAGES_AS_THEMSELVES - Return the
filename of the filename itself for small images. Only availible if you
pass a thumbnail_factory.
</p>
<p>
Possible <em class="parameter"><code>result</code></em> flags:
</p>
<p>
GNOME_ICON_LOOKUP_RESULT_FLAGS_THUMBNAIL - The returned file is a thumbnail.</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>icon_theme</code></em> :</span></p></td>
<td> a <span class="type">GtkIconTheme</span>, or (deprecated) a <a class="link" href="libgnomeui-GnomeIconTheme.html#GnomeIconTheme" title="GnomeIconTheme"><span class="type">GnomeIconTheme</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>thumbnail_factory</code></em> :</span></p></td>
<td> an optional <a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a> used to look up thumbnails
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>file_uri</code></em> :</span></p></td>
<td> the uri of the file
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>custom_icon</code></em> :</span></p></td>
<td> optionally the name of a custom icon to try
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>file_info</code></em> :</span></p></td>
<td> information about the file from <a
href="/usr/share/gtk-doc/html/gnome-vfs-2.0/gnome-vfs-20-gnome-vfs-file-info-ops.html#gnome-vfs-get-file-info"
><code class="function">gnome_vfs_get_file_info()</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
<td> the mime type of the icon
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td> flags that affect the result of the lookup
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
<td> optionally result flags of the lookups are stored here
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The name of an icon or an absolute filename of an image to
use for the file.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gnome-icon-lookup-sync"></a><h3>gnome_icon_lookup_sync ()</h3>
<pre class="programlisting">char * gnome_icon_lookup_sync (GtkIconTheme *icon_theme,
<a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="GnomeThumbnailFactory">GnomeThumbnailFactory</a> *thumbnail_factory,
const char *file_uri,
const char *custom_icon,
<a class="link" href="libgnomeui-GnomeIconLookup.html#GnomeIconLookupFlags" title="enum GnomeIconLookupFlags">GnomeIconLookupFlags</a> flags,
<a class="link" href="libgnomeui-GnomeIconLookup.html#GnomeIconLookupResultFlags" title="enum GnomeIconLookupResultFlags">GnomeIconLookupResultFlags</a> *result);</pre>
<p>
This function tries to locate an icon in <em class="parameter"><code>icon_theme</code></em> that can be used
to represent the file passed. See <a class="link" href="libgnomeui-GnomeIconLookup.html#gnome-icon-lookup" title="gnome_icon_lookup ()"><code class="function">gnome_icon_lookup()</code></a> for more information.</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>icon_theme</code></em> :</span></p></td>
<td> a <span class="type">GtkIconTheme</span>, or (deprecated) a <a class="link" href="libgnomeui-GnomeIconTheme.html#GnomeIconTheme" title="GnomeIconTheme"><span class="type">GnomeIconTheme</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>thumbnail_factory</code></em> :</span></p></td>
<td> an optional <a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a> used to look up thumbnails
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>file_uri</code></em> :</span></p></td>
<td> the uri of the file
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>custom_icon</code></em> :</span></p></td>
<td> optionally the name of a custom icon to try
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td> flags that affect the result of the lookup
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
<td> optionally result flags of the lookups are stored here
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The name of an icon or an absolute filename of an image to
use for the file.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.11</div>
</body>
</html>