]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-properties-dialog.c
More renames of warning to mdvi_warning in follow up to the fix of the bug
[evince.git] / shell / ev-properties-dialog.c
index 220728e6d3a1ca45b68e43ee18310f90c04eb123..24bd3d6232929a5cea06ee496eb6a94eff635cec 100644 (file)
 #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 <glib/gi18n.h>
-#include <gtk/gtkdialog.h>
-#include <gtk/gtklabel.h>
-#include <gtk/gtknotebook.h>
-#include <gtk/gtkstock.h>
-#include <gtk/gtkbox.h>
+#include <gtk/gtk.h>
+
+#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);