X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=properties%2Fev-properties-main.c;h=b25df9ea011a632f718a351ae0ddf99056be708d;hb=14def5e0c1c11cee1523e10c72df74f4cf5e451d;hp=32677fc1839c0c5e1b3e3acd89d6a44ffa1c9cc8;hpb=47fb87e520d1abe31a1965d500602e0e80e899b2;p=evince.git diff --git a/properties/ev-properties-main.c b/properties/ev-properties-main.c index 32677fc1..b25df9ea 100644 --- a/properties/ev-properties-main.c +++ b/properties/ev-properties-main.c @@ -27,16 +27,20 @@ * */ -#include "ev-properties-view.h" -#include "ev-document-factory.h" - #include + #include + #include -#include +#include + #include #include +#include "ev-properties-view.h" +#include "ev-backends-manager.h" +#include "ev-document-factory.h" + static GType epp_type = 0; static void property_page_provider_iface_init (NautilusPropertyPageProviderIface *iface); @@ -89,7 +93,7 @@ ev_properties_get_pages (NautilusPropertyPageProvider *provider, char *uri = NULL; GtkWidget *page, *label; NautilusPropertyPage *property_page; - + /* only add properties page if a single file is selected */ if (files == NULL || files->next != NULL) goto end; @@ -103,6 +107,9 @@ ev_properties_get_pages (NautilusPropertyPageProvider *provider, g_error_free (error); goto end; } + + if (!document) + goto end; label = gtk_label_new (_("Document")); page = ev_properties_view_new (); @@ -130,11 +137,14 @@ nautilus_module_initialize (GTypeModule *module) /* set up translation catalog */ bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + + ev_backends_manager_init (); } void nautilus_module_shutdown (void) { + ev_backends_manager_shutdown (); } void