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=6af16f36ad7301ecc9fcff69eee13c019a084c08;hb=dec10c13ca0e95a58e9d6eb537320505ca64d1f8;hp=b25df9ea011a632f718a351ae0ddf99056be708d;hpb=75d6ca169171f642ba7438e648b4529638bf90c3;p=evince.git diff --git a/properties/ev-properties-main.c b/properties/ev-properties-main.c index b25df9ea..6af16f36 100644 --- a/properties/ev-properties-main.c +++ b/properties/ev-properties-main.c @@ -37,9 +37,8 @@ #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 @@ -112,7 +111,7 @@ ev_properties_get_pages (NautilusPropertyPageProvider *provider, goto end; label = gtk_label_new (_("Document")); - page = ev_properties_view_new (); + page = ev_properties_view_new (uri); ev_properties_view_set_info (EV_PROPERTIES_VIEW (page), ev_document_get_info (document)); gtk_widget_show (page); @@ -134,17 +133,13 @@ nautilus_module_initialize (GTypeModule *module) ev_properties_plugin_register_type (module); ev_properties_view_register_type (module); - /* set up translation catalog */ - bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - - ev_backends_manager_init (); + ev_init (); } void nautilus_module_shutdown (void) { - ev_backends_manager_shutdown (); + ev_shutdown (); } void @@ -157,4 +152,3 @@ nautilus_module_list_types (const GType **types, *types = type_list; *num_types = G_N_ELEMENTS (type_list); } -