Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco 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)
commit424778e5fc594ec7c6c8ce445bd7bf03c2a49baf (patch)
tree3e645253fd605905018c36dd8e5f278f5250c7b7
parent39d906d93b5e9e0929fec8d3ef322f9597adee78 (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
-rw-r--r--ChangeLog8
-rw-r--r--cut-n-paste/zoom-control/ephy-zoom.c4
-rw-r--r--cut-n-paste/zoom-control/ephy-zoom.h8
3 files changed, 14 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index b670751..587cbce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
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:
* shell/ev-page-action.c: (ev_page_action_widget_class_init),
(activate_cb), (match_selected_cb), (activate_link_cb),
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);