[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-574-g3c65d2a

iwkse at claws-mail.org iwkse at claws-mail.org
Wed Jan 9 00:22:45 CET 2019


The branch, gtk3 has been updated
       via  3c65d2af1bbe2d89683c6a620601d2392d604457 (commit)
      from  80fa9a93a2d7e9017098656ebb0c4e5c6d3d20e7 (commit)

Summary of changes:
 src/plugins/fancy/fancy_viewer.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 3c65d2af1bbe2d89683c6a620601d2392d604457
Author: iwkse <iwkse at claws-mail.org>
Date:   Wed Jan 9 00:22:29 2019 +0100

    Save zoom_level as integer

diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c
index 99962cc..f3a6ede 100644
--- a/src/plugins/fancy/fancy_viewer.c
+++ b/src/plugins/fancy/fancy_viewer.c
@@ -386,7 +386,7 @@ static void fancy_clear_viewer(MimeViewer *_viewer)
 	webkit_web_view_load_uri(viewer->view, "about:blank");
 
 	debug_print("fancy_clear_viewer\n");
-	fancy_prefs.zoom_level = webkit_web_view_get_zoom_level(viewer->view);
+	fancy_prefs.zoom_level = (int) webkit_web_view_get_zoom_level(viewer->view) * 100;
 	viewer->to_load = NULL;
 	vadj = gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(viewer->scrollwin));
 	gtk_adjustment_set_value(vadj, 0.0);
@@ -396,7 +396,7 @@ static void fancy_clear_viewer(MimeViewer *_viewer)
 static void fancy_destroy_viewer(MimeViewer *_viewer)
 {
 	FancyViewer *viewer = (FancyViewer *) _viewer;
-	fancy_prefs.zoom_level = webkit_web_view_get_zoom_level(viewer->view);
+	fancy_prefs.zoom_level = (int) webkit_web_view_get_zoom_level(viewer->view) * 100;
 	debug_print("fancy_destroy_viewer\n");
 	g_free(viewer->filename);
 	g_free(viewer);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list