@@ -92,7 +92,7 @@ public class Gala.IconGroup : CanvasActor {
9292 }
9393
9494 private void resize () {
95- var size = InternalUtils . scale_to_int (SIZE , scale_factor);
95+ var size = Utils . scale_to_int (SIZE , scale_factor);
9696
9797 width = size;
9898 height = size;
@@ -107,10 +107,10 @@ public class Gala.IconGroup : CanvasActor {
107107 return ;
108108 }
109109
110- var width = InternalUtils . scale_to_int (100 , scale_factor);
111- var x = (InternalUtils . scale_to_int (SIZE , scale_factor) - width) / 2 ;
110+ var width = Utils . scale_to_int (100 , scale_factor);
111+ var x = (Utils . scale_to_int (SIZE , scale_factor) - width) / 2 ;
112112 var y = - 10 ;
113- var height = InternalUtils . scale_to_int (WorkspaceClone . BOTTOM_OFFSET , scale_factor);
113+ var height = Utils . scale_to_int (WorkspaceClone . BOTTOM_OFFSET , scale_factor);
114114 var backdrop_opacity_int = (uint8 ) (BACKDROP_ABSOLUTE_OPACITY * backdrop_opacity);
115115
116116#if HAS_MUTTER47
@@ -232,11 +232,11 @@ public class Gala.IconGroup : CanvasActor {
232232 0 ,
233233 width,
234234 height,
235- InternalUtils . scale_to_int (5 , scale_factor)
235+ Utils . scale_to_int (5 , scale_factor)
236236 );
237237
238238 var shadow_effect = new ShadowEffect (" " , scale_factor) {
239- border_radius = InternalUtils .scale_to_int (5 , scale_factor )
239+ border_radius = Utils .scale_to_int (5 , scale_factor )
240240 };
241241
242242 var style_manager = Drawing.StyleManager.get_instance ();
@@ -278,27 +278,27 @@ public class Gala.IconGroup : CanvasActor {
278278 }
279279 }
280280
281- var scaled_size = InternalUtils .scale_to_int (SIZE , scale_factor );
281+ var scaled_size = Utils .scale_to_int (SIZE , scale_factor );
282282
283283 if (n_windows < 1 ) {
284284 if (workspace_index != manager. get_n_workspaces () - 1 ) {
285285 return ;
286286 }
287287
288288 var buffer = new Drawing .BufferSurface (scaled_size, scaled_size);
289- var offset = scaled_size / 2 - InternalUtils . scale_to_int (PLUS_WIDTH , scale_factor) / 2 ;
289+ var offset = scaled_size / 2 - Utils . scale_to_int (PLUS_WIDTH , scale_factor) / 2 ;
290290
291291 buffer. context. rectangle (
292- InternalUtils . scale_to_int (PLUS_WIDTH / 2 , scale_factor) - InternalUtils . scale_to_int (PLUS_SIZE / 2 , scale_factor) + offset,
292+ Utils . scale_to_int (PLUS_WIDTH / 2 , scale_factor) - Utils . scale_to_int (PLUS_SIZE / 2 , scale_factor) + offset,
293293 offset,
294- InternalUtils . scale_to_int (PLUS_SIZE , scale_factor),
295- InternalUtils . scale_to_int (PLUS_WIDTH , scale_factor)
294+ Utils . scale_to_int (PLUS_SIZE , scale_factor),
295+ Utils . scale_to_int (PLUS_WIDTH , scale_factor)
296296 );
297297
298298 buffer. context. rectangle (offset,
299- InternalUtils . scale_to_int (PLUS_WIDTH / 2 , scale_factor) - InternalUtils . scale_to_int (PLUS_SIZE / 2 , scale_factor) + offset,
300- InternalUtils . scale_to_int (PLUS_WIDTH , scale_factor),
301- InternalUtils . scale_to_int (PLUS_SIZE , scale_factor)
299+ Utils . scale_to_int (PLUS_WIDTH / 2 , scale_factor) - Utils . scale_to_int (PLUS_SIZE / 2 , scale_factor) + offset,
300+ Utils . scale_to_int (PLUS_WIDTH , scale_factor),
301+ Utils . scale_to_int (PLUS_SIZE , scale_factor)
302302 );
303303
304304 if (style_manager. prefers_color_scheme == DARK ) {
@@ -337,10 +337,10 @@ public class Gala.IconGroup : CanvasActor {
337337 var columns = (int ) Math.ceil (Math .sqrt (n_tiled_windows ));
338338 var rows = (int ) Math.ceil (n_tiled_windows / (double ) columns);
339339
340- int spacing = InternalUtils .scale_to_int (6 , scale_factor );
340+ int spacing = Utils .scale_to_int (6 , scale_factor );
341341
342- var width = columns * InternalUtils .scale_to_int (size , scale_factor ) + (columns - 1) * spacing;
343- var height = rows * InternalUtils .scale_to_int (size , scale_factor ) + (rows - 1) * spacing;
342+ var width = columns * Utils .scale_to_int (size , scale_factor ) + (columns - 1) * spacing;
343+ var height = rows * Utils .scale_to_int (size , scale_factor ) + (rows - 1) * spacing;
344344 var x_offset = scaled_size / 2 - width / 2 ;
345345 var y_offset = scaled_size / 2 - height / 2 ;
346346
@@ -359,10 +359,10 @@ public class Gala.IconGroup : CanvasActor {
359359
360360 // draw an ellipsis at the 9th position if we need one
361361 if (show_ellipsis && i == 8 ) {
362- int top_offset = InternalUtils . scale_to_int (10 , scale_factor);
363- int left_offset = InternalUtils . scale_to_int (2 , scale_factor);
364- int radius = InternalUtils . scale_to_int (2 , scale_factor);
365- int dot_spacing = InternalUtils . scale_to_int (3 , scale_factor);
362+ int top_offset = Utils . scale_to_int (10 , scale_factor);
363+ int left_offset = Utils . scale_to_int (2 , scale_factor);
364+ int radius = Utils . scale_to_int (2 , scale_factor);
365+ int dot_spacing = Utils . scale_to_int (3 , scale_factor);
366366 cr. arc (left_offset + x, y + top_offset, radius, 0 , 2 * Math . PI );
367367 cr. arc (left_offset + x + radius + dot_spacing, y + top_offset, radius, 0 , 2 * Math . PI );
368368 cr. arc (left_offset + x + radius * 2 + dot_spacing * 2 , y + top_offset, radius, 0 , 2 * Math . PI );
@@ -378,10 +378,10 @@ public class Gala.IconGroup : CanvasActor {
378378
379379 window. place (x, y, size, scale_factor);
380380
381- x + = InternalUtils . scale_to_int (size, scale_factor) + spacing;
382- if (x + InternalUtils . scale_to_int (size, scale_factor) >= scaled_size) {
381+ x + = Utils . scale_to_int (size, scale_factor) + spacing;
382+ if (x + Utils . scale_to_int (size, scale_factor) >= scaled_size) {
383383 x = x_offset;
384- y + = InternalUtils . scale_to_int (size, scale_factor) + spacing;
384+ y + = Utils . scale_to_int (size, scale_factor) + spacing;
385385 }
386386 }
387387 }
0 commit comments