Commit d055c6f5 authored by William Jon McCann's avatar William Jon McCann

Don't scale text size when zooming

We have a separate way of scaling text size.
parent 7b9212ce
......@@ -2711,41 +2711,6 @@ nautilus_list_view_reset_to_defaults (NautilusView *view)
set_columns_settings_from_metadata_and_preferences (NAUTILUS_LIST_VIEW (view));
}
static void
nautilus_list_view_scale_font_size (NautilusListView *view,
NautilusZoomLevel new_level)
{
GList *l;
static gboolean first_time = TRUE;
static double pango_scale[7];
int medium;
int i;
g_return_if_fail (new_level >= NAUTILUS_ZOOM_LEVEL_SMALLEST &&
new_level <= NAUTILUS_ZOOM_LEVEL_LARGEST);
if (first_time) {
first_time = FALSE;
medium = NAUTILUS_ZOOM_LEVEL_SMALLER;
pango_scale[medium] = PANGO_SCALE_MEDIUM;
for (i = medium; i > NAUTILUS_ZOOM_LEVEL_SMALLEST; i--) {
pango_scale[i - 1] = (1 / 1.2) * pango_scale[i];
}
for (i = medium; i < NAUTILUS_ZOOM_LEVEL_LARGEST; i++) {
pango_scale[i + 1] = 1.2 * pango_scale[i];
}
}
g_object_set (G_OBJECT (view->details->file_name_cell),
"scale", pango_scale[new_level],
NULL);
for (l = view->details->cells; l != NULL; l = l->next) {
g_object_set (G_OBJECT (l->data),
"scale", pango_scale[new_level],
NULL);
}
}
static void
nautilus_list_view_set_zoom_level (NautilusListView *view,
NautilusZoomLevel new_level,
......@@ -2781,9 +2746,6 @@ nautilus_list_view_set_zoom_level (NautilusListView *view,
"pixbuf", column,
NULL);
/* Scale text. */
nautilus_list_view_scale_font_size (view, new_level);
/* Make all rows the same size. */
icon_size = nautilus_get_icon_size_for_zoom_level (new_level);
gtk_cell_renderer_set_fixed_size (GTK_CELL_RENDERER (view->details->pixbuf_cell),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment