diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2005-05-08 18:26:01 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-05-08 18:26:01 (GMT) |
commit | a5e3f1314e7e27fb0e765b3b9b8e1deb92c7c536 (patch) | |
tree | 877ee4110e50389f75507166a092d0a9c0049d51 /shell/ev-document-types.h | |
parent | b9898930ba07edc66523a753de8dd5a4f69703dd (diff) |
Change api to lookup from uri. Do fast lookup first, if the type is
2005-05-08 Marco Pesenti Gritti <mpg@redhat.com>
* shell/ev-document-types.c: (get_slow_mime_type),
(get_document_type_from_mime), (ev_document_type_lookup):
* shell/ev-document-types.h:
Change api to lookup from uri. Do fast lookup first, if the
type is unknown try with data sniffing.
* shell/ev-window.c: (ev_window_open), (ev_window_open_uri_list):
* thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get):
Adapt to api change
Diffstat (limited to 'shell/ev-document-types.h')
-rw-r--r-- | shell/ev-document-types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/ev-document-types.h b/shell/ev-document-types.h index faf2320..e3e8fa0 100644 --- a/shell/ev-document-types.h +++ b/shell/ev-document-types.h @@ -25,7 +25,8 @@ G_BEGIN_DECLS -GType ev_document_type_lookup (const char *mime_type); +GType ev_document_type_lookup (const char *uri, + char **mime_type); G_END_DECLS |