From d4ab4b8574b497c01f86b209a60867b576540e92 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Mon, 3 Sep 2007 14:22:45 +0000 Subject: [PATCH] Use GTK_UNIT_POINTS instead of GTK_UNIT_PIXEL, since it's not supported by 2007-09-03 Carlos Garcia Campos * 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 --- ChangeLog | 7 +++++++ shell/ev-window.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 116d5b2d..82ffb0ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-09-03 Carlos Garcia Campos + + * 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. + 2007-09-03 Carlos Garcia Campos * shell/ev-view.c: (view_update_range_and_current_page): diff --git a/shell/ev-window.c b/shell/ev-window.c index af2fb2a3..19fd5833 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; -- 2.43.5