diff options
Diffstat (limited to 'lib/ephy-zoom.h')
-rw-r--r-- | lib/ephy-zoom.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/lib/ephy-zoom.h b/lib/ephy-zoom.h index 085dc5be7..0505d0398 100644 --- a/lib/ephy-zoom.h +++ b/lib/ephy-zoom.h @@ -1,3 +1,4 @@ +/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* * Copyright © 2003 Christian Persch * @@ -36,34 +37,33 @@ G_BEGIN_DECLS static const struct { - gchar *name; - float level; + gchar *name; + float level; } zoom_levels[] = { - { N_("50%"), 0.7071067811 }, - { N_("75%"), 0.8408964152 }, - { N_("100%"), 1.0 }, - { N_("125%"), 1.1892071149 }, - { N_("150%"), 1.4142135623 }, - { N_("175%"), 1.6817928304 }, - { N_("200%"), 2.0 }, - { N_("300%"), 2.8284271247 }, - { N_("400%"), 4.0 } + { N_("50%"), 0.7071067811 }, + { N_("75%"), 0.8408964152 }, + { N_("100%"), 1.0 }, + { N_("125%"), 1.1892071149 }, + { N_("150%"), 1.4142135623 }, + { N_("175%"), 1.6817928304 }, + { N_("200%"), 2.0 }, + { N_("300%"), 2.8284271247 }, + { N_("400%"), 4.0 } }; -static const guint n_zoom_levels = G_N_ELEMENTS (zoom_levels); - -#define ZOOM_MINIMAL (zoom_levels[0].level) -#define ZOOM_MAXIMAL (zoom_levels[n_zoom_levels - 1].level) -#define ZOOM_IN (-1.0) -#define ZOOM_OUT (-2.0) -int ephy_zoom_get_zoom_level_index (float level); +static const guint n_zoom_levels = G_N_ELEMENTS (zoom_levels); -float ephy_zoom_get_changed_zoom_level (float level, - int steps); +#define ZOOM_MINIMAL (zoom_levels[0].level) +#define ZOOM_MAXIMAL (zoom_levels[n_zoom_levels - 1].level) +#define ZOOM_IN (-1.0) +#define ZOOM_OUT (-2.0) -float ephy_zoom_get_nearest_zoom_level (float level); +int ephy_zoom_get_zoom_level_index (float level); +float ephy_zoom_get_changed_zoom_level (float level, + int steps); +float ephy_zoom_get_nearest_zoom_level (float level); G_END_DECLS |