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=f48b96778c79f52233df525c2ac522dde7f86a28;hb=206bc8045e1d217e09f0e640d14791f2669a92ac;hp=220728e6d3a1ca45b68e43ee18310f90c04eb123;hpb=4684716c489657edf098565eb54bdf86bad1b45c;p=evince.git diff --git a/shell/ev-properties-dialog.c b/shell/ev-properties-dialog.c index 220728e6..f48b9677 100644 --- a/shell/ev-properties-dialog.c +++ b/shell/ev-properties-dialog.c @@ -22,18 +22,14 @@ #include "config.h" #endif -#include "ev-properties-view.h" -#include "ev-properties-fonts.h" -#include "ev-properties-dialog.h" -#include "ev-page-cache.h" -#include "ev-document-fonts.h" - #include -#include -#include -#include -#include -#include +#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" struct _EvPropertiesDialog { GtkDialog base_instance; @@ -62,10 +58,12 @@ ev_properties_dialog_init (EvPropertiesDialog *properties) gtk_window_set_destroy_with_parent (GTK_WINDOW (properties), TRUE); gtk_dialog_set_has_separator (GTK_DIALOG (properties), FALSE); gtk_container_set_border_width (GTK_CONTAINER (properties), 5); - gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (properties)->vbox), 12); + gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (properties)->vbox), 2); gtk_dialog_add_button (GTK_DIALOG (properties), GTK_STOCK_CLOSE, - GTK_RESPONSE_ACCEPT); + GTK_RESPONSE_CANCEL); + gtk_dialog_set_default_response (GTK_DIALOG (properties), + GTK_RESPONSE_CANCEL); properties->notebook = gtk_notebook_new (); gtk_container_set_border_width (GTK_CONTAINER (properties->notebook), 5); @@ -79,6 +77,7 @@ ev_properties_dialog_init (EvPropertiesDialog *properties) void ev_properties_dialog_set_document (EvPropertiesDialog *properties, + const gchar *uri, EvDocument *document) { GtkWidget *label; @@ -90,7 +89,7 @@ ev_properties_dialog_set_document (EvPropertiesDialog *properties, if (properties->general_page == NULL) { label = gtk_label_new (_("General")); - properties->general_page = ev_properties_view_new (); + properties->general_page = ev_properties_view_new (uri); gtk_notebook_append_page (GTK_NOTEBOOK (properties->notebook), properties->general_page, label); gtk_widget_show (properties->general_page);