diff options
author | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2006-03-30 22:20:35 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2006-03-30 22:20:35 (GMT) |
commit | 67a923a1096f1e9765a5d804e4fb9fac39bcfcf2 (patch) | |
tree | 66e0e782861c292b8684bb367dc0489bdcc68f73 /backend/ev-document-factory.h | |
parent | dda75bc2dbcd9a6ed5507bb0609f057846edc261 (diff) |
Rework factory functions so they are placed now in a single file
* backend/ev-document-factory.c:
(ev_document_factory_get_from_mime),
(ev_document_factory_get_all_mime_types), (get_document_from_uri),
(ev_document_factory_get_document),
(file_filter_add_mime_list_and_free),
(ev_document_factory_add_filters):
* backend/ev-document-factory.h:
* properties/ev-properties-main.c: (ev_properties_get_pages):
* shell/Makefile.am:
* shell/ev-application.c:
* shell/ev-job-xfer.c: (ev_job_xfer_run):
* shell/ev-window.c: (ev_window_cmd_file_open),
(ev_window_cmd_save_as):
* thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get):
Rework factory functions so they are placed now in a single
file ev-document-factory.c
Diffstat (limited to 'backend/ev-document-factory.h')
-rw-r--r-- | backend/ev-document-factory.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/backend/ev-document-factory.h b/backend/ev-document-factory.h index f299730..b2c9659 100644 --- a/backend/ev-document-factory.h +++ b/backend/ev-document-factory.h @@ -21,6 +21,7 @@ #ifndef EV_DOCUMENT_FACTORY_H #define EV_DOCUMENT_FACTORY_H +#include <gtk/gtk.h> #include "ev-document.h" G_BEGIN_DECLS @@ -35,10 +36,10 @@ typedef enum { EV_BACKEND_COMICS } EvBackend; -EvDocument *ev_document_factory_get_document (const char *mime_type); -EvBackend ev_document_factory_get_backend (EvDocument *document); -GList *ev_document_factory_get_mime_types (EvBackend backend); -GList *ev_document_factory_get_all_mime_types (void); +EvDocument* ev_document_factory_get_from_mime (const char *mime_type); +EvDocument* ev_document_factory_get_document (const char *uri, gchar **mime_type, GError **error); +EvBackend ev_document_factory_get_backend (EvDocument *document); +void ev_document_factory_add_filters (GtkWidget *chooser, EvDocument *document); G_END_DECLS |