Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-properties-dialog.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2009-10-25 18:33:24 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2009-10-25 18:33:24 (GMT)
commitfbc5a66df0f65fa6f06d2d8496794512033a9ef3 (patch)
treee799e25c76d23a242fada6964e61c96e5f714b7f /shell/ev-properties-dialog.c
parent516c4e3273b664ee2b10d6348d3484726f4461fd (diff)
Add a new tab in properties dialog to show information about document license
Based on patch by Juanjo MarĂ­n. Fixes bgo#349173.
Diffstat (limited to 'shell/ev-properties-dialog.c')
-rw-r--r--shell/ev-properties-dialog.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/shell/ev-properties-dialog.c b/shell/ev-properties-dialog.c
index b19408e..c829b3c 100644
--- a/shell/ev-properties-dialog.c
+++ b/shell/ev-properties-dialog.c
@@ -29,6 +29,7 @@
#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;
@@ -37,6 +38,7 @@ struct _EvPropertiesDialog {
GtkWidget *notebook;
GtkWidget *general_page;
GtkWidget *fonts_page;
+ GtkWidget *license_page;
};
struct _EvPropertiesDialogClass {
@@ -107,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 *