diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2007-09-03 14:22:45 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2007-09-03 14:22:45 (GMT) |
commit | d4ab4b8574b497c01f86b209a60867b576540e92 (patch) | |
tree | e2e8b566ba3b3d8b3a06c9ed26aa8105cedb860c /shell | |
parent | 4440bba971aa015656a4339039bed1a44c2541f3 (diff) |
Use GTK_UNIT_POINTS instead of GTK_UNIT_PIXEL, since it's not supported by
2007-09-03 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-window.c: (ev_window_print_dialog_response_cb):
Use GTK_UNIT_POINTS instead of GTK_UNIT_PIXEL, since it's not
supported by gtk+. Fixes bug #460907.
svn path=/trunk/; revision=2656
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index af2fb2a..19fd583 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -2407,9 +2407,9 @@ ev_window_print_dialog_response_cb (GtkDialog *dialog, scale = gtk_print_settings_get_scale (window->priv->print_settings) * 0.01; width = gtk_page_setup_get_paper_width (window->priv->print_page_setup, - GTK_UNIT_PIXEL); + GTK_UNIT_POINTS); height = gtk_page_setup_get_paper_height (window->priv->print_page_setup, - GTK_UNIT_PIXEL); + GTK_UNIT_POINTS); if (scale != 1.0) { width *= scale; |