18 |
|
|
19 |
#include <config.h> |
#include <config.h> |
20 |
#include <gnome.h> |
#include <gnome.h> |
21 |
#ifndef GNOME1 |
#ifdef USE_GNOMEVFS |
22 |
#include <libgnomevfs/gnome-vfs-mime.h> |
#include <libgnomevfs/gnome-vfs-mime.h> |
23 |
#endif |
#endif |
24 |
#include "config_common.h" |
#include "config_common.h" |
53 |
if (fd->mime) |
if (fd->mime) |
54 |
mime = g_strdup (fd->mime->str); |
mime = g_strdup (fd->mime->str); |
55 |
if (!mime) |
if (!mime) |
56 |
#ifdef GNOME1 |
#ifdef USE_GNOMEVFS |
|
mime = g_strdup (gnome_mime_type_or_default (fd->name->str, NULL)); |
|
|
#else |
|
57 |
mime = |
mime = |
58 |
g_strdup (gnome_vfs_mime_type_from_name_or_default |
g_strdup (gnome_vfs_mime_type_from_name_or_default |
59 |
(fd->name->str, NULL)); |
(fd->name->str, NULL)); |
60 |
|
#else |
61 |
|
mime = g_strdup (gnome_mime_type_or_default (fd->name->str, NULL)); |
62 |
#endif |
#endif |
63 |
if (mime) |
if (mime) |
64 |
{ |
{ |