[gedit/wip/printing-improvements: 1/3] print-preview: when showing two columns, set zoom mode to 'fit page'



commit 427bd7cf59c14bbb4d661d4f4a8fe5ebe3ca2e4b
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Jun 27 17:53:38 2015 +0200

    print-preview: when showing two columns, set zoom mode to 'fit page'
    
    To have the two pages visible on the screen.

 gedit/gedit-print-preview.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-print-preview.c b/gedit/gedit-print-preview.c
index c0aa873..9c90505 100644
--- a/gedit/gedit-print-preview.c
+++ b/gedit/gedit-print-preview.c
@@ -129,8 +129,6 @@ static void
 set_n_columns (GeditPrintPreview *preview,
               gint               n_columns)
 {
-       /* TODO: set the zoom appropriately */
-
        preview->n_columns = n_columns;
        update_layout_size (preview);
 }
@@ -388,6 +386,7 @@ on_1x2_clicked (GtkMenuItem       *item,
                GeditPrintPreview *preview)
 {
        set_n_columns (preview, 2);
+       set_zoom_fit_to_size (preview);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]