]> www.fi.muni.cz Git - evince.git/commitdiff
Use GTK_UNIT_POINTS instead of GTK_UNIT_PIXEL, since it's not supported by
authorCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 3 Sep 2007 14:22:45 +0000 (14:22 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Mon, 3 Sep 2007 14:22:45 +0000 (14:22 +0000)
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

ChangeLog
shell/ev-window.c

index 116d5b2ddd1e91432c1b69c68a1bd0d5726e145e..82ffb0add9516321e3845a6b8ea6d418d995c4d5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
+       
 2007-09-03  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * shell/ev-view.c: (view_update_range_and_current_page):
index af2fb2a35d2264a877c7e2c04ef10d0c6b79beb1..19fd5833ecb2466d7166ba7586a95e4405e2398a 100644 (file)
@@ -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;