34 #include <glib/gi18n-lib.h>
37 #include <libnautilus-extension/nautilus-extension-types.h>
38 #include <libnautilus-extension/nautilus-property-page-provider.h>
45 (NautilusPropertyPageProviderIface *iface);
47 (NautilusPropertyPageProvider *provider, GList *files);
52 const GTypeInfo info = {
53 sizeof (GObjectClass),
55 (GBaseFinalizeFunc) NULL,
56 (GClassInitFunc) NULL,
61 (GInstanceInitFunc) NULL
63 const GInterfaceInfo property_page_provider_iface_info = {
69 epp_type = g_type_module_register_type (module, G_TYPE_OBJECT,
72 g_type_module_add_interface (module,
74 NAUTILUS_TYPE_PROPERTY_PAGE_PROVIDER,
75 &property_page_provider_iface_info);
91 NautilusFileInfo *file;
93 gchar *mime_type = NULL;
94 GtkWidget *page, *
label;
95 NautilusPropertyPage *property_page;
98 if (files == NULL || files->next != NULL)
103 uri = nautilus_file_info_get_uri (file);
104 mime_type = nautilus_file_info_get_mime_type (file);
112 g_error_free (error);
116 label = gtk_label_new (
_(
"Document"));
120 gtk_widget_show (page);
121 property_page = nautilus_property_page_new (
"document-properties",
124 pages = g_list_prepend (pages, property_page);
130 if (document != NULL)
131 g_object_unref (document);
156 static GType type_list[1];
160 *num_types = G_N_ELEMENTS (type_list);