From 424778e5fc594ec7c6c8ce445bd7bf03c2a49baf Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 11 May 2005 09:49:45 +0000 Subject: [PATCH] Move the best fit items at the top of the list 2005-05-11 Marco Pesenti Gritti * 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 --- ChangeLog | 8 ++++++++ cut-n-paste/zoom-control/ephy-zoom.c | 4 ++-- cut-n-paste/zoom-control/ephy-zoom.h | 8 ++++---- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index b6707515..587cbceb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-05-11 Marco Pesenti Gritti + + * 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 + 2005-05-11 Marco Pesenti Gritti * shell/ev-marshal.list: diff --git a/cut-n-paste/zoom-control/ephy-zoom.c b/cut-n-paste/zoom-control/ephy-zoom.c index d24530b2..6b76457d 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; diff --git a/cut-n-paste/zoom-control/ephy-zoom.h b/cut-n-paste/zoom-control/ephy-zoom.h index e62fdef3..5632b4ff 100644 --- a/cut-n-paste/zoom-control/ephy-zoom.h +++ b/cut-n-paste/zoom-control/ephy-zoom.h @@ -45,6 +45,9 @@ struct zoom_levels[] = { + { N_("Best Fit"), EPHY_ZOOM_BEST_FIT }, + { N_("Fit Page Width"), EPHY_ZOOM_FIT_WIDTH }, + { NULL, EPHY_ZOOM_SEPARATOR }, { N_("50%"), 0.7071067811 }, { N_("75%"), 0.8408964152 }, { N_("100%"), 1.0 }, @@ -53,10 +56,7 @@ zoom_levels[] = { N_("175%"), 1.6817928304 }, { N_("200%"), 2.0 }, { N_("300%"), 2.8284271247 }, - { N_("400%"), 4.0 }, - { NULL, EPHY_ZOOM_SEPARATOR }, - { N_("Best Fit"), EPHY_ZOOM_BEST_FIT }, - { N_("Fit Page Width"), EPHY_ZOOM_FIT_WIDTH } + { N_("400%"), 4.0 } }; static const guint n_zoom_levels = G_N_ELEMENTS (zoom_levels); -- 2.43.5