From 424778e5fc594ec7c6c8ce445bd7bf03c2a49baf Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 11 May 2005 09:49:45 +0000 Subject: 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 --- (limited to 'cut-n-paste/zoom-control') 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; diff --git a/cut-n-paste/zoom-control/ephy-zoom.h b/cut-n-paste/zoom-control/ephy-zoom.h index e62fdef..5632b4f 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); -- cgit v0.9.1