This file is indexed.

/usr/share/doc/libgnomeui-doc/html/libgnomeui-GnomeThumbnail.html is in libgnomeui-doc 2.24.5-3.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GnomeThumbnail</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<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="GnomeIconSelection.html" title="GnomeIconSelection">
<link rel="next" href="miscellaneous.html" title="Miscellaneous Utility Functions and Macros">
<meta name="generator" content="GTK-Doc V1.16 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</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="GnomeIconSelection.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="miscellaneous.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-GnomeThumbnail.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#libgnomeui-GnomeThumbnail.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="libgnomeui-GnomeThumbnail"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgnomeui-GnomeThumbnail.top_of_page"></a>GnomeThumbnail</span></h2>
<p>GnomeThumbnail</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libgnomeui-GnomeThumbnail.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;libgnomeui/libgnomeui.h&gt;

struct              <a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory">GnomeThumbnailFactory</a>;
enum                <a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailSize" title="enum GnomeThumbnailSize">GnomeThumbnailSize</a>;
struct              <a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactoryClass" title="struct GnomeThumbnailFactoryClass">GnomeThumbnailFactoryClass</a>;
<a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="returnvalue">GnomeThumbnailFactory</span></a> * <a class="link" href="libgnomeui-GnomeThumbnail.html#gnome-thumbnail-factory-new" title="gnome_thumbnail_factory_new ()">gnome_thumbnail_factory_new</a>     (<em class="parameter"><code><a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailSize" title="enum GnomeThumbnailSize"><span class="type">GnomeThumbnailSize</span></a> size</code></em>);
<span class="returnvalue">char</span> *                  <a class="link" href="libgnomeui-GnomeThumbnail.html#gnome-thumbnail-factory-lookup" title="gnome_thumbnail_factory_lookup ()">gnome_thumbnail_factory_lookup</a>  (<em class="parameter"><code><a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a> *factory</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
                                                         <em class="parameter"><code><span class="type">time_t</span> mtime</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgnomeui-GnomeThumbnail.html#gnome-thumbnail-factory-has-valid-failed-thumbnail" title="gnome_thumbnail_factory_has_valid_failed_thumbnail ()">gnome_thumbnail_factory_has_valid_failed_thumbnail</a>
                                                        (<em class="parameter"><code><a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a> *factory</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
                                                         <em class="parameter"><code><span class="type">time_t</span> mtime</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgnomeui-GnomeThumbnail.html#gnome-thumbnail-factory-can-thumbnail" title="gnome_thumbnail_factory_can_thumbnail ()">gnome_thumbnail_factory_can_thumbnail</a>
                                                        (<em class="parameter"><code><a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a> *factory</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *mime_type</code></em>,
                                                         <em class="parameter"><code><span class="type">time_t</span> mtime</code></em>);
<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *             <a class="link" href="libgnomeui-GnomeThumbnail.html#gnome-thumbnail-factory-generate-thumbnail" title="gnome_thumbnail_factory_generate_thumbnail ()">gnome_thumbnail_factory_generate_thumbnail</a>
                                                        (<em class="parameter"><code><a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a> *factory</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *mime_type</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libgnomeui-GnomeThumbnail.html#gnome-thumbnail-factory-save-thumbnail" title="gnome_thumbnail_factory_save_thumbnail ()">gnome_thumbnail_factory_save_thumbnail</a>
                                                        (<em class="parameter"><code><a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a> *factory</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *thumbnail</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
                                                         <em class="parameter"><code><span class="type">time_t</span> original_mtime</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libgnomeui-GnomeThumbnail.html#gnome-thumbnail-factory-create-failed-thumbnail" title="gnome_thumbnail_factory_create_failed_thumbnail ()">gnome_thumbnail_factory_create_failed_thumbnail</a>
                                                        (<em class="parameter"><code><a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a> *factory</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
                                                         <em class="parameter"><code><span class="type">time_t</span> mtime</code></em>);
<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *         <a class="link" href="libgnomeui-GnomeThumbnail.html#gnome-thumbnail-scale-down-pixbuf" title="gnome_thumbnail_scale_down_pixbuf ()">gnome_thumbnail_scale_down_pixbuf</a>   (<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> dest_width</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> dest_height</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgnomeui-GnomeThumbnail.html#gnome-thumbnail-has-uri" title="gnome_thumbnail_has_uri ()">gnome_thumbnail_has_uri</a>             (<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgnomeui-GnomeThumbnail.html#gnome-thumbnail-is-valid" title="gnome_thumbnail_is_valid ()">gnome_thumbnail_is_valid</a>            (<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
                                                         <em class="parameter"><code><span class="type">time_t</span> mtime</code></em>);
<span class="returnvalue">char</span> *              <a class="link" href="libgnomeui-GnomeThumbnail.html#gnome-thumbnail-md5" title="gnome_thumbnail_md5 ()">gnome_thumbnail_md5</a>                 (<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);
<span class="returnvalue">char</span> *              <a class="link" href="libgnomeui-GnomeThumbnail.html#gnome-thumbnail-path-for-uri" title="gnome_thumbnail_path_for_uri ()">gnome_thumbnail_path_for_uri</a>        (<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailSize" title="enum GnomeThumbnailSize"><span class="type">GnomeThumbnailSize</span></a> size</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libgnomeui-GnomeThumbnail.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1">
<a name="libgnomeui-GnomeThumbnail.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GnomeThumbnailFactory"></a><h3>struct GnomeThumbnailFactory</h3>
<pre class="programlisting">struct GnomeThumbnailFactory {
	GObject parent;
	
	GnomeThumbnailFactoryPrivate *priv;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GnomeThumbnailSize"></a><h3>enum GnomeThumbnailSize</h3>
<pre class="programlisting">typedef enum {
  GNOME_THUMBNAIL_SIZE_NORMAL,
  GNOME_THUMBNAIL_SIZE_LARGE
} GnomeThumbnailSize;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GnomeThumbnailFactoryClass"></a><h3>struct GnomeThumbnailFactoryClass</h3>
<pre class="programlisting">struct GnomeThumbnailFactoryClass {
	GObjectClass parent;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gnome-thumbnail-factory-new"></a><h3>gnome_thumbnail_factory_new ()</h3>
<pre class="programlisting"><a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="returnvalue">GnomeThumbnailFactory</span></a> * gnome_thumbnail_factory_new     (<em class="parameter"><code><a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailSize" title="enum GnomeThumbnailSize"><span class="type">GnomeThumbnailSize</span></a> size</code></em>);</pre>
<p>
Creates a new <a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a>.
</p>
<p>
This function must be called on the main thread.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>The thumbnail size to use</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gnome-thumbnail-factory-lookup"></a><h3>gnome_thumbnail_factory_lookup ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *                  gnome_thumbnail_factory_lookup  (<em class="parameter"><code><a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a> *factory</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
                                                         <em class="parameter"><code><span class="type">time_t</span> mtime</code></em>);</pre>
<p>
Tries to locate an existing thumbnail for the file specified.
</p>
<p>
Usage of this function is threadsafe.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>factory</code></em> :</span></p></td>
<td>a <a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>the uri of a file</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mtime</code></em> :</span></p></td>
<td>the mtime of the file</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The absolute path of the thumbnail, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if none exist.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gnome-thumbnail-factory-has-valid-failed-thumbnail"></a><h3>gnome_thumbnail_factory_has_valid_failed_thumbnail ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gnome_thumbnail_factory_has_valid_failed_thumbnail
                                                        (<em class="parameter"><code><a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a> *factory</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
                                                         <em class="parameter"><code><span class="type">time_t</span> mtime</code></em>);</pre>
<p>
Tries to locate an failed thumbnail for the file specified. Writing
and looking for failed thumbnails is important to avoid to try to
thumbnail e.g. broken images several times.
</p>
<p>
Usage of this function is threadsafe.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>factory</code></em> :</span></p></td>
<td>a <a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>the uri of a file</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mtime</code></em> :</span></p></td>
<td>the mtime of the file</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if there is a failed thumbnail for the file.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gnome-thumbnail-factory-can-thumbnail"></a><h3>gnome_thumbnail_factory_can_thumbnail ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gnome_thumbnail_factory_can_thumbnail
                                                        (<em class="parameter"><code><a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a> *factory</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *mime_type</code></em>,
                                                         <em class="parameter"><code><span class="type">time_t</span> mtime</code></em>);</pre>
<p>
Returns TRUE if this GnomeIconFactory can (at least try) to thumbnail
this file. Thumbnails or files with failed thumbnails won't be thumbnailed.
</p>
<p>
Usage of this function is threadsafe.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>factory</code></em> :</span></p></td>
<td>a <a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>the uri of a file</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 file</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mtime</code></em> :</span></p></td>
<td>the mtime of the file</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if the file can be thumbnailed.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gnome-thumbnail-factory-generate-thumbnail"></a><h3>gnome_thumbnail_factory_generate_thumbnail ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *             gnome_thumbnail_factory_generate_thumbnail
                                                        (<em class="parameter"><code><a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a> *factory</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *mime_type</code></em>);</pre>
<p>
Tries to generate a thumbnail for the specified file. If it succeeds
it returns a pixbuf that can be used as a thumbnail.
</p>
<p>
Usage of this function is threadsafe.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>factory</code></em> :</span></p></td>
<td>a <a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>the uri of a file</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 file</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>thumbnail pixbuf if thumbnailing succeeded, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> otherwise.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gnome-thumbnail-factory-save-thumbnail"></a><h3>gnome_thumbnail_factory_save_thumbnail ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gnome_thumbnail_factory_save_thumbnail
                                                        (<em class="parameter"><code><a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a> *factory</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *thumbnail</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
                                                         <em class="parameter"><code><span class="type">time_t</span> original_mtime</code></em>);</pre>
<p>
Saves <em class="parameter"><code>thumbnail</code></em> at the right place. If the save fails a
failed thumbnail is written.
</p>
<p>
Usage of this function is threadsafe.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>factory</code></em> :</span></p></td>
<td>a <a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>thumbnail</code></em> :</span></p></td>
<td>the thumbnail as a pixbuf</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>the uri of a file</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>original_mtime</code></em> :</span></p></td>
<td>the modification time of the original file</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gnome-thumbnail-factory-create-failed-thumbnail"></a><h3>gnome_thumbnail_factory_create_failed_thumbnail ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gnome_thumbnail_factory_create_failed_thumbnail
                                                        (<em class="parameter"><code><a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a> *factory</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
                                                         <em class="parameter"><code><span class="type">time_t</span> mtime</code></em>);</pre>
<p>
Creates a failed thumbnail for the file so that we don't try
to re-thumbnail the file later.
</p>
<p>
Usage of this function is threadsafe.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>factory</code></em> :</span></p></td>
<td>a <a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailFactory" title="struct GnomeThumbnailFactory"><span class="type">GnomeThumbnailFactory</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>the uri of a file</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mtime</code></em> :</span></p></td>
<td>the modification time of the file</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gnome-thumbnail-scale-down-pixbuf"></a><h3>gnome_thumbnail_scale_down_pixbuf ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *         gnome_thumbnail_scale_down_pixbuf   (<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> dest_width</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> dest_height</code></em>);</pre>
<p>
Scales the pixbuf to the desired size. This function
is a lot faster than gdk-pixbuf when scaling down by
large amounts.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>dest_width</code></em> :</span></p></td>
<td>the desired new width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>dest_height</code></em> :</span></p></td>
<td>the desired new height</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a scaled pixbuf</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gnome-thumbnail-has-uri"></a><h3>gnome_thumbnail_has_uri ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gnome_thumbnail_has_uri             (<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);</pre>
<p>
Returns whether the thumbnail has the correct uri embedded in the
Thumb::URI option in the png.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
<td>an loaded thumbnail pixbuf</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>a uri</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if the thumbnail is for <em class="parameter"><code>uri</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gnome-thumbnail-is-valid"></a><h3>gnome_thumbnail_is_valid ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gnome_thumbnail_is_valid            (<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
                                                         <em class="parameter"><code><span class="type">time_t</span> mtime</code></em>);</pre>
<p>
Returns whether the thumbnail has the correct uri and mtime embedded in the
png options.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
<td>an loaded thumbnail <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>a uri</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mtime</code></em> :</span></p></td>
<td>the mtime</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if the thumbnail has the right <em class="parameter"><code>uri</code></em> and <em class="parameter"><code>mtime</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gnome-thumbnail-md5"></a><h3>gnome_thumbnail_md5 ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *              gnome_thumbnail_md5                 (<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);</pre>
<p>
Calculates the MD5 checksum of the uri. This can be useful
if you want to manually handle thumbnail files.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>an uri</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A string with the MD5 digest of the uri string.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gnome-thumbnail-path-for-uri"></a><h3>gnome_thumbnail_path_for_uri ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *              gnome_thumbnail_path_for_uri        (<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libgnomeui-GnomeThumbnail.html#GnomeThumbnailSize" title="enum GnomeThumbnailSize"><span class="type">GnomeThumbnailSize</span></a> size</code></em>);</pre>
<p>
Returns the filename that a thumbnail of size <em class="parameter"><code>size</code></em> for <em class="parameter"><code>uri</code></em> would have.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>an uri</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>a thumbnail size</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an absolute filename</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.16</div>
</body>
</html>