X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=properties%2Fev-properties-main.c;h=10d1ec8d47325bd45b1e4bb060a1687470950364;hb=4f6105d3df2cbf07bccd7de156693aab7e71bc31;hp=3b1e8e06eb3b490a03d55d26c6fa40fa21873cef;hpb=70f641411b2fbab930b481ac844984819b48805d;p=evince.git diff --git a/properties/ev-properties-main.c b/properties/ev-properties-main.c index 3b1e8e06..10d1ec8d 100644 --- a/properties/ev-properties-main.c +++ b/properties/ev-properties-main.c @@ -46,7 +46,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 +57,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 +103,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 ();