Skip to content

Commit c05b3c8

Browse files
authored
Merge branch 'main' into lenemter/check-for-redacted-font
2 parents b84a7a7 + 5b3b60f commit c05b3c8

File tree

8 files changed

+33
-67
lines changed

8 files changed

+33
-67
lines changed

po/POTFILES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ src/Widgets/MultitaskingView/WorkspaceInsertThumb.vala
9090
src/Widgets/MultitaskingView/WorkspaceRow.vala
9191
src/Widgets/PixelPicker.vala
9292
src/Widgets/PointerLocator.vala
93-
src/Widgets/ScreenShield.vala
9493
src/Widgets/SelectionArea.vala
94+
src/Widgets/SessionLocker.vala
9595
src/Widgets/WindowOverview.vala
9696
src/Widgets/WindowSwitcher/WindowSwitcherIcon.vala
9797
src/Widgets/WindowSwitcher/WindowSwitcher.vala

po/ja.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ msgstr ""
88
"Project-Id-Version: noise\n"
99
"Report-Msgid-Bugs-To: https://github.com/elementary/gala/issues\n"
1010
"POT-Creation-Date: 2025-03-24 21:59+0000\n"
11-
"PO-Revision-Date: 2025-03-03 20:18+0000\n"
11+
"PO-Revision-Date: 2025-03-28 19:55+0000\n"
1212
"Last-Translator: Ryo Nakano <[email protected]>\n"
13-
"Language-Team: Japanese <https://l10n.elementary.io/projects/desktop/gala/ja/"
14-
">\n"
13+
"Language-Team: Japanese <https://l10n.elementaryos.org/projects/desktop/gala/"
14+
"ja/>\n"
1515
"Language: ja\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"Plural-Forms: nplurals=1; plural=0;\n"
20-
"X-Generator: Weblate 5.9.2\n"
20+
"X-Generator: Weblate 5.10.4\n"
2121
"X-Launchpad-Export-Date: 2017-03-02 05:47+0000\n"
2222

2323
#: daemon/DBus.vala:82 daemon-gtk3/BackgroundMenu.vala:11
@@ -127,7 +127,7 @@ msgstr "翻訳の更新"
127127

128128
#: data/gala.metainfo.xml.in:35
129129
msgid "Window state is now saved on sleep and shutdown"
130-
msgstr ""
130+
msgstr "スリープ・シャットダウン時にウィンドウの状態を保持するように修正"
131131

132132
#: data/gala.metainfo.xml.in:58
133133
msgid "Fixed rare crash when a dock window was killed"

po/pl.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ msgstr ""
88
"Project-Id-Version: gala\n"
99
"Report-Msgid-Bugs-To: https://github.com/elementary/gala/issues\n"
1010
"POT-Creation-Date: 2025-03-24 21:59+0000\n"
11-
"PO-Revision-Date: 2025-03-08 12:45+0000\n"
11+
"PO-Revision-Date: 2025-03-30 11:55+0000\n"
1212
"Last-Translator: Marcin Serwin <[email protected]>\n"
13-
"Language-Team: Polish <https://l10n.elementary.io/projects/desktop/gala/pl/"
14-
">\n"
13+
"Language-Team: Polish <https://l10n.elementaryos.org/projects/desktop/gala/"
14+
"pl/>\n"
1515
"Language: pl\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
2020
"|| n%100>=20) ? 1 : 2;\n"
21-
"X-Generator: Weblate 5.10.2\n"
21+
"X-Generator: Weblate 5.10.4\n"
2222
"X-Launchpad-Export-Date: 2017-04-20 06:29+0000\n"
2323

2424
#: daemon/DBus.vala:82 daemon-gtk3/BackgroundMenu.vala:11
@@ -127,7 +127,7 @@ msgstr "Zaktualizowano tłumaczenia"
127127

128128
#: data/gala.metainfo.xml.in:35
129129
msgid "Window state is now saved on sleep and shutdown"
130-
msgstr ""
130+
msgstr "Stan okna jest teraz zapisywany przy usypianiu i wyłączaniu"
131131

132132
#: data/gala.metainfo.xml.in:58
133133
msgid "Fixed rare crash when a dock window was killed"

po/uk.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ msgstr ""
88
"Project-Id-Version: beat-box\n"
99
"Report-Msgid-Bugs-To: https://github.com/elementary/gala/issues\n"
1010
"POT-Creation-Date: 2025-03-24 21:59+0000\n"
11-
"PO-Revision-Date: 2025-03-03 20:18+0000\n"
11+
"PO-Revision-Date: 2025-03-28 19:55+0000\n"
1212
"Last-Translator: Ihor Hordiichuk <[email protected]>\n"
13-
"Language-Team: Ukrainian <https://l10n.elementary.io/projects/desktop/gala/"
14-
"uk/>\n"
13+
"Language-Team: Ukrainian <https://l10n.elementaryos.org/projects/desktop/"
14+
"gala/uk/>\n"
1515
"Language: uk\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
2020
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
21-
"X-Generator: Weblate 5.9.2\n"
21+
"X-Generator: Weblate 5.10.4\n"
2222
"X-Launchpad-Export-Date: 2017-02-21 05:47+0000\n"
2323

2424
#: daemon/DBus.vala:82 daemon-gtk3/BackgroundMenu.vala:11
@@ -127,7 +127,7 @@ msgstr "Оновлені переклади"
127127

128128
#: data/gala.metainfo.xml.in:35
129129
msgid "Window state is now saved on sleep and shutdown"
130-
msgstr ""
130+
msgstr "Стан вікна тепер зберігається під час засинання та вимкнення"
131131

132132
#: data/gala.metainfo.xml.in:58
133133
msgid "Fixed rare crash when a dock window was killed"

src/Widgets/MultitaskingView/MultitaskingView.vala

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,6 @@ public class Gala.MultitaskingView : ActorTarget, ActivatableComponent {
356356
icon_groups.add_group (workspace.icon_group);
357357

358358
workspace.window_selected.connect (window_selected);
359-
workspace.selected.connect (activate_workspace);
360359

361360
reposition_icon_groups (false);
362361
}
@@ -384,7 +383,6 @@ public class Gala.MultitaskingView : ActorTarget, ActivatableComponent {
384383
}
385384

386385
workspace.window_selected.disconnect (window_selected);
387-
workspace.selected.disconnect (activate_workspace);
388386

389387
if (icon_groups.contains (workspace.icon_group)) {
390388
icon_groups.remove_group (workspace.icon_group);
@@ -412,25 +410,6 @@ public class Gala.MultitaskingView : ActorTarget, ActivatableComponent {
412410
}
413411
}
414412

415-
/**
416-
* Activates the workspace of a WorkspaceClone
417-
*
418-
* @param close_view Whether to close the view as well. Will only be considered
419-
* if the workspace is also the currently active workspace.
420-
* Otherwise it will only be made active, but the view won't be
421-
* closed.
422-
*/
423-
private void activate_workspace (WorkspaceClone clone, bool close_view) {
424-
unowned Meta.WorkspaceManager manager = display.get_workspace_manager ();
425-
close_view = close_view && manager.get_active_workspace () == clone.workspace;
426-
427-
clone.workspace.activate (display.get_current_time ());
428-
429-
if (close_view) {
430-
close ();
431-
}
432-
}
433-
434413
/**
435414
* Collect key events, mainly for redirecting them to the WindowCloneContainers to
436415
* select the active window.

src/Widgets/MultitaskingView/WindowClone.vala

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ public class Gala.WindowClone : ActorTarget {
140140
};
141141

142142
window_title = new Tooltip ();
143-
window_title.opacity = 0;
144143

145144
add_child (active_shape);
146145
add_child (clone_container);
@@ -168,6 +167,7 @@ public class Gala.WindowClone : ActorTarget {
168167
opacity = 0
169168
};
170169
close_button.triggered.connect (close_window);
170+
close_button.notify["has-pointer"].connect (() => update_hover_widgets ());
171171

172172
window_icon = new WindowIcon (window, WINDOW_ICON_SIZE, (int)Math.round (monitor_scale_factor)) {
173173
visible = !overview_mode
@@ -257,17 +257,16 @@ public class Gala.WindowClone : ActorTarget {
257257

258258
add_target (new PropertyTarget (MULTITASKING_VIEW, this, "x", typeof (float), (float) window_rect.x, (float) slot.x));
259259
add_target (new PropertyTarget (MULTITASKING_VIEW, this, "y", typeof (float), (float) window_rect.y, (float) slot.y));
260-
261260
add_target (new PropertyTarget (MULTITASKING_VIEW, this, "width", typeof (float), (float) window_rect.width, (float) slot.width));
262261
add_target (new PropertyTarget (MULTITASKING_VIEW, this, "height", typeof (float), (float) window_rect.height, (float) slot.height));
263-
262+
add_target (new PropertyTarget (MULTITASKING_VIEW, this, "shadow-opacity", typeof (uint8), (uint8) 0u, (uint8) 255u));
264263
if (should_fade ()) {
265264
add_target (new PropertyTarget (MULTITASKING_VIEW, this, "opacity", typeof (uint8), (uint8) 0u, (uint8) 255u));
266265
}
267266

268267
add_target (new PropertyTarget (MULTITASKING_VIEW, window_icon, "opacity", typeof (uint), 0u, 255u));
269268

270-
add_target (new PropertyTarget (MULTITASKING_VIEW, this, "shadow-opacity", typeof (uint8), (uint8) 0u, (uint8) 255u));
269+
add_target (new PropertyTarget (MULTITASKING_VIEW, window_title, "opacity", typeof (uint), 0u, 255u));
271270
}
272271

273272
public override void start_progress (GestureAction action) {
@@ -386,19 +385,13 @@ public class Gala.WindowClone : ActorTarget {
386385

387386
var duration = Utils.get_animation_duration (FADE_ANIMATION_DURATION);
388387

389-
var show = has_pointer && !in_slot_animation;
388+
var show = (has_pointer || close_button.has_pointer) && !in_slot_animation;
390389

391390
close_button.save_easing_state ();
392391
close_button.set_easing_mode (Clutter.AnimationMode.LINEAR);
393392
close_button.set_easing_duration (duration);
394393
close_button.opacity = show ? 255 : 0;
395394
close_button.restore_easing_state ();
396-
397-
window_title.save_easing_state ();
398-
window_title.set_easing_mode (Clutter.AnimationMode.LINEAR);
399-
window_title.set_easing_duration (duration);
400-
window_title.opacity = show ? 255 : 0;
401-
window_title.restore_easing_state ();
402395
}
403396

404397
/**

src/Widgets/MultitaskingView/WorkspaceClone.vala

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,6 @@ public class Gala.WorkspaceClone : ActorTarget {
126126
*/
127127
public signal void window_selected (Meta.Window window);
128128

129-
/**
130-
* The background has been selected. Switch to that workspace.
131-
*
132-
* @param close_view If the MultitaskingView should also consider closing itself
133-
* after switching.
134-
*/
135-
public signal void selected (bool close_view);
136-
137129
public WindowManager wm { get; construct; }
138130
public Meta.Workspace workspace { get; construct; }
139131
public IconGroup icon_group { get; private set; }
@@ -170,9 +162,7 @@ public class Gala.WorkspaceClone : ActorTarget {
170162
var monitor_geometry = display.get_monitor_geometry (primary_monitor);
171163

172164
var background_click_action = new Clutter.ClickAction ();
173-
background_click_action.clicked.connect (() => {
174-
selected (true);
175-
});
165+
background_click_action.clicked.connect (() => activate (true));
176166
background = new FramedBackground (display);
177167
background.add_action (background_click_action);
178168

@@ -181,10 +171,10 @@ public class Gala.WorkspaceClone : ActorTarget {
181171
height = monitor_geometry.height,
182172
};
183173
window_container.window_selected.connect ((w) => { window_selected (w); });
184-
window_container.requested_close.connect (() => selected (true));
174+
window_container.requested_close.connect (() => activate (true));
185175

186176
icon_group = new IconGroup (display, workspace, scale_factor);
187-
icon_group.selected.connect (() => selected (true));
177+
icon_group.selected.connect (() => activate (true));
188178

189179
var icons_drop_action = new DragDropAction (DragDropActionType.DESTINATION, "multitaskingview-window");
190180
icon_group.add_action (icons_drop_action);
@@ -200,7 +190,7 @@ public class Gala.WorkspaceClone : ActorTarget {
200190

201191
if (hovered && hover_activate_timeout == 0) {
202192
hover_activate_timeout = Timeout.add (HOVER_ACTIVATE_DELAY, () => {
203-
selected (false);
193+
activate (false);
204194
hover_activate_timeout = 0;
205195
return false;
206196
});
@@ -333,4 +323,12 @@ public class Gala.WorkspaceClone : ActorTarget {
333323
icon_group.backdrop_opacity = 1 - (float) (workspace.index () + progress).abs ().clamp (0, 1);
334324
}
335325
}
326+
327+
private void activate (bool close_view) {
328+
if (close_view && workspace.active) {
329+
wm.perform_action (SHOW_MULTITASKING_VIEW);
330+
} else {
331+
workspace.activate (Meta.CURRENT_TIME);
332+
}
333+
}
336334
}

src/WindowManager.vala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,16 +1350,12 @@ namespace Gala {
13501350

13511351
mapping.add (actor);
13521352

1353-
actor.set_pivot_point (0.5f, 0.5f);
1354-
actor.set_pivot_point_z (0.2f);
1355-
actor.set_scale (0.9f, 0.9f);
13561353
actor.opacity = 0;
13571354

13581355
actor.save_easing_state ();
13591356
actor.set_easing_mode (Clutter.AnimationMode.EASE_OUT_QUAD);
13601357
actor.set_easing_duration (duration);
1361-
actor.set_scale (1.0f, 1.0f);
1362-
actor.opacity = 255U;
1358+
actor.opacity = 255;
13631359
actor.restore_easing_state ();
13641360

13651361
ulong map_handler_id = 0UL;

0 commit comments

Comments
 (0)