]> www.fi.muni.cz Git - evince.git/commitdiff
Move the best fit items at the top of the list
authorMarco Pesenti Gritti <mpg@redhat.com>
Wed, 11 May 2005 09:49:45 +0000 (09:49 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Wed, 11 May 2005 09:49:45 +0000 (09:49 +0000)
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

ChangeLog
cut-n-paste/zoom-control/ephy-zoom.c
cut-n-paste/zoom-control/ephy-zoom.h

index b670751525356025a4ceae96177188b83c518533..587cbceb6c50615640a8ad45e537149aeaf435ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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
+
 2005-05-11  Marco Pesenti Gritti  <mpg@redhat.com>
 
        * shell/ev-marshal.list:
index d24530b21f3016d887dc9f468e3808b6c1267769..6b76457d2f2c616629ff3a2e47e0b997c1d55da2 100644 (file)
@@ -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;
index e62fdef3e4f444e47dc46c8bceaaef7441f99608..5632b4ff8f0545758c586496e957b0467415cd30 100644 (file)
@@ -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);