]> www.fi.muni.cz Git - evince.git/blobdiff - properties/ev-properties-main.c
Updated Occitan translation
[evince.git] / properties / ev-properties-main.c
index 3b1e8e06eb3b490a03d55d26c6fa40fa21873cef..15988cfc6166e15ad4308f516c9b4e71212f2fb3 100644 (file)
@@ -28,6 +28,7 @@
  */
 
 #include "ev-properties-view.h"
+#include "ev-backends-manager.h"
 #include "ev-document-factory.h"
 
 #include <config.h>
@@ -46,7 +47,7 @@ static GList *ev_properties_get_pages
 static void
 ev_properties_plugin_register_type (GTypeModule *module)
 {
-       static const GTypeInfo info = {
+       const GTypeInfo info = {
                sizeof (GObjectClass),
                (GBaseInitFunc) NULL,
                (GBaseFinalizeFunc) NULL,
@@ -57,7 +58,7 @@ ev_properties_plugin_register_type (GTypeModule *module)
                0,
                (GInstanceInitFunc) NULL
        };
-       static const GInterfaceInfo property_page_provider_iface_info = {
+       const GInterfaceInfo property_page_provider_iface_info = {
                (GInterfaceInitFunc)property_page_provider_iface_init,
                NULL,
                NULL
@@ -103,6 +104,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,6 +134,8 @@ 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