Skip to content

Commit a8fcf94

Browse files
authored
Merge branch 'main' into lenemter/inline-namespaces
2 parents fe3a9cd + a8cb5cd commit a8fcf94

File tree

3 files changed

+59
-59
lines changed

3 files changed

+59
-59
lines changed

src/Widgets/IconGroup.vala

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ public class Gala.IconGroup : CanvasActor {
1717
private const int BACKDROP_ABSOLUTE_OPACITY = 40;
1818

1919
/**
20-
* The group has been clicked. The MultitaskingView should consider activating
21-
* its workspace.
22-
*/
20+
* The group has been clicked. The MultitaskingView should consider activating
21+
* its workspace.
22+
*/
2323
public signal void selected ();
2424

2525
private float _backdrop_opacity = 0.0f;
2626
/**
27-
* The opacity of the backdrop/highlight.
28-
*/
27+
* The opacity of the backdrop/highlight.
28+
*/
2929
public float backdrop_opacity {
3030
get {
3131
return _backdrop_opacity;
@@ -99,8 +99,8 @@ public class Gala.IconGroup : CanvasActor {
9999
}
100100

101101
/**
102-
* Override the paint handler to draw our backdrop if necessary
103-
*/
102+
* Override the paint handler to draw our backdrop if necessary
103+
*/
104104
public override void paint (Clutter.PaintContext context) {
105105
if (backdrop_opacity == 0.0 || drag_action.dragging) {
106106
base.paint (context);
@@ -130,21 +130,21 @@ public class Gala.IconGroup : CanvasActor {
130130
}
131131

132132
/**
133-
* Remove all currently added WindowIconActors
134-
*/
133+
* Remove all currently added WindowIconActors
134+
*/
135135
public void clear () {
136136
icon_container.destroy_all_children ();
137137
}
138138

139139
/**
140-
* Creates a WindowIconActor for the given window and adds it to the group
141-
*
142-
* @param window The MetaWindow for which to create the WindowIconActor
143-
* @param no_redraw If you add multiple windows at once you may want to consider
144-
* settings this to true and when done calling redraw() manually
145-
* @param temporary Mark the WindowIconActor as temporary. Used for windows dragged over
146-
* the group.
147-
*/
140+
* Creates a WindowIconActor for the given window and adds it to the group
141+
*
142+
* @param window The MetaWindow for which to create the WindowIconActor
143+
* @param no_redraw If you add multiple windows at once you may want to consider
144+
* settings this to true and when done calling redraw() manually
145+
* @param temporary Mark the WindowIconActor as temporary. Used for windows dragged over
146+
* the group.
147+
*/
148148
public void add_window (Meta.Window window, bool no_redraw = false, bool temporary = false) {
149149
var new_window = new WindowIconActor (window);
150150
new_window.set_position (32, 32);
@@ -157,10 +157,10 @@ public class Gala.IconGroup : CanvasActor {
157157
}
158158

159159
/**
160-
* Remove the WindowIconActor for a MetaWindow from the group
161-
*
162-
* @param animate Whether to fade the icon out before removing it
163-
*/
160+
* Remove the WindowIconActor for a MetaWindow from the group
161+
*
162+
* @param animate Whether to fade the icon out before removing it
163+
*/
164164
public void remove_window (Meta.Window window, bool animate = true) {
165165
foreach (unowned var child in icon_container.get_children ()) {
166166
unowned var icon = (WindowIconActor) child;
@@ -192,23 +192,23 @@ public class Gala.IconGroup : CanvasActor {
192192
}
193193

194194
/**
195-
* Sets a hovered actor for the drag action.
196-
*/
195+
* Sets a hovered actor for the drag action.
196+
*/
197197
public void set_hovered_actor (Clutter.Actor actor) {
198198
drag_action.hovered = actor;
199199
}
200200

201201
/**
202-
* Trigger a redraw
203-
*/
202+
* Trigger a redraw
203+
*/
204204
public void redraw () {
205205
content.invalidate ();
206206
}
207207

208208
/**
209-
* Draw the background or plus sign and do layouting. We won't lose performance here
210-
* by relayouting in the same function, as it's only ever called when we invalidate it.
211-
*/
209+
* Draw the background or plus sign and do layouting. We won't lose performance here
210+
* by relayouting in the same function, as it's only ever called when we invalidate it.
211+
*/
212212
protected override void draw (Cairo.Context cr, int cr_width, int cr_height) {
213213
clear_effects ();
214214
cr.set_operator (Cairo.Operator.CLEAR);

src/Widgets/IconGroupContainer.vala

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -66,28 +66,28 @@ public class Gala.IconGroupContainer : Clutter.Actor {
6666
}
6767

6868
/**
69-
* Removes an icon group "in place".
70-
* When initially dragging an icon group we remove
71-
* it and it's previous WorkspaceInsertThumb. This would make
72-
* the container immediately reallocate and fill the empty space
73-
* with right-most IconGroups.
74-
*
75-
* We don't want that until the IconGroup
76-
* leaves the expanded WorkspaceInsertThumb.
77-
*/
69+
* Removes an icon group "in place".
70+
* When initially dragging an icon group we remove
71+
* it and it's previous WorkspaceInsertThumb. This would make
72+
* the container immediately reallocate and fill the empty space
73+
* with right-most IconGroups.
74+
*
75+
* We don't want that until the IconGroup
76+
* leaves the expanded WorkspaceInsertThumb.
77+
*/
7878
public void remove_group_in_place (IconGroup group) {
7979
var deleted_thumb = (WorkspaceInsertThumb) group.get_previous_sibling ();
8080
var deleted_placeholder_thumb = (WorkspaceInsertThumb) group.get_next_sibling ();
8181

8282
remove_group (group);
8383

84-
/**
85-
* We will account for that empty space
86-
* by manually expanding the next WorkspaceInsertThumb with the
87-
* width we deleted. Because the IconGroup is still hovering over
88-
* the expanded thumb, we will also update the drag & drop action
89-
* of IconGroup on that.
90-
*/
84+
/*
85+
* We will account for that empty space
86+
* by manually expanding the next WorkspaceInsertThumb with the
87+
* width we deleted. Because the IconGroup is still hovering over
88+
* the expanded thumb, we will also update the drag & drop action
89+
* of IconGroup on that.
90+
*/
9191
if (deleted_placeholder_thumb != null) {
9292
float deleted_width = deleted_thumb.get_width () + group.get_width ();
9393
deleted_placeholder_thumb.expanded = true;
@@ -111,9 +111,9 @@ public class Gala.IconGroupContainer : Clutter.Actor {
111111
}
112112

113113
/**
114-
* Calculates the width that will be occupied taking currently running animations
115-
* end states into account
116-
*/
114+
* Calculates the width that will be occupied taking currently running animations
115+
* end states into account
116+
*/
117117
public float calculate_total_width () {
118118
var spacing = InternalUtils.scale_to_int (SPACING, scale_factor);
119119
var group_width = InternalUtils.scale_to_int (GROUP_WIDTH, scale_factor);

src/WorkspaceManager.vala

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,10 @@ public class Gala.WorkspaceManager : Object {
214214
}
215215

216216
/**
217-
* Make sure we switch to a different workspace and remove the given one
218-
*
219-
* @param workspace The workspace to remove
220-
*/
217+
* Make sure we switch to a different workspace and remove the given one
218+
*
219+
* @param workspace The workspace to remove
220+
*/
221221
private void remove_workspace (Meta.Workspace workspace) {
222222
unowned Meta.Display display = workspace.get_display ();
223223
unowned Meta.WorkspaceManager manager = display.get_workspace_manager ();
@@ -252,15 +252,15 @@ public class Gala.WorkspaceManager : Object {
252252
}
253253

254254
/**
255-
* Temporarily disables removing workspaces when they are empty
256-
*/
255+
* Temporarily disables removing workspaces when they are empty
256+
*/
257257
public void freeze_remove () {
258258
GLib.AtomicInt.inc (ref remove_freeze_count);
259259
}
260260

261261
/**
262-
* Undo the effect of freeze_remove()
263-
*/
262+
* Undo the effect of freeze_remove()
263+
*/
264264
public void thaw_remove () {
265265
if (GLib.AtomicInt.dec_and_test (ref remove_freeze_count)) {
266266
cleanup ();
@@ -270,10 +270,10 @@ public class Gala.WorkspaceManager : Object {
270270
}
271271

272272
/**
273-
* If workspaces are dynamic, checks if there are empty workspaces that should
274-
* be removed. Particularly useful in conjunction with freeze/thaw_remove to
275-
* cleanup after an operation that required stable workspace/window indices
276-
*/
273+
* If workspaces are dynamic, checks if there are empty workspaces that should
274+
* be removed. Particularly useful in conjunction with freeze/thaw_remove to
275+
* cleanup after an operation that required stable workspace/window indices
276+
*/
277277
private void cleanup () {
278278
if (!Meta.Prefs.get_dynamic_workspaces ()) {
279279
return;

0 commit comments

Comments
 (0)