store scale in percent

This commit is contained in:
Matthias Clasen 2006-06-12 02:32:16 +00:00
parent b8eaa0877a
commit 35756b3864
3 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2006-06-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintoperation-win32.c: Store scale as a percentage.
(#344560, Christian Persch)
* gtk/gtkprogressbar.h: Add a dirty flag to GtkProgressBar.n/
* gtk/gtkprogressbar.c: Defer updating of the offscreen
pixmap until expose. (#344543, Chris Wilson)

View File

@ -1,5 +1,8 @@
2006-06-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintoperation-win32.c: Store scale as a percentage.
(#344560, Christian Persch)
* gtk/gtkprogressbar.h: Add a dirty flag to GtkProgressBar.n/
* gtk/gtkprogressbar.c: Defer updating of the offscreen
pixmap until expose. (#344543, Chris Wilson)

View File

@ -677,8 +677,7 @@ devmode_to_settings (GtkPrintSettings *settings,
}
if (devmode->dmFields & DM_SCALE)
gtk_print_settings_set_scale (settings,
devmode->dmScale / 100.0);
gtk_print_settings_set_scale (settings, devmode->dmScale);
if (devmode->dmFields & DM_COPIES)
gtk_print_settings_set_n_copies (settings,
@ -959,7 +958,7 @@ devmode_from_settings (GtkPrintSettings *settings,
if (gtk_print_settings_has_key (settings, GTK_PRINT_SETTINGS_SCALE))
{
devmode->dmFields |= DM_SCALE;
devmode->dmScale = gtk_print_settings_get_scale (settings) * 100;
devmode->dmScale = gtk_print_settings_get_scale (settings);
}
if (gtk_print_settings_has_key (settings, GTK_PRINT_SETTINGS_N_COPIES))