summaryrefslogtreecommitdiff
path: root/cut-n-paste/zoom-control/ephy-zoom.c
diff options
context:
space:
mode:
authorbl0ckeduser <[email protected]>2014-02-08 22:18:47 -0500
committerbl0ckeduser <[email protected]>2014-02-08 22:18:47 -0500
commit7f21f2854ad69786568558db9c5d87ba17aa921c (patch)
tree6a50c22a921509dc89b7591811a36714934ee0c8 /cut-n-paste/zoom-control/ephy-zoom.c
parent9ba2765d71e217254d2a3429b043430dbc9ff5d1 (diff)
downloadatril-7f21f2854ad69786568558db9c5d87ba17aa921c.tar.bz2
atril-7f21f2854ad69786568558db9c5d87ba17aa921c.tar.xz
Implement window expand functionality (#53)
Diffstat (limited to 'cut-n-paste/zoom-control/ephy-zoom.c')
-rw-r--r--cut-n-paste/zoom-control/ephy-zoom.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cut-n-paste/zoom-control/ephy-zoom.c b/cut-n-paste/zoom-control/ephy-zoom.c
index 83bb8291..bc456ecc 100644
--- a/cut-n-paste/zoom-control/ephy-zoom.c
+++ b/cut-n-paste/zoom-control/ephy-zoom.c
@@ -35,11 +35,13 @@ ephy_zoom_get_zoom_level_index (float level)
return 0;
} else if (level == EPHY_ZOOM_FIT_WIDTH) {
return 1;
+ } else if (level == EPHY_ZOOM_EXPAND_WINDOW_TO_FIT) {
+ return 2;
}
- previous = zoom_levels[3].level;
+ previous = zoom_levels[4].level;
- for (i = 4; i < n_zoom_levels; i++)
+ for (i = 5; i < n_zoom_levels; i++)
{
current = zoom_levels[i].level;
mean = sqrt (previous * current);