Commit 35756b38 authored by Matthias Clasen's avatar Matthias Clasen

store scale in percent

parent b8eaa087
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)
......
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)
......
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment