diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2005-05-11 09:49:45 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-05-11 09:49:45 (GMT) |
commit | 424778e5fc594ec7c6c8ce445bd7bf03c2a49baf (patch) | |
tree | 3e645253fd605905018c36dd8e5f278f5250c7b7 /cut-n-paste/zoom-control/ephy-zoom.c | |
parent | 39d906d93b5e9e0929fec8d3ef322f9597adee78 (diff) |
Move the best fit items at the top of the list
2005-05-11 Marco Pesenti Gritti <mpg@redhat.com>
* cut-n-paste/zoom-control/ephy-zoom.c:
(ephy_zoom_get_zoom_level_index):
* cut-n-paste/zoom-control/ephy-zoom.h:
Move the best fit items at the top of the list
Diffstat (limited to 'cut-n-paste/zoom-control/ephy-zoom.c')
-rw-r--r-- | cut-n-paste/zoom-control/ephy-zoom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cut-n-paste/zoom-control/ephy-zoom.c b/cut-n-paste/zoom-control/ephy-zoom.c index d24530b..6b76457 100644 --- a/cut-n-paste/zoom-control/ephy-zoom.c +++ b/cut-n-paste/zoom-control/ephy-zoom.c @@ -32,9 +32,9 @@ ephy_zoom_get_zoom_level_index (float level) /* Handle our options at the end of the list. */ if (level == EPHY_ZOOM_BEST_FIT) { - return n_zoom_levels - 2; + return 0; } else if (level == EPHY_ZOOM_FIT_WIDTH) { - return n_zoom_levels - 1; + return 1; } previous = zoom_levels[0].level; |