Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-document-types.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-07-11 17:38:35 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-07-11 17:38:35 (GMT)
commit13c49bea656a4f495e2c4baedab130eab367ae4f (patch)
treea987238e2e9b0bed2f6312df490d96c2641fb6c9 /shell/ev-document-types.c
parent0202a575af908e78d0fd9c2a1730989f499d2fb3 (diff)
Allow to enable/disable the pixbuf backend. Default to off for now. If we
2005-07-11 Marco Pesenti Gritti <mpg@redhat.com> * Makefile.am: * backend/Makefile.am: * backend/ev-document-factory.c: (ev_document_type_get_from_mime): * configure.ac: * shell/ev-document-types.c: (ev_document_types_add_filters): Allow to enable/disable the pixbuf backend. Default to off for now. If we want it enabled we should really put mime types in the desktop, implement properties etc. * properties/evince-properties.c: Initialize error to NULL. Check error is not NULL before freeing.
Diffstat (limited to 'shell/ev-document-types.c')
-rw-r--r--shell/ev-document-types.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/ev-document-types.c b/shell/ev-document-types.c
index cbe6c24..f1bf9c9 100644
--- a/shell/ev-document-types.c
+++ b/shell/ev-document-types.c
@@ -152,12 +152,14 @@ ev_document_types_add_filters (GtkWidget *chooser, EvDocument *document)
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (chooser), filter);
}
+#ifdef ENABLE_PIXBUF
if (document == NULL || backend == EV_BACKEND_PIXBUF) {
default_filter = filter = gtk_file_filter_new ();
gtk_file_filter_set_name (filter, _("Images"));
gtk_file_filter_add_pixbuf_formats (filter);
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (chooser), filter);
}
+#endif
#ifdef ENABLE_DVI
if (document == NULL || backend == EV_BACKEND_DVI) {