]> www.fi.muni.cz Git - evince.git/blobdiff - cut-n-paste/zoom-control/ephy-zoom.h
Do not connect selection changed signal more than once. Fixes bug #349433.
[evince.git] / cut-n-paste / zoom-control / ephy-zoom.h
index e62fdef3e4f444e47dc46c8bceaaef7441f99608..e8fb52ad2f8ff0e3640cd7f6e2e984b5929e03e9 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,15 +56,12 @@ 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);
 
 #define ZOOM_MINIMAL   (EPHY_ZOOM_SEPARATOR)
-#define ZOOM_MAXIMAL   (zoom_levels[n_zoom_levels - 4].level)
+#define ZOOM_MAXIMAL   (zoom_levels[n_zoom_levels - 1].level)
 #define ZOOM_IN                (-1.0)
 #define ZOOM_OUT       (-2.0)