[giv] Made giv honor turning of auto-resize for giv files without images.



commit f9a6ac6bdd9a0f393ed8c28cbe584be335d1bb00
Author: Dov Grobgeld <dov grobgeld gmail com>
Date:   Fri May 25 09:20:07 2012 +0300

    Made giv honor turning of auto-resize for giv files without images.

 src/giv-win.gob |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/giv-win.gob b/src/giv-win.gob
index 651171f..6083d96 100644
--- a/src/giv-win.gob
+++ b/src/giv-win.gob
@@ -936,6 +936,8 @@ class Giv:Win from Gtk:Window
             gtk_ui_manager_get_widget(selfp->menu_manager,
                                       "/menubar/ViewMenu/AutoResize")),
           selfp->giv_settings->default_auto_resize);
+        gtk_image_viewer_set_fill_on_resize(GTK_IMAGE_VIEWER(selfp->w_imgv),
+                                            selfp->giv_settings->default_auto_resize);
 
         // Handle the command line
         if (argc == argp+1) {
@@ -2157,6 +2159,8 @@ static void cb_view_auto_resize (GtkAction *action, gpointer data)
     GivWin *self = GIV_WIN(data);
 
     selfp->do_auto_fit_marks = !selfp->do_auto_fit_marks;
+    gtk_image_viewer_set_fill_on_resize(GTK_IMAGE_VIEWER(selfp->w_imgv),
+                                        selfp->do_auto_fit_marks);
     gtk_check_menu_item_set_active(
         GTK_CHECK_MENU_ITEM(
             gtk_ui_manager_get_widget(selfp->menu_manager,



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