Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-07-05 15:31:17 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-07-05 15:31:17 (GMT)
commit4684716c489657edf098565eb54bdf86bad1b45c (patch)
tree8e415778063a717a11dc09fa61042a603ff34b37 /shell/ev-window.c
parent26a8622fe284cd0e4531caa56f918d7cfaf8037b (diff)
Rework document types managing to avoid code duplication and actually
2005-07-05 Marco Pesenti Gritti <mpg@redhat.com> * backend/Makefile.am: * backend/ev-document-factory.c: (mime_type_supported_by_gdk_pixbuf), (ev_document_type_get_from_mime), (ev_document_factory_get_document), (ev_document_factory_get_backend), (ev_document_factory_get_mime_types), (ev_document_factory_get_all_mime_types): * backend/ev-document-factory.h: * shell/Makefile.am: * shell/ev-document-types.c: (get_document_from_uri), (ev_document_types_get_document), (file_filter_add_mime_list_and_free), (ev_document_types_add_filters): * shell/ev-document-types.h: * shell/ev-job-xfer.c: (ev_job_xfer_run): * shell/ev-properties-dialog.c: (ev_properties_dialog_set_document): * shell/ev-window.c: (ev_window_cmd_file_open), (ev_window_cmd_save_as): * thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get): Rework document types managing to avoid code duplication and actually abstract from backend implementations. Also provide a minimal factory api that can be used by thumbnailer/properties.
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 854079b..c61515b 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -977,7 +977,7 @@ ev_window_cmd_file_open (GtkAction *action, EvWindow *window)
folder);
}
- ev_document_types_add_filters (chooser);
+ ev_document_types_add_filters (chooser, NULL);
gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (chooser), TRUE);
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (chooser), FALSE);
@@ -1146,7 +1146,7 @@ ev_window_cmd_save_as (GtkAction *action, EvWindow *ev_window)
NULL);
gtk_window_set_modal (GTK_WINDOW (fc), TRUE);
- ev_document_types_add_filters_for_type (fc, G_TYPE_FROM_INSTANCE (ev_window->priv->document));
+ ev_document_types_add_filters (fc, ev_window->priv->document);
gtk_dialog_set_default_response (GTK_DIALOG (fc), GTK_RESPONSE_OK);
if (folder) {