static void
ev_properties_plugin_register_type (GTypeModule *module)
{
- static const GTypeInfo info = {
+ const GTypeInfo info = {
sizeof (GObjectClass),
(GBaseInitFunc) NULL,
(GBaseFinalizeFunc) NULL,
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
char *uri = NULL;
GtkWidget *page, *label;
NautilusPropertyPage *property_page;
- GType type = G_TYPE_INVALID;
-
+
/* only add properties page if a single file is selected */
if (files == NULL || files->next != NULL)
goto end;
file = files->data;
/* okay, make the page */
-
- if (document == NULL)
- goto end;
-
uri = nautilus_file_info_get_uri (file);
document = ev_document_factory_get_document (uri, &error);
g_error_free (error);
goto end;
}
+
+ if (!document)
+ goto end;
label = gtk_label_new (_("Document"));
page = ev_properties_view_new ();