X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-properties-dialog.c;h=c829b3c6a4718803cd3657245d8484d018067f1b;hb=761de5f5ba44cc94c98adf2b68809ea453d6bdfa;hp=0ca4661bad3209abd85104fa0ef8f1c2879ac829;hpb=c4b192c34c4758bd078d1a212d69c6ae5084d6c8;p=evince.git diff --git a/shell/ev-properties-dialog.c b/shell/ev-properties-dialog.c index 0ca4661b..c829b3c6 100644 --- a/shell/ev-properties-dialog.c +++ b/shell/ev-properties-dialog.c @@ -26,10 +26,10 @@ #include #include "ev-document-fonts.h" -#include "ev-page-cache.h" #include "ev-properties-dialog.h" #include "ev-properties-fonts.h" #include "ev-properties-view.h" +#include "ev-properties-license.h" struct _EvPropertiesDialog { GtkDialog base_instance; @@ -38,6 +38,7 @@ struct _EvPropertiesDialog { GtkWidget *notebook; GtkWidget *general_page; GtkWidget *fonts_page; + GtkWidget *license_page; }; struct _EvPropertiesDialogClass { @@ -108,6 +109,19 @@ ev_properties_dialog_set_document (EvPropertiesDialog *properties, ev_properties_fonts_set_document (EV_PROPERTIES_FONTS (properties->fonts_page), document); } + + if (info->fields_mask & EV_DOCUMENT_INFO_LICENSE && info->license) { + if (properties->license_page == NULL) { + label = gtk_label_new (_("Document License")); + properties->license_page = ev_properties_license_new (); + gtk_notebook_append_page (GTK_NOTEBOOK (properties->notebook), + properties->license_page, label); + gtk_widget_show (properties->license_page); + } + + ev_properties_license_set_license + (EV_PROPERTIES_LICENSE (properties->license_page), info->license); + } } GtkWidget *