summaryrefslogtreecommitdiff
path: root/gtk/gtkprintsettings.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2009-08-30 11:10:47 -0400
committerMatthias Clasen <mclasen@redhat.com>2009-08-30 11:11:46 -0400
commit13147323d7f1e6da605b31aa2fd760c858736a1e (patch)
tree1f47c1331bd1cb02593fd08bf8a8add2189a5924 /gtk/gtkprintsettings.c
parentf117777c20f9ad0447bea9eb8c8d03c1b64d4344 (diff)
downloadgtk+-13147323d7f1e6da605b31aa2fd760c858736a1e.tar.gz
Forgotten part of the lpi change
Diffstat (limited to 'gtk/gtkprintsettings.c')
-rw-r--r--gtk/gtkprintsettings.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkprintsettings.c b/gtk/gtkprintsettings.c
index e50208017b..5c66fd69cd 100644
--- a/gtk/gtkprintsettings.c
+++ b/gtk/gtkprintsettings.c
@@ -1185,7 +1185,7 @@ gtk_print_settings_set_number_up (GtkPrintSettings *settings,
gint
gtk_print_settings_get_resolution (GtkPrintSettings *settings)
{
- return gtk_print_settings_get_int (settings, GTK_PRINT_SETTINGS_RESOLUTION);
+ return gtk_print_settings_get_int_with_default (settings, GTK_PRINT_SETTINGS_RESOLUTION, 300);
}
/**
@@ -1224,7 +1224,7 @@ gtk_print_settings_set_resolution (GtkPrintSettings *settings,
gint
gtk_print_settings_get_resolution_x (GtkPrintSettings *settings)
{
- return gtk_print_settings_get_int (settings, GTK_PRINT_SETTINGS_RESOLUTION_X);
+ return gtk_print_settings_get_int_with_default (settings, GTK_PRINT_SETTINGS_RESOLUTION_X, 300);
}
/**
@@ -1240,7 +1240,7 @@ gtk_print_settings_get_resolution_x (GtkPrintSettings *settings)
gint
gtk_print_settings_get_resolution_y (GtkPrintSettings *settings)
{
- return gtk_print_settings_get_int (settings, GTK_PRINT_SETTINGS_RESOLUTION_Y);
+ return gtk_print_settings_get_int_with_default (settings, GTK_PRINT_SETTINGS_RESOLUTION_Y, 300);
}
/**
@@ -1281,7 +1281,7 @@ gtk_print_settings_set_resolution_xy (GtkPrintSettings *settings,
gdouble
gtk_print_settings_get_printer_lpi (GtkPrintSettings *settings)
{
- return gtk_print_settings_get_double (settings, GTK_PRINT_SETTINGS_PRINTER_LPI);
+ return gtk_print_settings_get_double_with_default (settings, GTK_PRINT_SETTINGS_PRINTER_LPI, 150.0);
}
/**