25 #include <glib/gi18n.h>
60 content_area = GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (properties)));
61 gtk_container_set_border_width (GTK_CONTAINER (content_area), 0);
63 gtk_window_set_title (GTK_WINDOW (properties),
_(
"Properties"));
64 gtk_window_set_destroy_with_parent (GTK_WINDOW (properties),
TRUE);
66 properties->notebook = gtk_notebook_new ();
67 gtk_notebook_set_show_border (GTK_NOTEBOOK (properties->notebook),
FALSE);
68 gtk_box_pack_start (content_area, properties->notebook,
TRUE,
TRUE, 0);
69 gtk_widget_show (properties->notebook);
80 properties->document = document;
84 if (properties->general_page == NULL) {
85 label = gtk_label_new (
_(
"General"));
87 gtk_notebook_append_page (GTK_NOTEBOOK (properties->notebook),
88 properties->general_page, label);
89 gtk_widget_show (properties->general_page);
94 if (properties->fonts_page == NULL) {
95 label = gtk_label_new (
_(
"Fonts"));
97 gtk_notebook_append_page (GTK_NOTEBOOK (properties->notebook),
98 properties->fonts_page, label);
99 gtk_widget_show (properties->fonts_page);
107 if (properties->license_page == NULL) {
108 label = gtk_label_new (
_(
"Document License"));
110 gtk_notebook_append_page (GTK_NOTEBOOK (properties->notebook),
111 properties->license_page, label);
112 gtk_widget_show (properties->license_page);
126 "use-header-bar",
TRUE, NULL);
128 return GTK_WIDGET (properties);